	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7740_get_exp
_ov7740_get_exp:                        ## @ov7740_get_exp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rcx
	movq	_V4L2_EXPOSURE_MANUAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_REG_AEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_REG_HAEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-20(%rbp), %eax
	shll	$8, %eax
	movzbl	-24(%rbp), %ecx
	orl	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_EXPOSURE_MANUAL,8,3       ## @V4L2_EXPOSURE_MANUAL
	.comm	_REG_AEC,4,2                    ## @REG_AEC
	.comm	_REG_HAEC,4,2                   ## @REG_HAEC
	.no_dead_strip	_ov7740_get_exp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7740_get_exp
_ov7740_get_exp:                        ; @ov7740_get_exp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _V4L2_EXPOSURE_MANUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_EXPOSURE_MANUAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x8, _REG_AEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_AEC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _REG_HAEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_HAEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #8]
	ldrb	w9, [sp, #12]
	bfi	w9, w8, #8, #24
	ldr	x8, [x19]
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_EXPOSURE_MANUAL,8,3       ; @V4L2_EXPOSURE_MANUAL
	.comm	_REG_AEC,4,2                    ; @REG_AEC
	.comm	_REG_HAEC,4,2                   ; @REG_HAEC
	.no_dead_strip	_ov7740_get_exp
.subsections_via_symbols
