	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et61x251_set_crop
_et61x251_set_crop:                     ## @et61x251_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, %rbx
	movl	16(%rsi), %eax
	subl	24(%rdi), %eax
	addl	8(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rsi), %r12d
	subl	16(%rdi), %r12d
	addl	(%rdi), %r12d
	movl	(%rsi), %r13d
	movl	4(%rsi), %r14d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movzbl	%al, %esi
	movl	$105, %edx
	callq	_et61x251_write_reg
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movzbl	%r12b, %esi
	movq	%rbx, %rdi
	movl	$106, %edx
	callq	_et61x251_write_reg
	movq	%rax, %r15
	addl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	movzbl	%r14b, %esi
	movq	%rbx, %rdi
	movl	$107, %edx
	callq	_et61x251_write_reg
	movq	%rax, %r14
	addl	%r15d, %r14d
	movzbl	%r13b, %esi
	movq	%rbx, %rdi
	movl	$108, %edx
	callq	_et61x251_write_reg
	movq	%rax, %r15
	addl	%r14d, %r15d
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %eax
	sarl	$8, %eax
	movl	%r12d, %ecx
	shrl	$6, %ecx
	andl	$12, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shrl	$4, %edx
	andl	$48, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movl	%r13d, %esi
	shrl	$2, %esi
	andl	$192, %esi
	orl	%edx, %esi
	movq	%rbx, %rdi
	movl	$109, %edx
	callq	_et61x251_write_reg
	addl	%r15d, %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	%r14d, %esi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	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	"fmw_sx, fmw_sy, fmw_length, fmw_height: %u %u %u %u"

	.no_dead_strip	_et61x251_set_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et61x251_set_crop
_et61x251_set_crop:                     ; @et61x251_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, #24]
	ldr	w10, [x0, #8]
	sub	w8, w8, w9
	add	w19, w8, w10
	ldp	w21, w8, [x1, #4]
	ldr	w9, [x0, #16]
	ldr	w10, [x0]
	sub	w8, w8, w9
	add	w20, w8, w10
	ldr	w22, [x1]
	and	w1, w19, #0xff
	mov	w2, #105
	bl	_et61x251_write_reg
	mov	x24, x0
	and	w1, w20, #0xff
	mov	x0, x23
	mov	w2, #106
	bl	_et61x251_write_reg
	add	w24, w0, w24
	and	w1, w21, #0xff
	mov	x0, x23
	mov	w2, #107
	bl	_et61x251_write_reg
	add	w24, w24, w0
	and	w1, w22, #0xff
	mov	x0, x23
	mov	w2, #108
	bl	_et61x251_write_reg
	add	w24, w24, w0
	lsr	w8, w20, #6
	and	w8, w8, #0xc
	lsr	w9, w21, #4
	and	w9, w9, #0x30
	lsr	w10, w22, #2
	and	w10, w10, #0xc0
	orr	w9, w9, w19, asr #8
	orr	w8, w9, w8
	orr	w1, w8, w10
	mov	x0, x23
	mov	w2, #109
	bl	_et61x251_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	"fmw_sx, fmw_sy, fmw_length, fmw_height: %u %u %u %u"

	.no_dead_strip	_et61x251_set_crop
.subsections_via_symbols
