	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_resolution_set
_em28xx_resolution_set:                 ## @em28xx_resolution_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_norm_maxw
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_norm_maxh
	movl	%eax, %r15d
	movl	$720, (%r12)                    ## imm = 0x2D0
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r12), %eax
	movl	$18, %eax
	movl	$12, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, 8(%r12)
	movq	%rbx, %rdi
	callq	_em28xx_set_outfmt
	leal	-4(%r14), %edx
	sarl	$2, %edx
	leal	-4(%r15), %r8d
	sarl	$2, %r8d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	callq	_em28xx_accumulator_set
	movq	%rbx, %rdi
	callq	_em28xx_vbi_supported
	xorl	%edx, %edx
	cmpl	$1, %eax
	sete	%dl
	addl	%edx, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_em28xx_capture_area_set
	movl	12(%r12), %edx
	movl	16(%r12), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_em28xx_scaler_set              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.no_dead_strip	_em28xx_resolution_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_resolution_set
_em28xx_resolution_set:                 ; @em28xx_resolution_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x22, [x0]
	bl	_norm_maxw
	mov	x20, x0
	mov	x0, x19
	bl	_norm_maxh
	mov	x21, x0
	mov	w8, #720
	str	w8, [x22]
	ldr	w8, [x22, #4]
Lloh0:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #12
	mov	w9, #18
	csel	w8, w9, w8, eq
	str	w8, [x22, #8]
	mov	x0, x19
	bl	_em28xx_set_outfmt
	sub	w8, w20, #4
	asr	w2, w8, #2
	sub	w8, w21, #4
	asr	w4, w8, #2
	mov	x0, x19
	mov	w1, #1
	mov	w3, #1
	bl	_em28xx_accumulator_set
	mov	x0, x19
	bl	_em28xx_vbi_supported
	cmp	w0, #1
	cset	w8, eq
	lsl	w2, w8, #1
	mov	x0, x19
	mov	w1, #0
	mov	x3, x20
	mov	x4, x21
	bl	_em28xx_capture_area_set
	ldp	w2, w1, [x22, #12]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_em28xx_scaler_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.no_dead_strip	_em28xx_resolution_set
.subsections_via_symbols
