b.smali

.class public final Lbf/b;
.super Landroidx/lifecycle/ViewModel;
.source "CameraViewModule.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lbf/b$c;,
        Lbf/b$d;
    }
.end annotation

.annotation runtime Lkotlin/Metadata;
    bv = {
        0x1,
        0x0,
        0x3
    }
    d1 = {
        "\u0000\u00a4\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0014\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\n\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0014\u0018\u0000 x2\u00020\u0001:\u0002wxB\u0005\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010F\u001a\u00020GH\u0002J2\u0010H\u001a\u0008\u0012\u0004\u0012\u00020\r0I2\u0006\u0010J\u001a\u00020K2\u0006\u0010L\u001a\u00020<2\u0006\u0010M\u001a\u00020\rH\u0083@\u00f8\u0001\u0000\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010NJ,\u0010H\u001a\u0008\u0012\u0004\u0012\u00020\r0I2\u0006\u0010J\u001a\u00020K2\u0006\u0010O\u001a\u00020PH\u0081@\u00f8\u0001\u0000\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008Q\u0010RJ\u0010\u0010S\u001a\u00020\r2\u0006\u0010T\u001a\u00020\u001cH\u0002J\u000f\u0010U\u001a\u0004\u0018\u000101H\u0001\u00a2\u0006\u0002\u0008VJ\u0010\u0010&\u001a\u00020\u00052\u0006\u0010#\u001a\u00020\u0008H\u0002J;\u0010W\u001a\u00020\u001a2\u0006\u0010X\u001a\u00020Y2\u0006\u0010Z\u001a\u00020[2\u0006\u0010\\\u001a\u00020\u00052\u0006\u0010]\u001a\u00020\u00052\u000c\u0010^\u001a\u0008\u0012\u0004\u0012\u00020G0_H\u0000\u00a2\u0006\u0002\u0008`J\r\u0010a\u001a\u00020GH\u0001\u00a2\u0006\u0002\u0008bJ\u0017\u0010c\u001a\u00020G2\u0008\u0010d\u001a\u0004\u0018\u00010eH\u0001\u00a2\u0006\u0002\u0008fJ\u0008\u0010g\u001a\u00020\rH\u0002J\r\u0010h\u001a\u00020\rH\u0001\u00a2\u0006\u0002\u0008iJ\r\u0010j\u001a\u00020GH\u0001\u00a2\u0006\u0002\u0008kJ\u0008\u0010l\u001a\u00020\rH\u0002J\u0018\u0010m\u001a\u00020G2\u0006\u0010J\u001a\u00020K2\u0006\u0010O\u001a\u00020PH\u0007J\u0010\u0010n\u001a\u00020G2\u0006\u0010J\u001a\u00020KH\u0007J$\u0010o\u001a\u0008\u0012\u0004\u0012\u00020\r0I2\u0006\u0010J\u001a\u00020KH\u0081@\u00f8\u0001\u0000\u00f8\u0001\u0000\u00a2\u0006\u0004\u0008p\u0010qJ\r\u0010r\u001a\u00020\u0008H\u0001\u00a2\u0006\u0002\u0008sJ\u0010\u0010t\u001a\u00020G2\u0006\u0010L\u001a\u00020<H\u0003J\u001a\u0010u\u001a\u00020G*\u0008\u0012\u0004\u0012\u00020\u00080\u00042\u0006\u0010v\u001a\u00020\u0008H\u0002R\u0014\u0010\u0003\u001a\u0008\u0012\u0004\u0012\u00020\u00050\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0016\u0010\u0006\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00050\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0007\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\u0008\u0012\u0004\u0012\u00020\u00050\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\n\u001a\u0008\u0012\u0004\u0012\u00020\u000b0\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u000c\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0016\u0010\u000e\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u000f0\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0010\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0011\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0012X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0013\u001a\u0008\u0012\u0004\u0012\u00020\u00140\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0017\u0010\u0015\u001a\u0008\u0012\u0004\u0012\u00020\u00050\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0017\u0010\u0018R\u0010\u0010\u0019\u001a\u0004\u0018\u00010\u001aX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u001b\u001a\u0004\u0018\u00010\u001cX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001d\u0010\u001e\"\u0004\u0008\u001f\u0010 R\u0019\u0010!\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00050\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\"\u0010\u0018R\u0017\u0010#\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008$\u0010\u0018R\u0017\u0010%\u001a\u0008\u0012\u0004\u0012\u00020\u00050\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008&\u0010\u0018R\u0014\u0010\'\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010(\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R \u0010)\u001a\u0008\u0012\u0004\u0012\u00020\u000b0\u0016X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008*\u0010\u0018\"\u0004\u0008+\u0010,R \u0010-\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0016X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008.\u0010\u0018\"\u0004\u0008/\u0010,R\u001e\u00102\u001a\u0002012\u0006\u00100\u001a\u000201@BX\u0086\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u00083\u00104R\u0019\u00105\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u000f0\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u00086\u0010\u0018R\u001e\u00107\u001a\u00020\u00052\u0006\u00100\u001a\u00020\u0005@BX\u0086\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u00088\u00109R\u0016\u0010:\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010<0;X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0017\u0010=\u001a\u0008\u0012\u0004\u0012\u00020\u00050\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008>\u0010?R\u0017\u0010@\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008A\u0010\u0018R\u0017\u0010B\u001a\u0008\u0012\u0004\u0012\u00020\r0\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008C\u0010\u0018R\u0017\u0010D\u001a\u0008\u0012\u0004\u0012\u00020\u00140\u0016\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008E\u0010\u0018\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006y"
    }
    d2 = {
        "Lcom/shopee/foody/driver/gallery/CameraViewModule;",
        "Landroidx/lifecycle/ViewModel;",
        "()V",
        "_cameraCount",
        "Landroidx/lifecycle/MutableLiveData;",
        "",
        "_facing",
        "_flashLightState",
        "Lcom/shopee/foody/camera/service/EnumFlashLight;",
        "_flashStateResId",
        "_openCameraFail",
        "",
        "_openCameraSuccess",
        "",
        "_previewPicturePath",
        "",
        "_showGallery",
        "_triggerEnable",
        "Landroidx/lifecycle/MediatorLiveData;",
        "_uiMode",
        "Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;",
        "cameraCount",
        "Landroidx/lifecycle/LiveData;",
        "getCameraCount",
        "()Landroidx/lifecycle/LiveData;",
        "createCameraJob",
        "Lkotlinx/coroutines/Job;",
        "externalImgFile",
        "Ljava/io/File;",
        "getExternalImgFile",
        "()Ljava/io/File;",
        "setExternalImgFile",
        "(Ljava/io/File;)V",
        "facing",
        "getFacing",
        "flashState",
        "getFlashState",
        "flashStateResId",
        "getFlashStateResId",
        "isCameraResumed",
        "isSurfaceCreated",
        "openCameraFail",
        "getOpenCameraFail",
        "setOpenCameraFail",
        "(Landroidx/lifecycle/LiveData;)V",
        "openCameraSuccess",
        "getOpenCameraSuccess",
        "setOpenCameraSuccess",
        "<set-?>",
        "Lcom/shopee/foody/camera/service/Size;",
        "preferSize",
        "getPreferSize",
        "()Lcom/shopee/foody/camera/service/Size;",
        "previewPicturePath",
        "getPreviewPicturePath",
        "quality",
        "getQuality",
        "()I",
        "sCameraService",
        "Lkotlin/Lazy;",
        "Lcom/shopee/foody/camera/service/ICameraService;",
        "screenOrientation",
        "getScreenOrientation",
        "()Landroidx/lifecycle/MutableLiveData;",
        "showGallery",
        "getShowGallery",
        "triggerEnable",
        "getTriggerEnable",
        "uiMode",
        "getUiMode",
        "cancelCreateCameraJob",
        "",
        "createCamera",
        "Lkotlin/Result;",
        "activity",
        "Lcom/shopee/android/base/BaseActivity;",
        "cameraService",
        "changeFacing",
        "(Lcom/shopee/android/base/BaseActivity;Lcom/shopee/foody/camera/service/ICameraService;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;",
        "widgets",
        "Lcom/shopee/foody/driver/gallery/UiWidgets;",
        "createCamera$driver_indonesiaRelease",
        "(Lcom/shopee/android/base/BaseActivity;Lcom/shopee/foody/driver/gallery/UiWidgets;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
        "deleteFromDatabase",
        "file",
        "getCameraPreviewSize",
        "getCameraPreviewSize$driver_indonesiaRelease",
        "onSurfaceViewCreatedOrChanged",
        "context",
        "Landroid/content/Context;",
        "surfaceHolder",
        "Landroid/view/SurfaceHolder;",
        "preferWidth",
        "preferHeight",
        "onPreview",
        "Lkotlin/Function0;",
        "onSurfaceViewCreatedOrChanged$driver_indonesiaRelease",
        "onSurfaceViewReleased",
        "onSurfaceViewReleased$driver_indonesiaRelease",
        "parseBundle",
        "intent",
        "Landroid/content/Intent;",
        "parseBundle$driver_indonesiaRelease",
        "pauseCameraPreview",
        "picture",
        "picture$driver_indonesiaRelease",
        "restorePicture",
        "restorePicture$driver_indonesiaRelease",
        "resumeCameraPreview",
        "startCreateCameraJob",
        "startSwitchCameraJob",
        "switchCamera",
        "switchCamera$driver_indonesiaRelease",
        "(Lcom/shopee/android/base/BaseActivity;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
        "switchFlash",
        "switchFlash$driver_indonesiaRelease",
        "updateFlash",
        "update",
        "newFlashState",
        "CameraPermissionException",
        "Companion",
        "driver_indonesiaRelease"
    }
    k = 0x1
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


