	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi2020_init_post_alt
_mi2020_init_post_alt:                  ## @mi2020_init_post_alt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx,%rax,8), %r12
	xorl	%r15d, %r15d
	cmpq	$0, 40(%rdi)
	setg	%r15b
	xorl	%eax, %r15d
	xorl	%ebx, %ebx
	cmpq	$0, 48(%rdi)
	setg	%bl
	xorl	%eax, %ebx
	movq	56(%rdi), %r14
	xorl	%eax, %eax
	testq	%r14, %r14
	setg	%al
	movq	64(%rdi), %rdi
	movq	$144, -64(%rbp)
	movabsq	$717259538572, %rcx             ## imm = 0xA70000008C
	movq	%rcx, -80(%rbp)
	movl	l___const.mi2020_init_post_alt.dat_wbal2+8(%rip), %edx
	movl	%edx, -88(%rbp)
	movq	l___const.mi2020_init_post_alt.dat_wbal2(%rip), %rsi
	movq	%rsi, -96(%rbp)
	movq	%rcx, -112(%rbp)
	movl	%edx, -120(%rbp)
	movq	%rsi, -128(%rbp)
	movabsq	$17179869328, %rcx              ## imm = 0x400000090
	movq	%rcx, -144(%rbp)
	movq	$144, -160(%rbp)
	movl	%edx, -168(%rbp)
	movq	%rsi, -176(%rbp)
	movl	$-1, 4(%r13)
	orl	$2, %eax
	shll	$6, %eax
	movl	%eax, -56(%rbp)
	movl	$157, -72(%rbp)
	movl	$158, -104(%rbp)
	cmpq	$2, %rdi
	ja	LBB0_2
## %bb.1:
	leaq	l_switch.table.mi2020_init_post_alt(%rip), %rax
	movl	(%rax,%rdi,4), %eax
	leaq	l_switch.table.mi2020_init_post_alt.6(%rip), %rcx
	movl	(%rcx,%rdi,4), %ecx
	movl	%eax, -88(%rbp)
	movl	%eax, -120(%rbp)
	movl	%ecx, -168(%rbp)
LBB0_2:
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setle	%al
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	setle	%cl
	leal	(%rcx,%rax,2), %edx
	addl	$108, %edx
	movl	%edx, -136(%rbp)
	leal	(%rcx,%rax,2), %eax
	addl	$36, %eax
	movl	%eax, -152(%rbp)
	movl	$200, %edi
	callq	_msleep
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$5, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	$2, %edi
	callq	_msleep
	movq	%r13, %rdi
	callq	_common
	movl	$142, %edi
	callq	_msleep
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$16, %ecx
	movl	$16, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$3, %ecx
	movl	$193, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$66, %ecx
	movl	$194, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$106, %ecx
	movl	$13, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-128(%r12), %rdx
	cmpq	$3, %rdx
	ja	LBB0_10
## %bb.3:
	movq	%r14, -200(%rbp)                ## 8-byte Spill
	movl	%ebx, -180(%rbp)                ## 4-byte Spill
	movl	%r15d, -184(%rbp)               ## 4-byte Spill
	leaq	L_.str.3(%rip), %r14
	leaq	L_.str.1(%rip), %rbx
	movq	_dat_1280@GOTPCREL(%rip), %rax
	movq	_dat_640@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_4:
	movq	_dat_800@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	movl	$512, %r8d                      ## imm = 0x200
	movl	$12, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_tbl_init_post_alt_low1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_fetch_idxdata
	movl	$120, %r14d
	movl	$16, %r15d
	movq	_tbl_init_post_alt_low3@GOTPCREL(%rip), %rbx
	cmpq	$128, %r12
	jne	LBB0_9
## %bb.6:
	movq	_tbl_init_post_alt_low2@GOTPCREL(%rip), %rax
	movq	%r12, -192(%rbp)                ## 8-byte Spill
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	-192(%rbp), %r12                ## 8-byte Reload
	movl	%eax, %edx
	callq	_fetch_idxdata
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.5(%rip), %r14
	leaq	L_.str.4(%rip), %rbx
	movq	_dat_1600@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	movl	$512, %r8d                      ## imm = 0x200
	movl	$12, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	%rbx, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	%r14, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	$1850, %r14d                    ## imm = 0x73A
	movl	$1, %r15d
	movq	_tbl_init_post_alt_big@GOTPCREL(%rip), %rbx
