	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.1:
	movl	%r8d, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	$58, %ebx
	movl	$56, %esi
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_4:
	cmpl	$177, %r14d
	jl	LBB0_6
## %bb.5:
	cmpl	$144, %r15d
	jg	LBB0_7
LBB0_6:
	movq	8(%r13), %rax
	movq	_BCL_OV518@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_mode_init_ov_sensor_regs
	testl	%eax, %eax
	js	LBB0_27
## %bb.8:
	movl	%r12d, %eax
	movl	$1, %esi
	movl	$288, %edx                      ## imm = 0x120
	movl	$352, %r12d                     ## imm = 0x160
	movl	$56, %r8d
	movl	$58, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$6, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_25
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_14:
	movl	$47, %esi
	movl	$47, %ebx
LBB0_15:
	cmpl	$321, %r14d                     ## imm = 0x141
	jl	LBB0_19
## %bb.16:
	cmpl	$241, %r15d
	jl	LBB0_19
## %bb.17:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_mode_init_ov_sensor_regs
	testl	%eax, %eax
	js	LBB0_27
## %bb.18:
	movl	%r12d, %eax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	$1, %ebx
	movl	$2, %esi
	movl	$480, %edx                      ## imm = 0x1E0
	movl	$640, %r12d                     ## imm = 0x280
	movl	$5, -48(%rbp)                   ## 4-byte Folded Spill
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_25
LBB0_19:
	cmpl	$320, %r14d                     ## imm = 0x140
	jg	LBB0_11
## %bb.20:
	cmpl	$241, %r15d
	jge	LBB0_11
## %bb.21:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	movl	$1, %r9d
	callq	_mode_init_ov_sensor_regs
	testl	%eax, %eax
	js	LBB0_27
## %bb.22:
	movl	%r12d, %eax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	$240, %edx
	movl	$320, %r12d                     ## imm = 0x140
	movl	$5, -48(%rbp)                   ## 4-byte Folded Spill
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	$1, %esi
	testl	%eax, %eax
	je	LBB0_25
