	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_capture_area_set
_em28xx_capture_area_set:               ## @em28xx_capture_area_set
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, -28(%rbp)
	movl	%edx, -24(%rbp)
	movl	%ecx, -20(%rbp)
	movl	%r8d, -16(%rbp)
	movl	%r8d, %esi
	shrl	$7, %esi
	andl	$2, %esi
	movl	%ecx, %edx
	shrl	$8, %edx
	andl	$1, %edx
	leal	(%rsi,%rdx), %eax
	movl	%eax, -12(%rbp)
	shll	$7, %esi
	orl	%ecx, %esi
	shll	$8, %edx
	orl	%r8d, %edx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_em28xx_coredbg
	movq	_EM28XX_R1C_HSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_em28xx_write_regs
	movq	_EM28XX_R1D_VSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_em28xx_write_regs
	movq	_EM28XX_R1E_CWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_em28xx_write_regs
	movq	_EM28XX_R1F_CHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_em28xx_write_regs
	movq	_EM28XX_R1B_OFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_em28xx_write_regs
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"em28xx Area Set: (%d,%d)\n"

	.comm	_EM28XX_R1C_HSTART,4,2          ## @EM28XX_R1C_HSTART
	.comm	_EM28XX_R1D_VSTART,4,2          ## @EM28XX_R1D_VSTART
	.comm	_EM28XX_R1E_CWIDTH,4,2          ## @EM28XX_R1E_CWIDTH
	.comm	_EM28XX_R1F_CHEIGHT,4,2         ## @EM28XX_R1F_CHEIGHT
	.comm	_EM28XX_R1B_OFLOW,4,2           ## @EM28XX_R1B_OFLOW
	.no_dead_strip	_em28xx_capture_area_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_capture_area_set
_em28xx_capture_area_set:               ; @em28xx_capture_area_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stur	w1, [x29, #-20]
	stp	w3, w2, [sp, #20]
	lsr	w8, w4, #7
	and	w8, w8, #0x2
	ubfx	w9, w3, #8, #1
	orr	w1, w3, w8, lsl #7
	bfxil	w8, w3, #8, #1
	stp	w8, w4, [sp, #12]
	orr	w2, w4, w9, lsl #8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_em28xx_coredbg
Lloh2:
	adrp	x8, _EM28XX_R1C_HSTART@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EM28XX_R1C_HSTART@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	sub	x2, x29, #20
	mov	x0, x19
	mov	w3, #1
	bl	_em28xx_write_regs
Lloh5:
	adrp	x8, _EM28XX_R1D_VSTART@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EM28XX_R1D_VSTART@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #1
	bl	_em28xx_write_regs
Lloh8:
	adrp	x8, _EM28XX_R1E_CWIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EM28XX_R1E_CWIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #20
	mov	x0, x19
	mov	w3, #1
	bl	_em28xx_write_regs
Lloh11:
	adrp	x8, _EM28XX_R1F_CHEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EM28XX_R1F_CHEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #1
	bl	_em28xx_write_regs
Lloh14:
	adrp	x8, _EM28XX_R1B_OFLOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EM28XX_R1B_OFLOW@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_em28xx_write_regs
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"em28xx Area Set: (%d,%d)\n"

	.comm	_EM28XX_R1C_HSTART,4,2          ; @EM28XX_R1C_HSTART
	.comm	_EM28XX_R1D_VSTART,4,2          ; @EM28XX_R1D_VSTART
	.comm	_EM28XX_R1E_CWIDTH,4,2          ; @EM28XX_R1E_CWIDTH
	.comm	_EM28XX_R1F_CHEIGHT,4,2         ; @EM28XX_R1F_CHEIGHT
	.comm	_EM28XX_R1B_OFLOW,4,2           ; @EM28XX_R1B_OFLOW
	.no_dead_strip	_em28xx_capture_area_set
.subsections_via_symbols
