	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_framesizes
_vidioc_enum_framesizes:                ## @vidioc_enum_framesizes
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_norm_maxw
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_norm_maxh
	movl	%eax, %r14d
	movl	40(%r12), %edi
	callq	_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rbx)
	movl	(%r12), %esi
	je	LBB0_6
## %bb.3:
	cmpl	$2, %esi
	jge	LBB0_4
## %bb.5:
	movq	_V4L2_FRMSIZE_TYPE_DISCRETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	incl	%esi
	xorl	%ecx, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, 32(%r12)
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, 36(%r12)
	jmp	LBB0_12
LBB0_1:
	movl	40(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_em28xx_videodbg
	jmp	LBB0_4
LBB0_6:
	testl	%esi, %esi
	je	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_V4L2_FRMSIZE_TYPE_STEPWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_EM28XX_HVSCALE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%r12), %rax
	leaq	8(%r12), %r13
	movq	%rbx, %rdi
	movq	%rax, %rbx
	movl	%edx, %esi
	movq	%rax, %rcx
	movq	%r13, %r8
	callq	_scale_to_size
	cmpl	$47, 4(%r12)
	jg	LBB0_9
## %bb.8:
	movl	$48, (%rbx)
LBB0_9:
	cmpl	$37, (%r13)
	jg	LBB0_11
## %bb.10:
	movl	$38, (%r13)
LBB0_11:
	movl	%r15d, 12(%r12)
	movl	%r14d, 16(%r12)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 20(%r12)
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fourcc format (%08x) invalid.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ## @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_V4L2_FRMSIZE_TYPE_STEPWISE,4,2 ## @V4L2_FRMSIZE_TYPE_STEPWISE
	.comm	_EM28XX_HVSCALE_MAX,4,2         ## @EM28XX_HVSCALE_MAX
	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_framesizes
_vidioc_enum_framesizes:                ; @vidioc_enum_framesizes
	.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	x19, x2
	bl	_video_drvdata
	mov	x22, x0
	bl	_norm_maxw
	mov	x20, x0
	mov	x0, x22
	bl	_norm_maxh
	mov	x21, x0
	ldr	w0, [x19, #40]
	bl	_format_by_fourcc
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x9, [x22]
	ldr	w8, [x19]
	cbz	x9, LBB0_5
; %bb.2:
	cmp	w8, #2
	b.ge	LBB0_6
; %bb.3:
	mov	w0, #0
Lloh0:
	adrp	x9, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w8, #1
	udiv	w10, w20, w8
	stp	w9, w10, [x19, #28]
	udiv	w8, w21, w8
	str	w8, [x19, #36]
	b	LBB0_7
LBB0_4:
	ldr	w1, [x19, #40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_em28xx_videodbg
	b	LBB0_6
LBB0_5:
	cbz	w8, LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
Lloh8:
	adrp	x8, _V4L2_FRMSIZE_TYPE_STEPWISE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_FRMSIZE_TYPE_STEPWISE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh11:
	adrp	x8, _EM28XX_HVSCALE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EM28XX_HVSCALE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x24, x19, #4
	add	x23, x19, #8
	mov	x0, x22
	mov	x2, x1
	mov	x3, x24
	mov	x4, x23
	bl	_scale_to_size
	ldr	w8, [x19, #4]
	cmp	w8, #47
	b.gt	LBB0_10
; %bb.9:
	mov	w8, #48
	str	w8, [x24]
LBB0_10:
	ldr	w8, [x23]
	cmp	w8, #37
	b.gt	LBB0_12
; %bb.11:
	mov	w8, #38
	str	w8, [x23]
LBB0_12:
	mov	w0, #0
	stp	w20, w21, [x19, #12]
	movi.2s	v0, #1
	stur	d0, [x19, #20]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fourcc format (%08x) invalid.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ; @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_V4L2_FRMSIZE_TYPE_STEPWISE,4,2 ; @V4L2_FRMSIZE_TYPE_STEPWISE
	.comm	_EM28XX_HVSCALE_MAX,4,2         ; @EM28XX_HVSCALE_MAX
	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols
