	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcmi_set_crop
_dcmi_set_crop:                         ## @dcmi_set_crop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %eax
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	8(%rbx), %ecx
	leal	(%rcx,%rcx), %edx
	decl	%edx
	orl	%eax, %edx
	movq	_DCMI_CWSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_write
	movl	(%rbx), %edi
	movl	12(%rbx), %eax
	shll	$16, %eax
	movl	16(%rbx), %edx
	addl	%edx, %edx
	orl	%eax, %edx
	movq	_DCMI_CWSTRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_write
	movl	20(%rbx), %edi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movl	16(%rbx), %r8d
	movl	12(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %edi
	movq	_DCMI_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_CROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reg_set                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DCMI_CWSIZE,4,2                ## @DCMI_CWSIZE
	.comm	_DCMI_CWSTRT,4,2                ## @DCMI_CWSTRT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cropping to %ux%u@%u:%u\n"

	.comm	_DCMI_CR,4,2                    ## @DCMI_CR
	.comm	_CR_CROP,4,2                    ## @CR_CROP
	.no_dead_strip	_dcmi_set_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcmi_set_crop
_dcmi_set_crop:                         ; @dcmi_set_crop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w0, w8, [x0]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	ldr	w9, [x19, #8]
	lsl	w9, w9, #1
	sub	w9, w9, #1
	orr	w2, w9, w8
Lloh0:
	adrp	x8, _DCMI_CWSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCMI_CWSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_reg_write
	ldp	w8, w9, [x19, #12]
	lsl	w9, w9, #1
	orr	w2, w9, w8, lsl #16
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _DCMI_CWSTRT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCMI_CWSTRT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_reg_write
	ldp	w4, w0, [x19, #16]
	ldp	w3, w2, [x19, #4]
	ldr	w5, [x19, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _DCMI_CR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCMI_CR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _CR_CROP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CR_CROP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_set
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCMI_CWSIZE,4,2                ; @DCMI_CWSIZE
	.comm	_DCMI_CWSTRT,4,2                ; @DCMI_CWSTRT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cropping to %ux%u@%u:%u\n"

	.comm	_DCMI_CR,4,2                    ; @DCMI_CR
	.comm	_CR_CROP,4,2                    ; @CR_CROP
	.no_dead_strip	_dcmi_set_crop
.subsections_via_symbols
