	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k4aa_set_exposure
_s5k4aa_set_exposure:                   ## @s5k4aa_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	_S5K4AA_PAGE_MAP_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ecx, %r14d
	callq	_gspca_dbg
	movq	_S5K4AA_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%r14d, %eax
	movzbl	%ah, %eax
	movl	%eax, -20(%rbp)
	movq	_S5K4AA_EXPOSURE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movzbl	%r14b, %eax
	movl	%eax, -20(%rbp)
	movq	_S5K4AA_EXPOSURE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K4AA_PAGE_MAP_2,4,2          ## @S5K4AA_PAGE_MAP_2
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set exposure to %d\n"

	.comm	_S5K4AA_PAGE_MAP,4,2            ## @S5K4AA_PAGE_MAP
	.comm	_S5K4AA_EXPOSURE_HI,4,2         ## @S5K4AA_EXPOSURE_HI
	.comm	_S5K4AA_EXPOSURE_LO,4,2         ## @S5K4AA_EXPOSURE_LO
	.no_dead_strip	_s5k4aa_set_exposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k4aa_set_exposure
_s5k4aa_set_exposure:                   ; @s5k4aa_set_exposure
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _S5K4AA_PAGE_MAP_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5K4AA_PAGE_MAP_2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _D_CONF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_gspca_dbg
Lloh8:
	adrp	x8, _S5K4AA_PAGE_MAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S5K4AA_PAGE_MAP@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, #8, #8
	str	w8, [sp, #12]
Lloh11:
	adrp	x8, _S5K4AA_EXPOSURE_HI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S5K4AA_EXPOSURE_HI@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, #0xff
	str	w8, [sp, #12]
Lloh14:
	adrp	x8, _S5K4AA_EXPOSURE_LO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S5K4AA_EXPOSURE_LO@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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K4AA_PAGE_MAP_2,4,2          ; @S5K4AA_PAGE_MAP_2
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set exposure to %d\n"

	.comm	_S5K4AA_PAGE_MAP,4,2            ; @S5K4AA_PAGE_MAP
	.comm	_S5K4AA_EXPOSURE_HI,4,2         ; @S5K4AA_EXPOSURE_HI
	.comm	_S5K4AA_EXPOSURE_LO,4,2         ; @S5K4AA_EXPOSURE_LO
	.no_dead_strip	_s5k4aa_set_exposure
.subsections_via_symbols