LBB0_24:
	movl	16(%r13), %edx
	movl	%ebx, %r14d
	movl	%esi, %ecx
	sarl	%cl, %edx
	addl	%r8d, %edx
	movq	%r13, %rdi
	movl	%esi, %ebx
	movl	$23, %esi
	callq	_i2c_w
	movl	20(%r13), %edx
	addl	16(%r13), %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	addl	-52(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_i2c_w
	movl	24(%r13), %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	addl	$5, %edx
	movq	%r13, %rdi
	movl	$25, %esi
	callq	_i2c_w
	movl	28(%r13), %edx
	addl	24(%r13), %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	addl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r13, %rdi
	movl	$26, %esi
	jmp	LBB0_26
LBB0_9:
	cmpl	$176, %r14d
	jg	LBB0_11
## %bb.10:
	cmpl	$145, %r15d
	jge	LBB0_11
## %bb.12:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	movl	$1, %r9d
	callq	_mode_init_ov_sensor_regs
	testl	%eax, %eax
	js	LBB0_27
## %bb.13:
	movl	%r12d, %eax
	xorl	%esi, %esi
	movl	$144, %edx
	movl	$176, %r12d
	movl	$56, %r8d
	movl	$58, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$6, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_24
LBB0_25:
	movl	%edx, %eax
	subl	%r15d, %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	movl	%ebx, %ecx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r15d
	movl	%r12d, %eax
	subl	%r14d, %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%esi, %ecx
	sarl	%cl, %ebx
	addl	%ebx, %r8d
	movq	%r13, %rdi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movl	$23, %esi
	movl	%edx, %r14d
	movl	%r8d, %edx
	callq	_i2c_w
	addl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r12d
	addl	%ebx, %r12d
	movq	%r13, %rdi
	movl	$24, %esi
	movl	%r12d, %edx
	callq	_i2c_w
	leal	5(%r15), %edx
	movq	%r13, %rdi
	movl	$25, %esi
	callq	_i2c_w
	addl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %r14d
	addl	%r15d, %r14d
	movq	%r13, %rdi
	movl	$26, %esi
	movl	%r14d, %edx
LBB0_26:
	callq	_i2c_w
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sensor"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BCL_OV518,8,3                  ## @BCL_OV518
L_.str.1:                               ## @.str.1
	.asciz	"Illegal dimensions"

	.comm	_dump_sensor,8,3                ## @dump_sensor
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	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
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
	mov	x22, x4
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w23, #58
	mov	w24, #56
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	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	w20, #177
	b.lt	LBB0_4
; %bb.3:
	cmp	w21, #144
	b.gt	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _BCL_OV518@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BCL_OV518@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x22
	mov	w5, #0
	bl	_mode_init_ov_sensor_regs
	tbnz	w0, #31, LBB0_27
; %bb.6:
	mov	w26, #1
	mov	w8, #288
	mov	w28, #352
	mov	w24, #56
	mov	w23, #58
	mov	w27, #6
	mov	w25, #1
	cbnz	w22, LBB0_18
	b	LBB0_23
LBB0_7:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_26
LBB0_8:
	mov	w24, #47
	mov	w23, #47
LBB0_9:
	cmp	w20, #321
	b.lt	LBB0_13
; %bb.10:
	cmp	w21, #241
	b.lt	LBB0_13
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x22
	mov	w5, #0
	bl	_mode_init_ov_sensor_regs
	tbnz	w0, #31, LBB0_27
; %bb.12:
	mov	w25, #1
	mov	w26, #2
	mov	w8, #480
	mov	w28, #640
	b	LBB0_17
LBB0_13:
	cmp	w20, #320
	b.gt	LBB0_25
; %bb.14:
	cmp	w21, #241
	b.ge	LBB0_25
; %bb.15:
	mov	w26, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x22
	mov	w5, #1
	bl	_mode_init_ov_sensor_regs
	tbnz	w0, #31, LBB0_27
; %bb.16:
	mov	w25, #0
	mov	w8, #240
	mov	w28, #320
LBB0_17:
	mov	w27, #5
	cbz	w22, LBB0_23
LBB0_18:
	ldr	w8, [x19, #16]
	asr	w8, w8, w26
	add	w2, w8, w24
	mov	x0, x19
	mov	w1, #23
	bl	_i2c_w
	ldp	w8, w9, [x19, #16]
	add	w8, w9, w8
	asr	w8, w8, w26
	add	w2, w8, w23
	mov	x0, x19
	mov	w1, #24
	bl	_i2c_w
	ldr	w8, [x19, #24]
	asr	w8, w8, w25
	add	w2, w8, #5
	mov	x0, x19
	mov	w1, #25
	bl	_i2c_w
	ldp	w8, w9, [x19, #24]
	add	w8, w9, w8
	asr	w8, w8, w25
	add	w2, w8, w27
	b	LBB0_24
LBB0_19:
	cmp	w20, #176
	b.gt	LBB0_25
; %bb.20:
	cmp	w21, #145
	b.ge	LBB0_25
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x22
	mov	w5, #1
	bl	_mode_init_ov_sensor_regs
	tbnz	w0, #31, LBB0_27
; %bb.22:
	mov	w26, #0
	mov	w25, #0
	mov	w8, #144
	mov	w28, #176
	mov	w24, #56
	mov	w23, #58
	mov	w27, #6
	cbnz	w22, LBB0_18
LBB0_23:
	mov	x22, x8
	sub	w8, w8, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	asr	w21, w8, w25
	sub	w8, w28, w20
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	asr	w20, w8, w26
	add	w2, w20, w24
	mov	x0, x19
	mov	w1, #23
	bl	_i2c_w
	lsr	w8, w28, w26
	add	w9, w20, w23
	add	w2, w9, w8
	mov	x0, x19
	mov	w1, #24
	bl	_i2c_w
	add	w2, w21, #5
	mov	x0, x19
	mov	w1, #25
	bl	_i2c_w
	lsr	w8, w22, w25
	add	w9, w21, w27
	add	w2, w9, w8
LBB0_24:
	mov	x0, x19
	mov	w1, #26
	bl	_i2c_w
	mov	w0, #0
	b	LBB0_27
LBB0_25:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_26:
	bl	_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sensor"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BCL_OV518,8,3                  ; @BCL_OV518
l_.str.1:                               ; @.str.1
	.asciz	"Illegal dimensions"

	.comm	_dump_sensor,8,3                ; @dump_sensor
	.no_dead_strip	_set_ov_sensor_window
.subsections_via_symbols
