	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_set_auto_focus
_s5c73m3_set_auto_focus:                ## @s5c73m3_set_auto_focus
	.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	24(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.1:
	movq	(%rax), %rax
	movq	_V4L2_AUTO_FOCUS_RANGE_MACRO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_COMM_AF_MODE_MACRO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.7:
	movl	$1, %esi
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_10
	jmp	LBB0_9
LBB0_2:
	movq	_COMM_AF_MODE_NORMAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movq	_COMM_AF_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_s5c73m3_isp_command
	testl	%eax, %eax
	je	LBB0_5
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %esi
	jmp	LBB0_10
LBB0_11:
	movq	16(%rbx), %rax
	movl	$1, %esi
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.12:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
LBB0_9:
	xorl	%esi, %esi
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_s5c73m3_af_run                 ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_AUTO_FOCUS_RANGE_MACRO,8,3 ## @V4L2_AUTO_FOCUS_RANGE_MACRO
	.comm	_COMM_AF_MODE_MACRO,4,2         ## @COMM_AF_MODE_MACRO
	.comm	_COMM_AF_MODE_NORMAL,4,2        ## @COMM_AF_MODE_NORMAL
	.comm	_COMM_AF_MODE,4,2               ## @COMM_AF_MODE
	.no_dead_strip	_s5c73m3_set_auto_focus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_set_auto_focus
_s5c73m3_set_auto_focus:                ; @s5c73m3_set_auto_focus
	.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
	ldr	x8, [x0, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _V4L2_AUTO_FOCUS_RANGE_MACRO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_AUTO_FOCUS_RANGE_MACRO@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _COMM_AF_MODE_MACRO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _COMM_AF_MODE_MACRO@GOTPAGEOFF]
Lloh5:
	adrp	x11, _COMM_AF_MODE_NORMAL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _COMM_AF_MODE_NORMAL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _COMM_AF_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _COMM_AF_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5c73m3_isp_command
	cbz	w0, LBB0_7
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_7:
	mov	w1, #1
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5c73m3_af_run
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
LBB0_10:
	mov	w1, #0
	b	LBB0_8
LBB0_11:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_AUTO_FOCUS_RANGE_MACRO,8,3 ; @V4L2_AUTO_FOCUS_RANGE_MACRO
	.comm	_COMM_AF_MODE_MACRO,4,2         ; @COMM_AF_MODE_MACRO
	.comm	_COMM_AF_MODE_NORMAL,4,2        ; @COMM_AF_MODE_NORMAL
	.comm	_COMM_AF_MODE,4,2               ; @COMM_AF_MODE
	.no_dead_strip	_s5c73m3_set_auto_focus
.subsections_via_symbols
