	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setexposure
_setexposure:                           ## @setexposure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movl	%esi, %r8d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -8(%rbp)
	movq	_SQ930_CTRL_SET_EXPOSURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	(%rdi), %rcx
	movl	%ecx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$129, %ecx
	movl	$528, %ecx                      ## imm = 0x210
	movl	$623, %r10d                     ## imm = 0x26F
	cmovel	%ecx, %r10d
	xorl	%r9d, %r9d
	movl	%r10d, %eax
	subl	%r8d, %eax
	cmovlel	%r8d, %r10d
	cmovlel	%r9d, %eax
	movl	%eax, %ecx
	sarl	$8, %ecx
	movl	%ecx, -80(%rbp)
	movl	%eax, -76(%rbp)
	movl	%r10d, %eax
	shrl	$8, %eax
	movl	%eax, -72(%rbp)
	movl	%r10d, -68(%rbp)
	movl	%edx, -64(%rbp)
	movl	$5, %r8d
	jmp	LBB0_3
LBB0_2:
	orl	$256, %esi                      ## imm = 0x100
	movq	_sensor_tb@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r9,%rcx,8), %eax
	movl	%eax, -80(%rbp)
	movabsq	$38654705672, %rax              ## imm = 0x900000008
	movq	%rax, -76(%rbp)
	movl	%r8d, %eax
	sarl	$8, %eax
	movl	%eax, -68(%rbp)
	movl	4(%r9,%rcx,8), %eax
	movl	%eax, -64(%rbp)
	movl	%r8d, -60(%rbp)
	movq	$53, -56(%rbp)
	movl	4(%r9,%rcx,8), %eax
	movl	%eax, -48(%rbp)
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	subl	$-128, %eax
	movl	%eax, -44(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -40(%rbp)
	movl	$131, -24(%rbp)
	movl	$15, %r8d
LBB0_3:
	leaq	-80(%rbp), %rcx
	xorl	%edx, %edx
	callq	_reg_wb
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SQ930_CTRL_SET_EXPOSURE,4,2    ## @SQ930_CTRL_SET_EXPOSURE
	.comm	_sensor_tb,8,3                  ## @sensor_tb
	.no_dead_strip	_setexposure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function setexposure
lCPI0_0:
	.long	8                               ; 0x8
	.long	9                               ; 0x9
lCPI0_1:
	.long	53                              ; 0x35
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_setexposure:                           ; @setexposure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-8]
Lloh3:
	adrp	x9, _SQ930_CTRL_SET_EXPOSURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SQ930_CTRL_SET_EXPOSURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldrsw	x9, [x0]
	and	w10, w9, #0xfffffffe
	cmp	w10, #128
	b.ne	LBB0_2
; %bb.1:
	mov	w10, #623
	mov	w11, #528
	cmp	w9, #129
	csel	w9, w11, w10, eq
	subs	w10, w9, w8
	csel	w8, w9, w8, gt
	csel	w9, w10, wzr, gt
	asr	w10, w9, #8
	stp	w10, w9, [sp, #12]
	lsr	w9, w8, #8
	stp	w9, w8, [sp, #20]
	str	w2, [sp, #28]
	mov	w4, #5
	b	LBB0_3
LBB0_2:
	orr	w1, w1, #0x100
Lloh6:
	adrp	x10, _sensor_tb@GOTPAGE
Lloh7:
	ldr	x10, [x10, _sensor_tb@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x9, x10, x9, lsl #3
	ldr	w10, [x9]
	str	w10, [sp, #12]
Lloh9:
	adrp	x10, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #16]
	asr	w10, w8, #8
	str	w10, [sp, #24]
	ldr	w10, [x9, #4]
	stp	w10, w8, [sp, #28]
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [sp, #36]
	ldr	w8, [x9, #4]
	cmp	w2, #0
	cinc	w9, w2, lt
	asr	w9, w9, #1
	add	w9, w9, #128
	stp	w8, w9, [sp, #44]
	stur	xzr, [sp, #52]
	stur	xzr, [sp, #60]
	mov	w8, #131
	str	w8, [sp, #68]
	mov	w4, #15
LBB0_3:
	add	x3, sp, #12
	mov	w2, #0
	bl	_reg_wb
	ldur	x8, [x29, #-8]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SQ930_CTRL_SET_EXPOSURE,4,2    ; @SQ930_CTRL_SET_EXPOSURE
	.comm	_sensor_tb,8,3                  ; @sensor_tb
	.no_dead_strip	_setexposure
.subsections_via_symbols
