	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_hw_set_auto_exposure
_s5k5baf_hw_set_auto_exposure:          ## @s5k5baf_hw_set_auto_exposure
	.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	_V4L2_EXPOSURE_AUTO@GOTPCREL(%rip), %rax
	movl	$1, %edx
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_s5k5baf_hw_set_user_exposure
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_s5k5baf_hw_set_user_gain
	xorl	%edx, %edx
LBB0_2:
	movq	_AALG_AE_EN@GOTPCREL(%rip), %rax
	movq	_AALG_DIVLEI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_s5k5baf_hw_set_alg             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EXPOSURE_AUTO,4,2         ## @V4L2_EXPOSURE_AUTO
	.comm	_AALG_AE_EN,4,2                 ## @AALG_AE_EN
	.comm	_AALG_DIVLEI_EN,4,2             ## @AALG_DIVLEI_EN
	.no_dead_strip	_s5k5baf_hw_set_auto_exposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_hw_set_auto_exposure
_s5k5baf_hw_set_auto_exposure:          ; @s5k5baf_hw_set_auto_exposure
	.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, _V4L2_EXPOSURE_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_EXPOSURE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5k5baf_hw_set_user_exposure
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5k5baf_hw_set_user_gain
	mov	w2, #0
LBB0_3:
Lloh3:
	adrp	x8, _AALG_AE_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AALG_AE_EN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AALG_DIVLEI_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AALG_DIVLEI_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5k5baf_hw_set_alg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EXPOSURE_AUTO,4,2         ; @V4L2_EXPOSURE_AUTO
	.comm	_AALG_AE_EN,4,2                 ; @AALG_AE_EN
	.comm	_AALG_DIVLEI_EN,4,2             ; @AALG_DIVLEI_EN
	.no_dead_strip	_s5k5baf_hw_set_auto_exposure
.subsections_via_symbols
