	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w9968cf_set_crop_window
_w9968cf_set_crop_window:               ## @w9968cf_set_crop_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, %r12
	cmpq	$0, 32(%rdi)
	movl	$640, %eax                      ## imm = 0x280
	movl	$352, %ebx                      ## imm = 0x160
	cmovel	%eax, %ebx
	movl	$480, %eax                      ## imm = 0x1E0
	movl	$288, %edi                      ## imm = 0x120
	cmovel	%eax, %edi
	movq	(%r12), %rax
	movq	_SEN_OV7620@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	24(%r12), %rax
	cmpl	$1, (%rax)
	movl	$277, %eax                      ## imm = 0x115
	movl	$105, %r11d
	cmovel	%eax, %r11d
	movl	$37, %r10d
	jmp	LBB0_3
LBB0_1:
	movl	$320, %r11d                     ## imm = 0x140
	movl	$35, %r10d
LBB0_3:
	movl	16(%r12), %ecx
	movl	20(%r12), %esi
	shll	$10, %esi
	movl	%esi, %eax
	cltd
	idivl	%ebx
	movl	%eax, %r8d
	shll	$10, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	cmpl	%eax, %r8d
	jge	LBB0_5
## %bb.4:
	movl	%eax, %r9d
	movl	%esi, %eax
	cltd
	idivl	%r9d
	movl	%eax, %r15d
	movl	%edi, %r14d
	jmp	LBB0_6
LBB0_5:
	movl	%ecx, %eax
	cltd
	idivl	%r8d
	movl	%eax, %r14d
	movl	%ebx, %r15d
LBB0_6:
	movl	%ebx, 8(%r12)
	movl	%edi, 12(%r12)
	subl	%r15d, %ebx
	movl	%ebx, %r13d
	shrl	$31, %r13d
	addl	%ebx, %r13d
	sarl	%r13d
	addl	%r11d, %r13d
	subl	%r14d, %edi
	movl	%edi, %ebx
	shrl	$31, %ebx
	addl	%edi, %ebx
	sarl	%ebx
	addl	%r10d, %ebx
	movq	%r12, %rdi
	movl	$16, %esi
	movl	%r13d, %edx
	callq	_reg_w
	movq	%r12, %rdi
	movl	$17, %esi
	movl	%ebx, %edx
	callq	_reg_w
	addl	%r15d, %r13d
	movq	%r12, %rdi
	movl	$18, %esi
	movl	%r13d, %edx
	callq	_reg_w
	addl	%r14d, %ebx
	movq	%r12, %rdi
	movl	$19, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEN_OV7620,8,3                 ## @SEN_OV7620
	.no_dead_strip	_w9968cf_set_crop_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w9968cf_set_crop_window
_w9968cf_set_crop_window:               ; @w9968cf_set_crop_window
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	cmp	x8, #0
	mov	w8, #352
	mov	w9, #640
	csel	w8, w9, w8, eq
	mov	w9, #288
	mov	w10, #480
	csel	w9, w10, w9, eq
	ldr	x10, [x0]
Lloh0:
	adrp	x11, _SEN_OV7620@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SEN_OV7620@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	ldr	x10, [x19, #24]
	ldr	w10, [x10]
	mov	w11, #105
	mov	w12, #277
	cmp	w10, #1
	csel	w10, w12, w11, eq
	mov	w21, #37
	b	LBB0_3
LBB0_2:
	mov	w10, #320
	mov	w21, #35
LBB0_3:
	ldp	w12, w11, [x19, #16]
	lsl	w11, w11, #10
	sdiv	w13, w11, w8
	lsl	w12, w12, #10
	sdiv	w14, w12, w9
	sdiv	w11, w11, w14
	cmp	w13, w14
	csel	w22, w8, w11, ge
	sdiv	w11, w12, w13
	csel	w23, w11, w9, ge
	stp	w8, w9, [x19, #8]
	sub	w8, w8, w22
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w9, w9, w23
	cmp	w9, #0
	cinc	w24, w9, lt
	add	w20, w10, w8, asr #1
	mov	x0, x19
	mov	w1, #16
	mov	x2, x20
	bl	_reg_w
	add	w21, w21, w24, asr #1
	mov	x0, x19
	mov	w1, #17
	mov	x2, x21
	bl	_reg_w
	add	w2, w20, w22
	mov	x0, x19
	mov	w1, #18
	bl	_reg_w
	add	w2, w21, w23
	mov	x0, x19
	mov	w1, #19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_reg_w
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEN_OV7620,8,3                 ; @SEN_OV7620
	.no_dead_strip	_w9968cf_set_crop_window
.subsections_via_symbols