# instance fields
.field public A:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Throwable;",
            ">;"
        }
    .end annotation
.end field

.field public B:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Throwable;",
            ">;"
        }
    .end annotation
.end field

.field public final a:Lkotlin/Lazy;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/Lazy<",
            "Lcom/shopee/foody/camera/service/ICameraService;",
            ">;"
        }
    .end annotation
.end field

.field public b:Ljava/io/File;

.field public final c:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;",
            ">;"
        }
    .end annotation
.end field

.field public final d:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;",
            ">;"
        }
    .end annotation
.end field

.field public final e:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Lcom/shopee/foody/camera/service/EnumFlashLight;",
            ">;"
        }
    .end annotation
.end field

.field public final f:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Lcom/shopee/foody/camera/service/EnumFlashLight;",
            ">;"
        }
    .end annotation
.end field

.field public final g:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public final h:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public final i:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public final j:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public final k:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public final l:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public m:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public n:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public final o:Landroidx/lifecycle/MediatorLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MediatorLiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public final p:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public final q:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public final r:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public final s:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public final t:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public final u:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public v:Lid/e;

.field public w:I

.field public x:Lkotlinx/coroutines/Job;

.field public y:Landroidx/lifecycle/MutableLiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field

.field public z:Landroidx/lifecycle/LiveData;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public static constructor <clinit>()V
    .registers 2

    new-instance v0, Lbf/b$d;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lbf/b$d;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    return-void
.end method

