	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ov_sensor_window
_set_ov_sensor_window:                  ## @set_ov_sensor_window
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$15, %ecx
	ja	LBB0_3
## %bb.1:
	movl	$57353, %edx                    ## imm = 0xE009
	btl	%ecx, %edx
	jae	LBB0_2
## %bb.15:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mode_init_ov_sensor_regs       ## TAILCALL
LBB0_2:
	cmpl	$4, %ecx
	jne	LBB0_3
## %bb.16:
	movq	%rbx, %rdi
	callq	_ov519_set_mode
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov519_set_fr                   ## TAILCALL
LBB0_3:
	leal	-129(%rax), %edx
	cmpl	$11, %edx
	ja	LBB0_14
## %bb.4:
	movq	16(%rbx), %rcx
	movq	24(%rbx), %rsi
	movl	(%rsi,%rcx,4), %ecx
	movl	%ecx, %r14d
	andl	$1, %r14d
	movl	$5, %r12d
	movl	$58, %edi
	movl	$56, %r15d
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	cmpl	$138, %eax
	sete	%al
	testl	%r14d, %r14d
	setne	%dl
	andb	%al, %dl
	movzbl	%dl, %r15d
	orl	$56, %r15d
	testb	$2, %cl
	jne	LBB0_8
## %bb.6:
	movl	$6, %r12d
	movl	$5, %eax
	movl	$58, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_7:
	movl	$3, %r12d
	movl	$26, %r15d
	movl	$26, %edi
	jmp	LBB0_12
LBB0_11:
	movl	$47, %r15d
	movl	$47, %edi
LBB0_12:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	cmpl	$1, %r14d
	adcl	$1, %r13d
	xorl	$1, %r14d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_13
LBB0_8:
	addl	$8, %r15d
	movl	$17, %r12d
	movl	$16, %eax
	movl	$66, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_9:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	$1, %r14d
	movl	%r14d, %r13d
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r13d, %r13d
	cmpl	$1, %r14d
	adcl	$1, %r13d
	movl	$30, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$2, %r12d
	movl	$2, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$30, %r15d
	movl	%r13d, %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	_mode_init_ov_sensor_regs
	movq	%rbx, %rdi
	movl	$23, %esi
	movl	%r15d, %edx
	callq	_i2c_w
	movl	4(%rbx), %edx
	movl	%r13d, %ecx
	sarl	%cl, %edx
	addl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_i2c_w
	movq	%rbx, %rdi
	movl	$25, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_i2c_w
	movl	8(%rbx), %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	addl	%r12d, %edx
	movq	%rbx, %rdi
	movl	$26, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_w                          ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_set_ov_sensor_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ov_sensor_window
_set_ov_sensor_window:                  ; @set_ov_sensor_window
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w9, [x0]
	sub	w8, w9, #128
	cmp	w8, #15
	b.hi	LBB0_5
; %bb.1:
	mov	w10, #1
	lsl	w10, w10, w8
	mov	w11, #57353
	tst	w10, w11
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mode_init_ov_sensor_regs
LBB0_3:
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ov519_set_mode
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ov519_set_fr
LBB0_5:
	sub	w11, w9, #129
	cmp	w11, #11
	b.hi	LBB0_12
; %bb.6:
	ldp	x10, x8, [x19, #16]
	ldr	w10, [x8, x10, lsl #2]
	and	w8, w10, #0x1
	mov	w22, #5
	mov	w23, #58
	mov	w20, #56
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_7
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_7:
	cmp	w8, #0
	mov	w11, #138
	ccmp	w9, w11, #0, ne
	mov	w9, #56
	cinc	w9, w9, eq
	mov	w11, #6
	mov	w12, #5
	mov	w13, #58
	add	w14, w9, #8
	mov	w15, #17
	mov	w16, #16
	mov	w17, #66
	tst	w10, #0x2
	csel	w20, w9, w14, eq
	csel	w23, w13, w17, eq
	csel	w21, w12, w16, eq
	csel	w22, w11, w15, eq
	eor	w24, w8, #0x1
	mov	x25, x24
	b	LBB0_11
LBB0_8:
	mov	w22, #3
	mov	w20, #26
	mov	w23, #26
	b	LBB0_10
LBB0_9:
	mov	w22, #5
	mov	w20, #47
	mov	w23, #47
LBB0_10:
	cmp	w8, #0
	mov	w9, #1
	cinc	w24, w9, eq
	eor	w25, w8, #0x1
	mov	x21, x22
LBB0_11:
	mov	x0, x19
	bl	_mode_init_ov_sensor_regs
	mov	x0, x19
	mov	w1, #23
	mov	x2, x20
	bl	_i2c_w
	ldr	w8, [x19, #4]
	asr	w8, w8, w24
	add	w2, w8, w23
	mov	x0, x19
	mov	w1, #24
	bl	_i2c_w
	mov	x0, x19
	mov	w1, #25
	mov	x2, x21
	bl	_i2c_w
	ldr	w8, [x19, #8]
	asr	w8, w8, w25
	add	w2, w8, w22
	mov	x0, x19
	mov	w1, #26
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_i2c_w
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	cmp	w8, #0
	mov	w8, #1
	cinc	w24, w8, eq
	mov	w23, #30
	mov	w22, #2
	mov	w21, #2
	mov	w20, #30
	mov	x25, x24
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
                                        ; -- End function
	.no_dead_strip	_set_ov_sensor_window
.subsections_via_symbols
