	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_set_mirror
_sensor_set_mirror:                     ## @sensor_set_mirror
	.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_4
## %bb.1:
	movl	$126, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	setne	%dl
	shll	$6, %edx
	movq	%r15, %rdi
	movl	$18, %esi
	movl	$64, %ecx
	callq	_i2c_w_mask
	movl	%r14d, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$5, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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_mirror"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sensor_set_mirror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_set_mirror
_sensor_set_mirror:                     ; @sensor_set_mirror
	.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:
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x7e
	b.eq	LBB0_3
; %bb.2:
	cmp	w19, #0
	cset	w8, ne
	lsl	w2, w8, #6
	mov	x0, x20
	mov	w1, #18
	mov	w3, #64
	bl	_i2c_w_mask
	mov	w0, #0
	str	w19, [x20, #4]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #5
	bl	_PDEBUG
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- 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_mirror"

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