.method public constructor <init>()V
    .registers 6

    invoke-direct {p0}, Landroidx/lifecycle/ViewModel;-><init>()V

    sget-object v0, Lbf/b$a0;->a:Lbf/b$a0;

    invoke-static {v0}, Lfa/a;->a(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;

    move-result-object v0

    iput-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    sget-object v1, Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;->PICTURE:Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;

    invoke-direct {v0, v1}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->c:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->d:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    sget-object v1, Lcom/shopee/foody/camera/service/EnumFlashLight;->NONE:Lcom/shopee/foody/camera/service/EnumFlashLight;

    invoke-direct {v0, v1}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->e:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->f:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    const v1, 0x7f080115

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-direct {v0, v1}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->g:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->h:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V

    iput-object v0, p0, Lbf/b;->i:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->j:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V

    iput-object v0, p0, Lbf/b;->k:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->l:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-direct {v0, v2}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->m:Landroidx/lifecycle/MutableLiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0, v2}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    new-instance v0, Landroidx/lifecycle/MediatorLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    iget-object v3, p0, Lbf/b;->m:Landroidx/lifecycle/MutableLiveData;

    new-instance v4, Lbf/b$a;

    invoke-direct {v4, v0, p0}, Lbf/b$a;-><init>(Landroidx/lifecycle/MediatorLiveData;Lbf/b;)V

    invoke-virtual {v0, v3, v4}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V

    iget-object v3, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    new-instance v4, Lbf/b$b;

    invoke-direct {v4, v0, p0}, Lbf/b$b;-><init>(Landroidx/lifecycle/MediatorLiveData;Lbf/b;)V

    invoke-virtual {v0, v3, v4}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V

    iput-object v0, p0, Lbf/b;->o:Landroidx/lifecycle/MediatorLiveData;

    iput-object v0, p0, Lbf/b;->p:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V

    iput-object v0, p0, Lbf/b;->q:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->r:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0, v2}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->s:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->t:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-direct {v0, v1}, Landroidx/lifecycle/MutableLiveData;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lbf/b;->u:Landroidx/lifecycle/MutableLiveData;

    new-instance v0, Lid/e;

    const/16 v1, 0x2d0

    const/16 v2, 0x3c0

    invoke-direct {v0, v1, v2}, Lid/e;-><init>(II)V

    iput-object v0, p0, Lbf/b;->v:Lid/e;

    const/16 v0, 0x50

    iput v0, p0, Lbf/b;->w:I

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V

    iput-object v0, p0, Lbf/b;->y:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->z:Landroidx/lifecycle/LiveData;

    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V

    iput-object v0, p0, Lbf/b;->A:Landroidx/lifecycle/MutableLiveData;

    iput-object v0, p0, Lbf/b;->B:Landroidx/lifecycle/LiveData;

    return-void
.end method

.method public static final synthetic a(Lbf/b;)Lkotlinx/coroutines/Job;
    .registers 1

    iget-object p0, p0, Lbf/b;->x:Lkotlinx/coroutines/Job;

    return-object p0
.end method

.method public static final synthetic a(Lbf/b;Lcom/shopee/foody/camera/service/ICameraService;)V
    .registers 2

    invoke-virtual {p0, p1}, Lbf/b;->a(Lcom/shopee/foody/camera/service/ICameraService;)V

    return-void
.end method

.method public static final synthetic a(Lbf/b;Ljava/io/File;)Z
    .registers 2

    invoke-virtual {p0, p1}, Lbf/b;->a(Ljava/io/File;)Z

    move-result p0

    return p0
.end method

.method public static final synthetic b(Lbf/b;)Lkotlin/Lazy;
    .registers 1

    iget-object p0, p0, Lbf/b;->a:Lkotlin/Lazy;

    return-object p0
.end method

