	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_set_crop
_sn9c102_set_crop:                      ## @sn9c102_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	%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
	movq	%rdi, %r14
	movl	16(%rsi), %edx
	subl	8(%rdi), %edx
	movl	8(%rsi), %ebx
	subl	(%rdi), %ebx
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	leal	15(%rax), %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	sarl	$4, %r12d
	leal	15(%rcx), %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
	sarl	$4, %r13d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	movl	$18, %edx
	callq	_sn9c102_write_reg
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	$19, %edx
	callq	_sn9c102_write_reg
	movq	%rax, %r15
	addl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$21, %edx
	callq	_sn9c102_write_reg
	movq	%rax, %rbx
	addl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$22, %edx
	callq	_sn9c102_write_reg
	addl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	callq	_PDBGG
	xorl	%eax, %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h_start, v_start, h_size, v_size, ho_size, vo_size %u %u %u %u"

	.no_dead_strip	_sn9c102_set_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c102_set_crop
_sn9c102_set_crop:                      ; @sn9c102_set_crop
	.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	x23, x0
	ldr	w8, [x1, #16]
	ldr	w9, [x0, #8]
	sub	w19, w8, w9
	ldr	w8, [x1, #8]
	ldr	w9, [x0]
	sub	w20, w8, w9
	ldp	w8, w9, [x1]
	add	w10, w8, #15
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w21, w8, #4
	add	w8, w9, #15
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w22, w8, #4
	mov	x1, x19
	mov	w2, #18
	bl	_sn9c102_write_reg
	mov	x24, x0
	mov	x0, x23
	mov	x1, x20
	mov	w2, #19
	bl	_sn9c102_write_reg
	add	w24, w0, w24
	mov	x0, x23
	mov	x1, x21
	mov	w2, #21
	bl	_sn9c102_write_reg
	add	w24, w24, w0
	mov	x0, x23
	mov	x1, x22
	mov	w2, #22
	bl	_sn9c102_write_reg
	cmn	w24, w0
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_PDBGG
	mov	w0, #0
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h_start, v_start, h_size, v_size, ho_size, vo_size %u %u %u %u"

	.no_dead_strip	_sn9c102_set_crop
.subsections_via_symbols
