	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m5mols_auto_focus_stop
_m5mols_auto_focus_stop:                ## @m5mols_auto_focus_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AF_EXECUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_AF_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_m5mols_write
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AF_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_AF_POWEROFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_m5mols_write
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_SYSTEM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_AF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$255, %ecx
	movl	$-1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_m5mols_busy_wait               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_EXECUTE,4,2                 ## @AF_EXECUTE
	.comm	_REG_AF_STOP,4,2                ## @REG_AF_STOP
	.comm	_AF_MODE,4,2                    ## @AF_MODE
	.comm	_REG_AF_POWEROFF,4,2            ## @REG_AF_POWEROFF
	.comm	_SYSTEM_STATUS,4,2              ## @SYSTEM_STATUS
	.comm	_REG_AF_IDLE,4,2                ## @REG_AF_IDLE
	.no_dead_strip	_m5mols_auto_focus_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m5mols_auto_focus_stop
_m5mols_auto_focus_stop:                ; @m5mols_auto_focus_stop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AF_EXECUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_EXECUTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _REG_AF_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_AF_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_m5mols_write
	cbnz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AF_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _REG_AF_POWEROFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_AF_POWEROFF@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_m5mols_write
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh12:
	adrp	x8, _SYSTEM_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYSTEM_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _REG_AF_IDLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_AF_IDLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #255
	mov	w4, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_m5mols_busy_wait
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_EXECUTE,4,2                 ; @AF_EXECUTE
	.comm	_REG_AF_STOP,4,2                ; @REG_AF_STOP
	.comm	_AF_MODE,4,2                    ; @AF_MODE
	.comm	_REG_AF_POWEROFF,4,2            ; @REG_AF_POWEROFF
	.comm	_SYSTEM_STATUS,4,2              ; @SYSTEM_STATUS
	.comm	_REG_AF_IDLE,4,2                ; @REG_AF_IDLE
	.no_dead_strip	_m5mols_auto_focus_stop
.subsections_via_symbols
