	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_sensor_output
_configure_sensor_output:               ## @configure_sensor_output
	.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, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.3:
	movq	_MODE_SXGA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$29, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$189, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$25, %esi
	movl	$1, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$26, %esi
	movl	$129, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$18, %esi
	xorl	%edx, %edx
	callq	_i2c_w1
	movabsq	$81604378764, %rax              ## imm = 0x130000008C
	jmp	LBB0_14
LBB0_9:
	movq	_MODE_SXGA@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r14, %rdi
	movl	$240, %esi
	movl	$2, %edx
	callq	_i2c_w2
	movq	%r14, %rdi
	movl	$200, %esi
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	movl	$38667, %edx                    ## imm = 0x970B
	jmp	LBB0_11
LBB0_5:
	movq	_MODE_SXGA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$27, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$188, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$25, %esi
	movl	$1, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$26, %esi
	movl	$130, %edx
	callq	_i2c_w1
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_i2c_r1
	movl	-20(%rbp), %edx
	andl	$7, %edx
	jmp	LBB0_7
LBB0_12:
	movl	$32768, %edx                    ## imm = 0x8000
LBB0_11:
	callq	_i2c_w2
	movq	%r14, %rdi
	movl	$240, %esi
	xorl	%edx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_w2                         ## TAILCALL
LBB0_13:
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$19, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$99, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$25, %esi
	movl	$1, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$26, %esi
	movl	$121, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$18, %esi
	movl	$64, %edx
	callq	_i2c_w1
	movabsq	$47244640316, %rax              ## imm = 0xB0000003C
LBB0_14:
	movq	%rax, 4(%r14)
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$36, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$197, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$25, %esi
	xorl	%edx, %edx
	callq	_i2c_w1
	movq	%r14, %rdi
	movl	$26, %esi
	movl	$60, %edx
	callq	_i2c_w1
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_i2c_r1
	movl	-20(%rbp), %edx
	andl	$7, %edx
	orl	$64, %edx
LBB0_7:
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_i2c_w1
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_SXGA,4,2                  ## @MODE_SXGA
	.no_dead_strip	_configure_sensor_output
.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 configure_sensor_output
lCPI0_0:
	.long	140                             ; 0x8c
	.long	19                              ; 0x13
lCPI0_1:
	.long	60                              ; 0x3c
	.long	11                              ; 0xb
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_configure_sensor_output:               ; @configure_sensor_output
	.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, x0
	ldr	w8, [x0]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.3:
Lloh0:
	adrp	x8, _MODE_SXGA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_SXGA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w1
	b.eq	LBB0_11
; %bb.4:
	mov	w1, #23
	mov	w2, #29
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #24
	mov	w2, #189
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #25
	mov	w2, #1
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #26
	mov	w2, #129
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #18
	mov	w2, #0
	bl	_i2c_w1
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh5:
	adrp	x8, _MODE_SXGA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_SXGA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w20, w8, w1
	mov	x0, x19
	mov	w1, #240
	mov	w2, #2
	bl	_i2c_w2
	mov	x0, x19
	mov	w1, #200
	cbz	w20, LBB0_9
; %bb.6:
	mov	w2, #38667
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _MODE_SXGA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MODE_SXGA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w1
	b.eq	LBB0_13
; %bb.8:
	mov	w1, #23
	mov	w2, #27
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #24
	mov	w2, #188
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #25
	mov	w2, #1
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #26
	mov	w2, #130
	bl	_i2c_w1
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #18
	bl	_i2c_r1
	ldr	w8, [sp, #12]
	and	w2, w8, #0x7
	b	LBB0_14
LBB0_9:
	mov	w2, #32768
LBB0_10:
	bl	_i2c_w2
	mov	x0, x19
	mov	w1, #240
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_i2c_w2
LBB0_11:
	mov	w1, #23
	mov	w2, #19
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #24
	mov	w2, #99
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #25
	mov	w2, #1
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #26
	mov	w2, #121
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #18
	mov	w2, #64
	bl	_i2c_w1
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
LBB0_12:
	stur	d0, [x19, #4]
	b	LBB0_15
LBB0_13:
	mov	w1, #23
	mov	w2, #36
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #24
	mov	w2, #197
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #25
	mov	w2, #0
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #26
	mov	w2, #60
	bl	_i2c_w1
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #18
	bl	_i2c_r1
	ldr	w8, [sp, #12]
	mov	w2, #64
	bfxil	w2, w8, #0, #3
LBB0_14:
	mov	x0, x19
	mov	w1, #18
	bl	_i2c_w1
LBB0_15:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_SXGA,4,2                  ; @MODE_SXGA
	.no_dead_strip	_configure_sensor_output
.subsections_via_symbols
