private void updateState(android.location.Location p24)
    {
        android.support.v7.app.TwilightManager$TwilightState v1 = this.mTwilightState;
        long v9 = System.currentTimeMillis();
        android.support.v7.app.TwilightCalculator v11 = android.support.v7.app.TwilightCalculator.getInstance();
        long v2_0 = v11;
        v2_0.calculateTwilight((v9 - 86400000), p24.getLatitude(), p24.getLongitude());
        long v14_0 = v11.sunset;
        v2_0.calculateTwilight(v9, p24.getLatitude(), p24.getLongitude());
        long v3_1 = 1;
        if (v11.state != 1) {
            v3_1 = 0;
        }
        long v4_2;
        long v20 = v14_0;
        long v14_1 = v11.sunset;
        long v12_1 = v11.sunrise;
        int v0_1 = v3_1;
        v11.calculateTwilight((86400000 + v9), p24.getLatitude(), p24.getLongitude());
        long v2_3 = v11.sunrise;
        if ((v12_1 != -1) && (v14_1 != -1)) {
            long v4_1;
            if (v9 <= v14_1) {
                if (v9 <= v12_1) {
                    v4_1 = (0 + v12_1);
                } else {
                    v4_1 = (0 + v14_1);
                }
            } else {
                v4_1 = (0 + v2_3);
            }
            v4_2 = (v4_1 + 60000);
        } else {
            v4_2 = (v9 + 43200000);
        }
        v1.isNight = v0_1;
        v1.yesterdaySunset = v20;
        v1.todaySunrise = v12_1;
        v1.todaySunset = v14_1;
        v1.tomorrowSunrise = v2_3;
        v1.nextUpdate = v4_2;
        return;
    }