	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9650_set_exposure
_ov9650_set_exposure:                   ## @ov9650_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_D_V4L2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_PDEBUG
	movq	_EXPOSURE_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, (%r15,%rax,4)
	movl	%ebx, %eax
	shrl	$10, %eax
	andl	$63, %eax
	movl	%eax, -28(%rbp)
	movq	_OV9650_AECHM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%ebx, %eax
	shrl	$2, %eax
	movzbl	%al, %eax
	movl	%eax, -28(%rbp)
	movq	_OV9650_AECH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	andl	$3, %ebx
	movl	%ebx, -28(%rbp)
	movq	_OV9650_COM1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_V4L2,4,2                     ## @D_V4L2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set exposure to %d"

	.comm	_EXPOSURE_IDX,8,3               ## @EXPOSURE_IDX
	.comm	_OV9650_AECHM,4,2               ## @OV9650_AECHM
	.comm	_OV9650_AECH,4,2                ## @OV9650_AECH
	.comm	_OV9650_COM1,4,2                ## @OV9650_COM1
	.no_dead_strip	_ov9650_set_exposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9650_set_exposure
_ov9650_set_exposure:                   ; @ov9650_set_exposure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _D_V4L2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_V4L2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_PDEBUG
Lloh5:
	adrp	x8, _EXPOSURE_IDX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXPOSURE_IDX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	w20, [x21, x8, lsl #2]
	ubfx	w8, w20, #10, #6
	str	w8, [sp, #12]
Lloh8:
	adrp	x8, _OV9650_AECHM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV9650_AECHM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ubfx	w8, w20, #2, #8
	str	w8, [sp, #12]
Lloh11:
	adrp	x8, _OV9650_AECH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OV9650_AECH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	tbnz	w0, #31, LBB0_3
; %bb.2:
	and	w8, w20, #0x3
	str	w8, [sp, #12]
Lloh14:
	adrp	x8, _OV9650_COM1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OV9650_COM1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_D_V4L2,4,2                     ; @D_V4L2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set exposure to %d"

	.comm	_EXPOSURE_IDX,8,3               ; @EXPOSURE_IDX
	.comm	_OV9650_AECHM,4,2               ; @OV9650_AECHM
	.comm	_OV9650_AECH,4,2                ; @OV9650_AECH
	.comm	_OV9650_COM1,4,2                ; @OV9650_COM1
	.no_dead_strip	_ov9650_set_exposure
.subsections_via_symbols