.method public static final synthetic c(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->i:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic d(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->A:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic e(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->y:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic f(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->q:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic g(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->c:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic h(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic i(Lbf/b;)Landroidx/lifecycle/MutableLiveData;
    .registers 1

    iget-object p0, p0, Lbf/b;->m:Landroidx/lifecycle/MutableLiveData;

    return-object p0
.end method

.method public static final synthetic j(Lbf/b;)Z
    .registers 1

    invoke-virtual {p0}, Lbf/b;->A()Z

    move-result p0

    return p0
.end method

.method public static final synthetic k(Lbf/b;)Z
    .registers 1

    invoke-virtual {p0}, Lbf/b;->D()Z

    move-result p0

    return p0
.end method


# virtual methods
.method public final A()Z
    .registers 6

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    const-string v3, "CameraViewModule"

    if-eqz v0, :cond_22

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    sget-object v4, Lbf/b$q;->a:Lbf/b$q;

    invoke-virtual {v1, v3, v4}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->pausePreview()V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    const/4 v1, 0x1

    goto :goto_2e

    :cond_22
    sget-object v0, Lqa/d;->e:Lqa/d$a;

    sget-object v4, Lbf/b$r;->a:Lbf/b$r;

    invoke-virtual {v0, v3, v4}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    :goto_2e
    return v1
.end method

.method public final B()Z
    .registers 9
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    const/4 v1, 0x0

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    move-object v2, v0

    check-cast v2, Lcom/shopee/foody/camera/service/ICameraService;

    const-string v0, "CameraViewModule"

    if-eqz v2, :cond_58

    iget-object v3, p0, Lbf/b;->u:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {v3}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    if-eqz v3, :cond_22

    goto :goto_26

    :cond_22
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    :goto_26
    const-string v1, "screenOrientation.value ?: 0"

    invoke-static {v3, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    iget-object v1, p0, Lbf/b;->v:Lid/e;

    invoke-virtual {v1}, Lid/e;->d()I

    move-result v5

    iget-object v1, p0, Lbf/b;->v:Lid/e;

    invoke-virtual {v1}, Lid/e;->c()I

    move-result v6

    iget v7, p0, Lbf/b;->w:I

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    new-instance v4, Lbf/b$s;

    invoke-direct {v4, v5, v6}, Lbf/b$s;-><init>(II)V

    invoke-virtual {v1, v0, v4}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    new-instance v4, Lbf/b$t;

    invoke-direct {v4, p0}, Lbf/b$t;-><init>(Lbf/b;)V

    invoke-interface/range {v2 .. v7}, Lcom/shopee/foody/camera/service/ICameraService;->takePicture(ILid/c;III)V

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    sget-object v2, Lbf/b$u;->a:Lbf/b$u;

    invoke-virtual {v1, v0, v2}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    const/4 v0, 0x1

    return v0

    :cond_58
    sget-object v2, Lqa/d;->e:Lqa/d$a;

    sget-object v3, Lbf/b$v;->a:Lbf/b$v;

    invoke-virtual {v2, v0, v3}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    return v1
.end method

.method public final C()V
    .registers 9
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    sget-object v0, Lqa/d;->e:Lqa/d$a;

    sget-object v1, Lbf/b$x;->a:Lbf/b$x;

    const-string v2, "CameraViewModule"

    invoke-virtual {v0, v2, v1}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    iget-object v0, p0, Lbf/b;->c:Landroidx/lifecycle/MutableLiveData;

    sget-object v1, Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;->PICTURE:Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    iget-object v0, p0, Lbf/b;->q:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const/4 v1, 0x0

    if-eqz v0, :cond_2c

    sget-object v2, Lkotlinx/coroutines/GlobalScope;->INSTANCE:Lkotlinx/coroutines/GlobalScope;

    invoke-static {}, Lmd/e;->d()Lmd/d;

    move-result-object v3

    const/4 v4, 0x0

    new-instance v5, Lbf/b$w;

    invoke-direct {v5, v0, v1, p0}, Lbf/b$w;-><init>(Ljava/lang/String;Lkotlin/coroutines/Continuation;Lbf/b;)V

    const/4 v6, 0x2

    const/4 v7, 0x0

    invoke-static/range {v2 .. v7}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;

    :cond_2c
    iget-object v0, p0, Lbf/b;->q:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lbf/b;->D()Z

    return-void
.end method

.method public final D()Z
    .registers 6

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    const/4 v1, 0x0

    const/4 v2, 0x1

    const-string v3, "CameraViewModule"

    if-eqz v0, :cond_23

    sget-object v1, Lqa/d;->e:Lqa/d$a;

    sget-object v4, Lbf/b$y;->a:Lbf/b$y;

    invoke-virtual {v1, v3, v4}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->resumePreview()V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    const/4 v1, 0x1

    goto :goto_33

    :cond_23
    sget-object v0, Lqa/d;->e:Lqa/d$a;

    sget-object v2, Lbf/b$z;->a:Lbf/b$z;

    invoke-virtual {v0, v3, v2}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    :goto_33
    return v1
.end method

.method public final E()Lcom/shopee/foody/camera/service/EnumFlashLight;
    .registers 6
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    if-eqz v0, :cond_38

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->getFlashMode()Lcom/shopee/foody/camera/service/EnumFlashLight;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/shopee/foody/camera/service/ICameraService;->getNextFlashMode(Lcom/shopee/foody/camera/service/EnumFlashLight;)Lcom/shopee/foody/camera/service/EnumFlashLight;

    move-result-object v2

    const-string v3, "CameraViewModule"

    if-eq v1, v2, :cond_2d

    invoke-interface {v0, v2}, Lcom/shopee/foody/camera/service/ICameraService;->setFlashMode(Lcom/shopee/foody/camera/service/EnumFlashLight;)Z

    move-result v0

    if-eqz v0, :cond_2d

    iget-object v0, p0, Lbf/b;->e:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {p0, v0, v2}, Lbf/b;->a(Landroidx/lifecycle/MutableLiveData;Lcom/shopee/foody/camera/service/EnumFlashLight;)V

    sget-object v0, Lqa/d;->e:Lqa/d$a;

    new-instance v4, Lbf/b$i0;

    invoke-direct {v4, v1, v2}, Lbf/b$i0;-><init>(Lcom/shopee/foody/camera/service/EnumFlashLight;Lcom/shopee/foody/camera/service/EnumFlashLight;)V

    invoke-virtual {v0, v3, v4}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    move-object v1, v2

    goto :goto_37

    :cond_2d
    sget-object v0, Lqa/d;->e:Lqa/d$a;

    new-instance v4, Lbf/b$j0;

    invoke-direct {v4, v1, v2}, Lbf/b$j0;-><init>(Lcom/shopee/foody/camera/service/EnumFlashLight;Lcom/shopee/foody/camera/service/EnumFlashLight;)V

    invoke-virtual {v0, v3, v4}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    :goto_37
    return-object v1

    :cond_38
    sget-object v0, Lcom/shopee/foody/camera/service/EnumFlashLight;->NONE:Lcom/shopee/foody/camera/service/EnumFlashLight;

    return-object v0
.end method

.method public final a(Lcom/shopee/foody/camera/service/EnumFlashLight;)I
    .registers 4

    sget-object v0, Lbf/c;->$EnumSwitchMapping$0:[I

    invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I

    move-result p1

    aget p1, v0, p1

    const/4 v0, 0x1

    const v1, 0x7f080115

    if-eq p1, v0, :cond_19

    const/4 v0, 0x2

    if-eq p1, v0, :cond_1c

    const/4 v0, 0x3

    if-eq p1, v0, :cond_15

    goto :goto_1c

    :cond_15
    const v1, 0x7f080114

    goto :goto_1c

    :cond_19
    const v1, 0x7f080116

    :cond_1c
    :goto_1c
    return v1
.end method

.method public final a(Lb9/a;Lbf/f;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    .registers 8
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lb9/a;",
            "Lbf/f;",
            "Lkotlin/coroutines/Continuation<",
            "-",
            "Lkotlin/Result<",
            "Ljava/lang/Boolean;",
            ">;>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    const-string v0, "android.permission.CAMERA"

    filled-new-array {v0}, [Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Luq/c;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v0

    const-string v1, "CameraViewModule"

    if-nez v0, :cond_29

    sget-object p1, Lqa/d;->e:Lqa/d$a;

    sget-object p2, Lbf/b$f;->a:Lbf/b$f;

    invoke-virtual {p1, v1, p2}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p1, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    new-instance p1, Lbf/b$c;

    invoke-direct {p1}, Lbf/b$c;-><init>()V

    invoke-static {p1}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->box-impl(Ljava/lang/Object;)Lkotlin/Result;

    move-result-object p1

    return-object p1

    :cond_29
    iget-object v0, p0, Lbf/b;->m:Landroidx/lifecycle/MutableLiveData;

    const/4 v2, 0x0

    invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    sget-object v0, Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;->PREVIEW:Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;

    iget-object v3, p0, Lbf/b;->c:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {v3}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;

    if-ne v0, v3, :cond_5e

    sget-object p1, Lqa/d;->e:Lqa/d$a;

    sget-object p2, Lbf/b$g;->a:Lbf/b$g;

    invoke-virtual {p1, v1, p2}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p1, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->box-impl(Ljava/lang/Object;)Lkotlin/Result;

    move-result-object p1

    return-object p1

    :cond_5e
    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    if-eqz v0, :cond_7d

    iget-object v1, p0, Lbf/b;->i:Landroidx/lifecycle/MutableLiveData;

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->cameraCount()I

    move-result v3

    invoke-static {v3}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    invoke-virtual {p2}, Lbf/f;->a()V

    invoke-virtual {p0, p1, v0, v2, p3}, Lbf/b;->a(Lb9/a;Lcom/shopee/foody/camera/service/ICameraService;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;

    move-result-object p1

    return-object p1

    :cond_7d
    const-string p1, "fail to create Camera implement"

    sget-object p2, Lqa/d;->e:Lqa/d$a;

    new-instance p3, Lbf/b$i;

    invoke-direct {p3, p1}, Lbf/b$i;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2, v1, p3}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p2, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    new-instance p2, Ljava/lang/Exception;

    invoke-direct {p2, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    invoke-static {p2}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public final synthetic a(Lb9/a;Lcom/shopee/foody/camera/service/ICameraService;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
    .registers 13
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lb9/a;",
            "Lcom/shopee/foody/camera/service/ICameraService;",
            "Z",
            "Lkotlin/coroutines/Continuation<",
            "-",
            "Lkotlin/Result<",
            "Ljava/lang/Boolean;",
            ">;>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    invoke-interface {p2}, Lcom/shopee/foody/camera/service/ICameraService;->stopPreview()V

    iget-object v0, p0, Lbf/b;->l:Landroidx/lifecycle/LiveData;

    invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    if-eqz v0, :cond_28

    if-eqz p3, :cond_14

    invoke-interface {p2, v0}, Lcom/shopee/foody/camera/service/ICameraService;->getNextCameraID(Ljava/lang/Integer;)I

    move-result p3

    goto :goto_1d

    :cond_14
    const-string p3, "current"

    invoke-static {v0, p3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result p3

    :goto_1d
    invoke-static {p3}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object p3

    if-eqz p3, :cond_28

    invoke-virtual {p3}, Ljava/lang/Integer;->intValue()I

    move-result p3

    goto :goto_2d

    :cond_28
    const/4 p3, 0x0

    invoke-interface {p2, p3}, Lcom/shopee/foody/camera/service/ICameraService;->getNextCameraID(Ljava/lang/Integer;)I

    move-result p3

    :goto_2d
    sget-object v0, Lqa/d;->e:Lqa/d$a;

    new-instance v1, Lbf/b$h;

    invoke-direct {v1, p0, p3}, Lbf/b$h;-><init>(Lbf/b;I)V

    const-string v2, "CameraViewModule"

    invoke-virtual {v0, v2, v1}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    iget-object v0, p0, Lbf/b;->k:Landroidx/lifecycle/MutableLiveData;

    invoke-static {p3}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    new-instance v6, Lkotlin/coroutines/SafeContinuation;

    invoke-static {p4}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsJvmKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;

    move-result-object v0

    invoke-direct {v6, v0}, Lkotlin/coroutines/SafeContinuation;-><init>(Lkotlin/coroutines/Continuation;)V

    new-instance v7, Lbf/b$e;

    move-object v0, v7

    move-object v1, v6

    move-object v2, p0

    move-object v3, p2

    move-object v4, p1

    move v5, p3

    invoke-direct/range {v0 .. v5}, Lbf/b$e;-><init>(Lkotlin/coroutines/Continuation;Lbf/b;Lcom/shopee/foody/camera/service/ICameraService;Lb9/a;I)V

    invoke-interface {p2, p1, p3, v7}, Lcom/shopee/foody/camera/service/ICameraService;->prepare(Landroid/content/Context;ILid/b;)V

    invoke-virtual {v6}, Lkotlin/coroutines/SafeContinuation;->getOrThrow()Ljava/lang/Object;

    move-result-object p1

    invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;

    move-result-object p2

    if-ne p1, p2, :cond_66

    invoke-static {p4}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V

    :cond_66
    return-object p1
.end method

.method public final a(Lb9/a;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    .registers 7
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lb9/a;",
            "Lkotlin/coroutines/Continuation<",
            "-",
            "Lkotlin/Result<",
            "Ljava/lang/Boolean;",
            ">;>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    const-string v0, "android.permission.CAMERA"

    filled-new-array {v0}, [Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Luq/c;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v0

    const-string v1, "CameraViewModule"

    if-nez v0, :cond_29

    sget-object p1, Lqa/d;->e:Lqa/d$a;

    sget-object p2, Lbf/b$f0;->a:Lbf/b$f0;

    invoke-virtual {p1, v1, p2}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p1, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    new-instance p1, Lbf/b$c;

    invoke-direct {p1}, Lbf/b$c;-><init>()V

    invoke-static {p1}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->box-impl(Ljava/lang/Object;)Lkotlin/Result;

    move-result-object p1

    return-object p1

    :cond_29
    iget-object v0, p0, Lbf/b;->m:Landroidx/lifecycle/MutableLiveData;

    const/4 v2, 0x0

    invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    invoke-static {v2}, Lkotlin/coroutines/jvm/internal/Boxing;->boxBoolean(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    if-eqz v0, :cond_72

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->cameraCount()I

    move-result v2

    const/4 v3, 0x1

    if-gt v2, v3, :cond_6d

    const-string p1, "Camera count less than 2"

    sget-object p2, Lqa/d;->e:Lqa/d$a;

    new-instance v0, Lbf/b$g0;

    invoke-direct {v0, p1}, Lbf/b$g0;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2, v1, v0}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p2, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    new-instance p2, Ljava/lang/Exception;

    invoke-direct {p2, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    invoke-static {p2}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->box-impl(Ljava/lang/Object;)Lkotlin/Result;

    move-result-object p1

    return-object p1

    :cond_6d
    invoke-virtual {p0, p1, v0, v3, p2}, Lbf/b;->a(Lb9/a;Lcom/shopee/foody/camera/service/ICameraService;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;

    move-result-object p1

    return-object p1

    :cond_72
    const-string p1, "fail to create Camera implement"

    sget-object p2, Lqa/d;->e:Lqa/d$a;

    new-instance v0, Lbf/b$h0;

    invoke-direct {v0, p1}, Lbf/b$h0;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2, v1, v0}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p2, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    new-instance p2, Ljava/lang/Exception;

    invoke-direct {p2, p1}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V

    invoke-static {p2}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public final a(Landroid/content/Context;Landroid/view/SurfaceHolder;IILkotlin/jvm/functions/Function0;)Lkotlinx/coroutines/Job;
    .registers 17
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/view/SurfaceHolder;",
            "II",
            "Lkotlin/jvm/functions/Function0<",
            "Lkotlin/Unit;",
            ">;)",
            "Lkotlinx/coroutines/Job;"
        }
    .end annotation

    invoke-static {p0}, Landroidx/lifecycle/ViewModelKt;->getViewModelScope(Landroidx/lifecycle/ViewModel;)Lkotlinx/coroutines/CoroutineScope;

    move-result-object v0

    invoke-static {}, Lmd/e;->f()Lmd/d;

    move-result-object v1

    new-instance v10, Lbf/b$l;

    const/4 v9, 0x0

    move-object v2, v10

    move-object v3, p0

    move-object v4, p1

    move-object v5, p2

    move v6, p3

    move v7, p4

    move-object/from16 v8, p5

    invoke-direct/range {v2 .. v9}, Lbf/b$l;-><init>(Lbf/b;Landroid/content/Context;Landroid/view/SurfaceHolder;IILkotlin/jvm/functions/Function0;Lkotlin/coroutines/Continuation;)V

    const/4 v2, 0x0

    const/4 v4, 0x2

    const/4 v5, 0x0

    move-object v3, v10

    invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;

    move-result-object v0

    return-object v0
.end method

.method public final a(Landroid/content/Intent;)V
    .registers 6
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    iget-object v0, p0, Lbf/b;->s:Landroidx/lifecycle/MutableLiveData;

    const/4 v1, 0x0

    if-eqz p1, :cond_b

    const-string v2, "show_gallery"

    invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    :cond_b
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    const/4 v0, -0x1

    if-eqz p1, :cond_1c

    const-string v1, "prefer_width"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    goto :goto_1d

    :cond_1c
    const/4 v1, -0x1

    :goto_1d
    if-eqz p1, :cond_26

    const-string v2, "prefer_height"

    invoke-virtual {p1, v2, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    goto :goto_27

    :cond_26
    const/4 v2, -0x1

    :goto_27
    if-lez v1, :cond_32

    if-lez v2, :cond_32

    new-instance v3, Lid/e;

    invoke-direct {v3, v1, v2}, Lid/e;-><init>(II)V

    iput-object v3, p0, Lbf/b;->v:Lid/e;

    :cond_32
    if-eqz p1, :cond_43

    const-string v1, "compress_quality"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    const/16 v0, 0x64

    if-gez p1, :cond_3f

    goto :goto_43

    :cond_3f
    if-lt v0, p1, :cond_43

    iput p1, p0, Lbf/b;->w:I

    :cond_43
    :goto_43
    sget-object p1, Lqa/d;->e:Lqa/d$a;

    new-instance v0, Lbf/b$p;

    invoke-direct {v0, p0}, Lbf/b$p;-><init>(Lbf/b;)V

    const-string v1, "CameraViewModule"

    invoke-virtual {p1, v1, v0}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    return-void
.end method

.method public final a(Landroidx/lifecycle/MutableLiveData;Lcom/shopee/foody/camera/service/EnumFlashLight;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroidx/lifecycle/MutableLiveData<",
            "Lcom/shopee/foody/camera/service/EnumFlashLight;",
            ">;",
            "Lcom/shopee/foody/camera/service/EnumFlashLight;",
            ")V"
        }
    .end annotation

    sget-object v0, Lqa/d;->e:Lqa/d$a;

    new-instance v1, Lbf/b$k0;

    invoke-direct {v1, p2}, Lbf/b$k0;-><init>(Lcom/shopee/foody/camera/service/EnumFlashLight;)V

    const-string v2, "CameraViewModule"

    invoke-virtual {v0, v2, v1}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    invoke-virtual {p1, p2}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    iget-object p1, p0, Lbf/b;->g:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {p0, p2}, Lbf/b;->a(Lcom/shopee/foody/camera/service/EnumFlashLight;)I

    move-result p2

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V

    return-void
.end method

.method public final a(Lb9/a;)V
    .registers 8
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    invoke-virtual {p0}, Lbf/b;->i()V

    invoke-static {p0}, Landroidx/lifecycle/ViewModelKt;->getViewModelScope(Landroidx/lifecycle/ViewModel;)Lkotlinx/coroutines/CoroutineScope;

    move-result-object v0

    invoke-static {}, Lmd/e;->c()Lkotlinx/coroutines/android/HandlerDispatcher;

    move-result-object v1

    new-instance v3, Lbf/b$e0;

    const/4 v2, 0x0

    invoke-direct {v3, p0, p1, v2}, Lbf/b$e0;-><init>(Lbf/b;Lb9/a;Lkotlin/coroutines/Continuation;)V

    const/4 v4, 0x2

    const/4 v5, 0x0

    invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;

    move-result-object p1

    iput-object p1, p0, Lbf/b;->x:Lkotlinx/coroutines/Job;

    return-void
.end method

.method public final a(Lb9/a;Lbf/f;)V
    .registers 12
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    iget-object v0, p0, Lbf/b;->x:Lkotlinx/coroutines/Job;

    const-string v1, "CameraViewModule"

    if-eqz v0, :cond_19

    invoke-interface {v0}, Lkotlinx/coroutines/Job;->isActive()Z

    move-result v0

    const/4 v2, 0x1

    if-eq v2, v0, :cond_e

    goto :goto_19

    :cond_e
    sget-object p1, Lqa/d;->e:Lqa/d$a;

    new-instance p2, Lbf/b$d0;

    invoke-direct {p2, p0}, Lbf/b$d0;-><init>(Lbf/b;)V

    invoke-virtual {p1, v1, p2}, Lqa/d$a;->e(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    goto :goto_37

    :cond_19
    :goto_19
    sget-object v0, Lqa/d;->e:Lqa/d$a;

    sget-object v2, Lbf/b$b0;->a:Lbf/b$b0;

    invoke-virtual {v0, v1, v2}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    invoke-static {p0}, Landroidx/lifecycle/ViewModelKt;->getViewModelScope(Landroidx/lifecycle/ViewModel;)Lkotlinx/coroutines/CoroutineScope;

    move-result-object v3

    invoke-static {}, Lmd/e;->c()Lkotlinx/coroutines/android/HandlerDispatcher;

    move-result-object v4

    const/4 v5, 0x0

    new-instance v6, Lbf/b$c0;

    const/4 v0, 0x0

    invoke-direct {v6, p0, p1, p2, v0}, Lbf/b$c0;-><init>(Lbf/b;Lb9/a;Lbf/f;Lkotlin/coroutines/Continuation;)V

    const/4 v7, 0x2

    const/4 v8, 0x0

    invoke-static/range {v3 .. v8}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;

    move-result-object p1

    iput-object p1, p0, Lbf/b;->x:Lkotlinx/coroutines/Job;

    :goto_37
    return-void
.end method

.method public final a(Lcom/shopee/foody/camera/service/ICameraService;)V
    .registers 3
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    invoke-interface {p1}, Lcom/shopee/foody/camera/service/ICameraService;->isSupportFlash()Z

    move-result v0

    if-nez v0, :cond_e

    iget-object p1, p0, Lbf/b;->e:Landroidx/lifecycle/MutableLiveData;

    sget-object v0, Lcom/shopee/foody/camera/service/EnumFlashLight;->NONE:Lcom/shopee/foody/camera/service/EnumFlashLight;

    invoke-virtual {p0, p1, v0}, Lbf/b;->a(Landroidx/lifecycle/MutableLiveData;Lcom/shopee/foody/camera/service/EnumFlashLight;)V

    return-void

    :cond_e
    invoke-interface {p1}, Lcom/shopee/foody/camera/service/ICameraService;->getFlashMode()Lcom/shopee/foody/camera/service/EnumFlashLight;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/shopee/foody/camera/service/ICameraService;->setFlashMode(Lcom/shopee/foody/camera/service/EnumFlashLight;)Z

    move-result p1

    if-eqz p1, :cond_1d

    iget-object p1, p0, Lbf/b;->e:Landroidx/lifecycle/MutableLiveData;

    invoke-virtual {p0, p1, v0}, Lbf/b;->a(Landroidx/lifecycle/MutableLiveData;Lcom/shopee/foody/camera/service/EnumFlashLight;)V

    :cond_1d
    return-void
.end method

.method public final a(Ljava/io/File;)Z
    .registers 9

    sget-object v0, Ljd/b;->c:Ljd/b$a;

    invoke-virtual {v0}, Ljd/b$a;->a()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    sget-object v1, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v0, v1}, Landroid/content/ContentResolver;->acquireContentProviderClient(Landroid/net/Uri;)Landroid/content/ContentProviderClient;

    move-result-object v0

    const-string v1, "CameraViewModule"

    const/4 v2, 0x0

    if-eqz v0, :cond_69

    const/4 v3, 0x1

    :try_start_16
    sget-object v4, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    sget-object v4, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    const-string v5, "_data LIKE ?"

    new-array v6, v3, [Ljava/lang/String;

    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p1

    aput-object p1, v6, v2

    invoke-virtual {v0, v4, v5, v6}, Landroid/content/ContentProviderClient;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1
    :try_end_30
    .catchall {:try_start_16 .. :try_end_30} :catchall_31

    goto :goto_3c

    :catchall_31
    move-exception p1

    sget-object v4, Lkotlin/Result;->Companion:Lkotlin/Result$Companion;

    invoke-static {p1}, Lkotlin/ResultKt;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lkotlin/Result;->constructor-impl(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    :goto_3c
    invoke-static {p1}, Lkotlin/Result;->exceptionOrNull-impl(Ljava/lang/Object;)Ljava/lang/Throwable;

    move-result-object v4

    if-nez v4, :cond_43

    goto :goto_52

    :cond_43
    sget-object p1, Lqa/d;->e:Lqa/d$a;

    new-instance v5, Lbf/b$j;

    invoke-direct {v5, v4}, Lbf/b$j;-><init>(Ljava/lang/Throwable;)V

    invoke-virtual {p1, v1, v5}, Lqa/d$a;->b(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    const/4 p1, -0x1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    :goto_52
    check-cast p1, Ljava/lang/Number;

    invoke-virtual {p1}, Ljava/lang/Number;->intValue()I

    move-result p1

    if-lez p1, :cond_5b

    const/4 v2, 0x1

    :cond_5b
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x18

    if-lt p1, v1, :cond_65

    invoke-virtual {v0}, Landroid/content/ContentProviderClient;->close()V

    goto :goto_8f

    :cond_65
    invoke-virtual {v0}, Landroid/content/ContentProviderClient;->release()Z

    goto :goto_8f

    :cond_69
    sget-object p1, Lqa/d;->e:Lqa/d$a;

    sget-object v0, Lbf/b$k;->a:Lbf/b$k;

    invoke-virtual {p1, v1, v0}, Lqa/d$a;->e(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    sget-object p1, Lkd/a;->b:Lkd/a;

    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "fail to fetch ContentProviderClient while insert, maybe Unknown URL:"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v3, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x2

    const/4 v3, 0x0

    invoke-static {p1, v0, v3, v1, v3}, Lkd/b$a;->a(Lkd/b;Ljava/lang/Throwable;Ljava/lang/String;ILjava/lang/Object;)V

    :goto_8f
    return v2
.end method

.method public final b(Ljava/io/File;)V
    .registers 2

    iput-object p1, p0, Lbf/b;->b:Ljava/io/File;

    return-void
.end method

.method public final i()V
    .registers 4

    iget-object v0, p0, Lbf/b;->x:Lkotlinx/coroutines/Job;

    const/4 v1, 0x0

    if-eqz v0, :cond_9

    const/4 v2, 0x1

    invoke-static {v0, v1, v2, v1}, Lkotlinx/coroutines/Job$DefaultImpls;->cancel$default(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V

    :cond_9
    iput-object v1, p0, Lbf/b;->x:Lkotlinx/coroutines/Job;

    return-void
.end method

.method public final j()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->j:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final l()Lid/e;
    .registers 2
    .annotation build Landroidx/annotation/AnyThread;
    .end annotation

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    if-eqz v0, :cond_f

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->getPreviewSize()Lid/e;

    move-result-object v0

    goto :goto_10

    :cond_f
    const/4 v0, 0x0

    :goto_10
    return-object v0
.end method

.method public final m()Ljava/io/File;
    .registers 2

    iget-object v0, p0, Lbf/b;->b:Ljava/io/File;

    return-object v0
.end method

.method public final n()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->l:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final o()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Lcom/shopee/foody/camera/service/EnumFlashLight;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->f:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final p()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->h:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final q()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Throwable;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->B:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final r()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->z:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final s()Lid/e;
    .registers 2

    iget-object v0, p0, Lbf/b;->v:Lid/e;

    return-object v0
.end method

.method public final t()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->r:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final u()I
    .registers 2

    iget v0, p0, Lbf/b;->w:I

    return v0
.end method

.method public final v()Landroidx/lifecycle/MutableLiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/MutableLiveData<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->u:Landroidx/lifecycle/MutableLiveData;

    return-object v0
.end method

.method public final w()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->t:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final x()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->p:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final y()Landroidx/lifecycle/LiveData;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroidx/lifecycle/LiveData<",
            "Lcom/shopee/foody/camera/service/EnumCameraActivityUiMode;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lbf/b;->d:Landroidx/lifecycle/LiveData;

    return-object v0
.end method

.method public final z()V
    .registers 7
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    invoke-virtual {p0}, Lbf/b;->i()V

    invoke-static {p0}, Landroidx/lifecycle/ViewModelKt;->getViewModelScope(Landroidx/lifecycle/ViewModel;)Lkotlinx/coroutines/CoroutineScope;

    move-result-object v0

    invoke-static {}, Lmd/e;->c()Lkotlinx/coroutines/android/HandlerDispatcher;

    move-result-object v1

    new-instance v3, Lbf/b$m;

    const/4 v2, 0x0

    invoke-direct {v3, p0, v2}, Lbf/b$m;-><init>(Lbf/b;Lkotlin/coroutines/Continuation;)V

    const/4 v4, 0x2

    const/4 v5, 0x0

    invoke-static/range {v0 .. v5}, Lkotlinx/coroutines/BuildersKt;->launch$default(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlinx/coroutines/CoroutineStart;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;

    iget-object v0, p0, Lbf/b;->a:Lkotlin/Lazy;

    invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/shopee/foody/camera/service/ICameraService;

    const-string v1, "CameraViewModule"

    if-eqz v0, :cond_37

    invoke-interface {v0}, Lcom/shopee/foody/camera/service/ICameraService;->stopPreview()V

    iget-object v0, p0, Lbf/b;->n:Landroidx/lifecycle/MutableLiveData;

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    sget-object v0, Lqa/d;->e:Lqa/d$a;

    sget-object v2, Lbf/b$n;->a:Lbf/b$n;

    invoke-virtual {v0, v1, v2}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    return-void

    :cond_37
    sget-object v0, Lqa/d;->e:Lqa/d$a;

    sget-object v2, Lbf/b$o;->a:Lbf/b$o;

    invoke-virtual {v0, v1, v2}, Lqa/d$a;->e(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    return-void
.end method