LBB0_9:
	movl	(%rbx), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fetch_idxdata
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	movl	$16, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$193, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$65, %ecx
	movl	$194, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	%r14d, %edi
	callq	_msleep
	movl	-184(%rbp), %r15d               ## 4-byte Reload
	movl	-180(%rbp), %ebx                ## 4-byte Reload
	movq	-200(%rbp), %r14                ## 8-byte Reload
LBB0_10:
	testq	%r14, %r14
	setg	-184(%rbp)                      ## 1-byte Folded Spill
	testl	%ebx, %ebx
	setg	-180(%rbp)                      ## 1-byte Folded Spill
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	setg	%r15b
	movq	$0, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	$64, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	$40, %edi
	callq	_msleep
	movq	_dat_freq1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	$33, %edi
	callq	_msleep
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-96(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-128(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_dat_wbal1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-176(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_dat_multi5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_dat_multi6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	$7, %edi
	callq	_msleep
	leaq	-212(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$192, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ctrl_in
	movq	_tbl_init_post_alt_3B@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fetch_idxdata
	movq	_dat_hvflip1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-144(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_dat_hvflip3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	leaq	-160(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_dat_hvflip5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movq	_dat_hvflip6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movl	$64, %esi
	movl	$3, %edx
	movl	$31232, %ecx                    ## imm = 0x7A00
	movl	$51, %r8d
	movl	$3, %r9d
	xorl	%eax, %eax
	callq	_ctrl_out
	movl	$250, %edi
	callq	_msleep
	andq	$-2, %r12
	cmpq	$128, %r12
	jne	LBB0_11
## %bb.12:
	movq	_tbl_middle_hvflip_low@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_tbl_middle_hvflip_big@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fetch_idxdata
	movb	%r15b, %r14b
	xorl	%r12d, %r12d
	movb	-180(%rbp), %al                 ## 1-byte Reload
	movb	%al, %r12b
	xorl	%ebx, %ebx
	movb	-184(%rbp), %al                 ## 1-byte Reload
	movb	%al, %bl
	movq	_tbl_end_hvflip@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_fetch_idxdata
	movl	$0, 4(%r13)
	movq	%r14, 8(%r13)
	movq	%r12, 16(%r13)
	movq	%rbx, 24(%r13)
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 32(%r13)
	movq	%r13, %rdi
	callq	_mi2020_camera_settings
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.mi2020_init_post_alt.dat_wbal2
l___const.mi2020_init_post_alt.dat_wbal2:
	.long	144                             ## 0x90
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_dat_640,8,3                    ## @dat_640
	.comm	_dat_800,8,3                    ## @dat_800
	.comm	_tbl_init_post_alt_low1,4,2     ## @tbl_init_post_alt_low1
	.comm	_tbl_init_post_alt_low2,4,2     ## @tbl_init_post_alt_low2
	.comm	_tbl_init_post_alt_low3,4,2     ## @tbl_init_post_alt_low3
	.comm	_dat_1280,8,3                   ## @dat_1280
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\214'\007"

L_.str.1:                               ## @.str.1
	.asciz	"\220\005\004"

L_.str.2:                               ## @.str.2
	.asciz	"\214'\t"

L_.str.3:                               ## @.str.3
	.asciz	"\220\004\002"

	.comm	_dat_1600,8,3                   ## @dat_1600
L_.str.4:                               ## @.str.4
	.asciz	"\220\006@"

L_.str.5:                               ## @.str.5
	.asciz	"\220\004\260"

	.comm	_tbl_init_post_alt_big,4,2      ## @tbl_init_post_alt_big
	.comm	_dat_freq1,8,3                  ## @dat_freq1
	.comm	_dat_wbal1,8,3                  ## @dat_wbal1
	.comm	_dat_multi5,8,3                 ## @dat_multi5
	.comm	_dat_multi6,8,3                 ## @dat_multi6
	.comm	_tbl_init_post_alt_3B,4,2       ## @tbl_init_post_alt_3B
	.comm	_dat_hvflip1,8,3                ## @dat_hvflip1
	.comm	_dat_hvflip3,8,3                ## @dat_hvflip3
	.comm	_dat_hvflip5,8,3                ## @dat_hvflip5
	.comm	_dat_hvflip6,8,3                ## @dat_hvflip6
	.comm	_tbl_middle_hvflip_low,4,2      ## @tbl_middle_hvflip_low
	.comm	_tbl_middle_hvflip_big,4,2      ## @tbl_middle_hvflip_big
	.comm	_tbl_end_hvflip,4,2             ## @tbl_end_hvflip
	.no_dead_strip	_mi2020_init_post_alt
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mi2020_init_post_alt
l_switch.table.mi2020_init_post_alt:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	32                              ## 0x20

	.p2align	2                               ## @switch.table.mi2020_init_post_alt.6
l_switch.table.mi2020_init_post_alt.6:
	.long	23                              ## 0x17
	.long	53                              ## 0x35
	.long	23                              ## 0x17

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi2020_init_post_alt
_mi2020_init_post_alt:                  ; @mi2020_init_post_alt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x9, x8, [x0]
	ldr	x24, [x8, x9, lsl #3]
	ldp	x8, x10, [x0, #40]
	cmp	x8, #0
	cset	w8, gt
	eor	w25, w9, w8
	cmp	x10, #0
	cset	w8, gt
	eor	w26, w9, w8
	ldp	x27, x23, [x0, #56]
	mov	w8, #144
	stur	x8, [x29, #-104]
	mov	x9, #140
	movk	x9, #167, lsl #32
	str	x9, [sp, #120]
Lloh3:
	adrp	x10, l___const.mi2020_init_post_alt.dat_wbal2@PAGE
Lloh4:
	add	x10, x10, l___const.mi2020_init_post_alt.dat_wbal2@PAGEOFF
	ldr	x11, [x10]
	str	x11, [sp, #104]
	ldr	w10, [x10, #8]
	str	w10, [sp, #112]
	str	x9, [sp, #88]
	str	x11, [sp, #72]
	str	w10, [sp, #80]
	mov	x9, #144
	movk	x9, #4, lsl #32
	str	x9, [sp, #56]
	str	x8, [sp, #40]
	str	x11, [sp, #24]
	str	w10, [sp, #32]
	mov	w8, #-1
	str	w8, [x0, #4]
	cmp	x27, #0
	mov	w8, #128
	mov	w9, #192
	csel	w8, w9, w8, gt
	stur	w8, [x29, #-96]
	mov	w8, #157
	str	w8, [sp, #128]
	mov	w8, #158
	str	w8, [sp, #96]
	cmp	x23, #2
	b.hi	LBB0_2
; %bb.1:
	lsl	x8, x23, #2
Lloh5:
	adrp	x9, l_switch.table.mi2020_init_post_alt@PAGE
Lloh6:
	add	x9, x9, l_switch.table.mi2020_init_post_alt@PAGEOFF
	ldr	w9, [x9, x8]
Lloh7:
	adrp	x10, l_switch.table.mi2020_init_post_alt.6@PAGE
Lloh8:
	add	x10, x10, l_switch.table.mi2020_init_post_alt.6@PAGEOFF
	ldr	w8, [x10, x8]
	str	w9, [sp, #112]
	str	w9, [sp, #80]
	str	w8, [sp, #32]
LBB0_2:
	cmp	w26, #1
	cset	w8, lt
	cmp	w25, #1
	cset	w9, lt
	bfi	w9, w8, #1, #1
	mov	w8, #108
	orr	w8, w9, w8
	str	w8, [sp, #64]
	mov	w8, #36
	orr	w8, w9, w8
	str	w8, [sp, #48]
	mov	w0, #200
	bl	_msleep
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #5
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_ctrl_out
	mov	w0, #2
	bl	_msleep
	mov	x0, x19
	bl	_common
	mov	w0, #142
	bl	_msleep
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #16
	mov	w4, #16
	mov	w5, #0
	bl	_ctrl_out
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #3
	mov	w4, #193
	mov	w5, #0
	bl	_ctrl_out
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #66
	mov	w4, #194
	mov	w5, #0
	bl	_ctrl_out
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #106
	mov	w4, #13
	mov	w5, #0
	bl	_ctrl_out
	sub	x10, x24, #128
	cmp	x10, #3
	b.hi	LBB0_11
; %bb.3:
Lloh9:
	adrp	x20, l_.str.3@PAGE
Lloh10:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh13:
	adrp	x8, _dat_1280@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dat_1280@GOTPAGEOFF]
Lloh15:
	adrp	x9, _dat_640@GOTPAGE
Lloh16:
	ldr	x9, [x9, _dat_640@GOTPAGEOFF]
Lloh17:
	adrp	x11, lJTI0_0@PAGE
Lloh18:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_4
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_4:
Lloh19:
	adrp	x9, _dat_800@GOTPAGE
Lloh20:
	ldr	x9, [x9, _dat_800@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x9]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #0
	mov	w4, #512
	mov	w5, #12
	bl	_ctrl_out
Lloh21:
	adrp	x8, _tbl_init_post_alt_low1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tbl_init_post_alt_low1@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fetch_idxdata
	cmp	x24, #128
	b.ne	LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _tbl_init_post_alt_low2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tbl_init_post_alt_low2@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fetch_idxdata
LBB0_7:
	mov	w20, #120
	mov	w21, #16
Lloh27:
	adrp	x8, _tbl_init_post_alt_low3@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tbl_init_post_alt_low3@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh29:
	adrp	x20, l_.str.5@PAGE
Lloh30:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh31:
	adrp	x8, _dat_1600@GOTPAGE
Lloh32:
	ldr	x8, [x8, _dat_1600@GOTPAGEOFF]
Lloh33:
	adrp	x21, l_.str.4@PAGE
Lloh34:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_9:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #0
	mov	w4, #512
	mov	w5, #12
	bl	_ctrl_out
Lloh35:
	adrp	x8, l_.str@PAGE
Lloh36:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	str	x21, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh37:
	adrp	x8, l_.str.2@PAGE
Lloh38:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	str	x20, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	mov	w20, #1850
	mov	w21, #1
Lloh39:
	adrp	x8, _tbl_init_post_alt_big@GOTPAGE
Lloh40:
	ldr	x8, [x8, _tbl_init_post_alt_big@GOTPAGEOFF]
LBB0_10:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_fetch_idxdata
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	x3, x21
	mov	w4, #16
	mov	w5, #0
	bl	_ctrl_out
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #0
	mov	w4, #193
	mov	w5, #0
	bl	_ctrl_out
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #65
	mov	w4, #194
	mov	w5, #0
	bl	_ctrl_out
	mov	x0, x20
	bl	_msleep
LBB0_11:
	cmp	x27, #0
	cset	w21, gt
	cmp	w26, #0
	cset	w22, gt
	cmp	w25, #0
	cset	w25, gt
	str	xzr, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	mov	w3, #64
	mov	w4, #0
	mov	w5, #0
	bl	_ctrl_out
	mov	w0, #40
	bl	_msleep
Lloh41:
	adrp	x8, _dat_freq1@GOTPAGE
Lloh42:
	ldr	x8, [x8, _dat_freq1@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	sub	x8, x29, #104
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	mov	w0, #33
	bl	_msleep
	add	x8, sp, #120
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	add	x8, sp, #104
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	add	x8, sp, #88
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	add	x8, sp, #72
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh44:
	adrp	x8, _dat_wbal1@GOTPAGE
Lloh45:
	ldr	x8, [x8, _dat_wbal1@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	add	x8, sp, #24
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh47:
	adrp	x8, _dat_multi5@GOTPAGE
Lloh48:
	ldr	x8, [x8, _dat_multi5@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh50:
	adrp	x8, _dat_multi6@GOTPAGE
Lloh51:
	ldr	x8, [x8, _dat_multi6@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	mov	w0, #7
	bl	_msleep
	add	x6, sp, #20
	mov	x0, x19
	mov	w1, #192
	mov	w2, #2
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_ctrl_in
Lloh53:
	adrp	x8, _tbl_init_post_alt_3B@GOTPAGE
Lloh54:
	ldr	x8, [x8, _tbl_init_post_alt_3B@GOTPAGEOFF]
Lloh55:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fetch_idxdata
Lloh56:
	adrp	x8, _dat_hvflip1@GOTPAGE
Lloh57:
	ldr	x8, [x8, _dat_hvflip1@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	add	x8, sp, #56
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh59:
	adrp	x8, _dat_hvflip3@GOTPAGE
Lloh60:
	ldr	x8, [x8, _dat_hvflip3@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	add	x8, sp, #40
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh62:
	adrp	x8, _dat_hvflip5@GOTPAGE
Lloh63:
	ldr	x8, [x8, _dat_hvflip5@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
Lloh65:
	adrp	x8, _dat_hvflip6@GOTPAGE
Lloh66:
	ldr	x8, [x8, _dat_hvflip6@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #3
	mov	w3, #31232
	mov	w4, #51
	mov	w5, #3
	bl	_ctrl_out
	mov	w0, #250
	bl	_msleep
Lloh68:
	adrp	x8, _tbl_middle_hvflip_low@GOTPAGE
Lloh69:
	ldr	x8, [x8, _tbl_middle_hvflip_low@GOTPAGEOFF]
	and	x9, x24, #0xfffffffffffffffe
Lloh70:
	adrp	x10, _tbl_middle_hvflip_big@GOTPAGE
Lloh71:
	ldr	x10, [x10, _tbl_middle_hvflip_big@GOTPAGEOFF]
	cmp	x9, #128
	csel	x8, x8, x10, eq
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fetch_idxdata
Lloh72:
	adrp	x8, _tbl_end_hvflip@GOTPAGE
Lloh73:
	ldr	x8, [x8, _tbl_end_hvflip@GOTPAGEOFF]
Lloh74:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fetch_idxdata
	str	wzr, [x19, #4]
	stp	x25, x22, [x19, #8]
	stp	x21, x23, [x19, #24]
	mov	x0, x19
	bl	_mi2020_camera_settings
	ldur	x8, [x29, #-88]
Lloh75:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh76:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh77:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.p2align	2                               ; @__const.mi2020_init_post_alt.dat_wbal2
l___const.mi2020_init_post_alt.dat_wbal2:
	.long	144                             ; 0x90
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_dat_640,8,3                    ; @dat_640
	.comm	_dat_800,8,3                    ; @dat_800
	.comm	_tbl_init_post_alt_low1,4,2     ; @tbl_init_post_alt_low1
	.comm	_tbl_init_post_alt_low2,4,2     ; @tbl_init_post_alt_low2
	.comm	_tbl_init_post_alt_low3,4,2     ; @tbl_init_post_alt_low3
	.comm	_dat_1280,8,3                   ; @dat_1280
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\214'\007"

l_.str.1:                               ; @.str.1
	.asciz	"\220\005\004"

l_.str.2:                               ; @.str.2
	.asciz	"\214'\t"

l_.str.3:                               ; @.str.3
	.asciz	"\220\004\002"

	.comm	_dat_1600,8,3                   ; @dat_1600
l_.str.4:                               ; @.str.4
	.asciz	"\220\006@"

l_.str.5:                               ; @.str.5
	.asciz	"\220\004\260"

	.comm	_tbl_init_post_alt_big,4,2      ; @tbl_init_post_alt_big
	.comm	_dat_freq1,8,3                  ; @dat_freq1
	.comm	_dat_wbal1,8,3                  ; @dat_wbal1
	.comm	_dat_multi5,8,3                 ; @dat_multi5
	.comm	_dat_multi6,8,3                 ; @dat_multi6
	.comm	_tbl_init_post_alt_3B,4,2       ; @tbl_init_post_alt_3B
	.comm	_dat_hvflip1,8,3                ; @dat_hvflip1
	.comm	_dat_hvflip3,8,3                ; @dat_hvflip3
	.comm	_dat_hvflip5,8,3                ; @dat_hvflip5
	.comm	_dat_hvflip6,8,3                ; @dat_hvflip6
	.comm	_tbl_middle_hvflip_low,4,2      ; @tbl_middle_hvflip_low
	.comm	_tbl_middle_hvflip_big,4,2      ; @tbl_middle_hvflip_big
	.comm	_tbl_end_hvflip,4,2             ; @tbl_end_hvflip
	.no_dead_strip	_mi2020_init_post_alt
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mi2020_init_post_alt
l_switch.table.mi2020_init_post_alt:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	32                              ; 0x20

	.p2align	2                               ; @switch.table.mi2020_init_post_alt.6
l_switch.table.mi2020_init_post_alt.6:
	.long	23                              ; 0x17
	.long	53                              ; 0x35
	.long	23                              ; 0x17

.subsections_via_symbols
