	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_set_auto_exposure
_sensor_set_auto_exposure:              ## @sensor_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	movq	%r15, %rdi
	movl	$19, %esi
	movl	$1, %ecx
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$5, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	shll	$7, %edx
	movq	%r15, %rdi
	movl	$41, %esi
	movl	$128, %ecx
	jmp	LBB0_7
LBB0_3:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	shll	$4, %edx
	movq	%r15, %rdi
	movl	$40, %esi
	movl	$16, %ecx
LBB0_7:
	callq	_i2c_w_mask
	movl	%r14d, 4(%r15)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" (%s)"

L_.str.1:                               ## @.str.1
	.asciz	"turn on"

L_.str.2:                               ## @.str.2
	.asciz	"turn off"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported with this sensor"

	.comm	_EPERM,4,2                      ## @EPERM
L_.str.4:                               ## @.str.4
	.asciz	"Sensor not supported for set_auto_exposure"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sensor_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 sensor_set_auto_exposure
_sensor_set_auto_exposure:              ; @sensor_set_auto_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_PDEBUG
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w19, #0
	cset	w2, ne
	mov	x0, x20
	mov	w1, #19
	mov	w3, #1
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #5
	bl	_PDEBUG
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	cmp	w19, #0
	cset	w8, eq
	lsl	w2, w8, #7
	mov	x0, x20
	mov	w1, #41
	mov	w3, #128
	b	LBB0_8
LBB0_7:
	cmp	w19, #0
	cset	w8, eq
	lsl	w2, w8, #4
	mov	x0, x20
	mov	w1, #40
	mov	w3, #16
LBB0_8:
	bl	_i2c_w_mask
	mov	w0, #0
	str	w19, [x20, #4]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" (%s)"

l_.str.1:                               ; @.str.1
	.asciz	"turn on"

l_.str.2:                               ; @.str.2
	.asciz	"turn off"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported with this sensor"

	.comm	_EPERM,4,2                      ; @EPERM
l_.str.4:                               ; @.str.4
	.asciz	"Sensor not supported for set_auto_exposure"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sensor_set_auto_exposure
.subsections_via_symbols
