	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mt9v111_sw_reset
___mt9v111_sw_reset:                    ## @__mt9v111_sw_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_MT9V111_R01_CORE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MT9V111_CORE_R0D_CORE_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MT9V111_CORE_R0D_CORE_RESET_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$1, %r8d
	callq	_mt9v111_update
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_mt9v111_update
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_MT9V111_R01_IFP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MT9V111_IFP_R07_IFP_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MT9V111_IFP_R07_IFP_RESET_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$1, %r8d
	callq	_mt9v111_update
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_mt9v111_update
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9V111_R01_CORE,4,2           ## @MT9V111_R01_CORE
	.comm	_MT9V111_CORE_R0D_CORE_RESET,4,2 ## @MT9V111_CORE_R0D_CORE_RESET
	.comm	_MT9V111_CORE_R0D_CORE_RESET_MASK,4,2 ## @MT9V111_CORE_R0D_CORE_RESET_MASK
	.comm	_MT9V111_R01_IFP,4,2            ## @MT9V111_R01_IFP
	.comm	_MT9V111_IFP_R07_IFP_RESET,4,2  ## @MT9V111_IFP_R07_IFP_RESET
	.comm	_MT9V111_IFP_R07_IFP_RESET_MASK,4,2 ## @MT9V111_IFP_R07_IFP_RESET_MASK
	.no_dead_strip	___mt9v111_sw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mt9v111_sw_reset
___mt9v111_sw_reset:                    ; @__mt9v111_sw_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x20, _MT9V111_R01_CORE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MT9V111_R01_CORE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _MT9V111_CORE_R0D_CORE_RESET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MT9V111_CORE_R0D_CORE_RESET@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x22, _MT9V111_CORE_R0D_CORE_RESET_MASK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MT9V111_CORE_R0D_CORE_RESET_MASK@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w4, #1
	bl	_mt9v111_update
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w4, #0
	bl	_mt9v111_update
	cbnz	w0, LBB0_5
; %bb.2:
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
Lloh6:
	adrp	x20, _MT9V111_R01_IFP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MT9V111_R01_IFP@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x21, _MT9V111_IFP_R07_IFP_RESET@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MT9V111_IFP_R07_IFP_RESET@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh10:
	adrp	x22, _MT9V111_IFP_R07_IFP_RESET_MASK@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MT9V111_IFP_R07_IFP_RESET_MASK@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w4, #1
	bl	_mt9v111_update
	cbnz	w0, LBB0_5
; %bb.3:
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w4, #0
	bl	_mt9v111_update
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9V111_R01_CORE,4,2           ; @MT9V111_R01_CORE
	.comm	_MT9V111_CORE_R0D_CORE_RESET,4,2 ; @MT9V111_CORE_R0D_CORE_RESET
	.comm	_MT9V111_CORE_R0D_CORE_RESET_MASK,4,2 ; @MT9V111_CORE_R0D_CORE_RESET_MASK
	.comm	_MT9V111_R01_IFP,4,2            ; @MT9V111_R01_IFP
	.comm	_MT9V111_IFP_R07_IFP_RESET,4,2  ; @MT9V111_IFP_R07_IFP_RESET
	.comm	_MT9V111_IFP_R07_IFP_RESET_MASK,4,2 ; @MT9V111_IFP_R07_IFP_RESET_MASK
	.no_dead_strip	___mt9v111_sw_reset
.subsections_via_symbols
