	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	(%rbx), %rcx
	movq	_NUM_SIZE_ENUMS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jae	LBB0_1
## %bb.2:
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%rax), %r14d
	movl	16(%rbx), %edi
	callq	_format_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_V4L2_FRMSIZE_TYPE_DISCRETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.5:
	movq	_pal_sizes@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_ntsc_sizes@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_NUM_SIZE_ENUMS,8,3             ## @NUM_SIZE_ENUMS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ## @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_ntsc_sizes,8,3                 ## @ntsc_sizes
	.comm	_pal_sizes,8,3                  ## @pal_sizes
	.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	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, x2
	bl	_video_drvdata
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NUM_SIZE_ENUMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_SIZE_ENUMS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.1:
	ldr	w20, [x0]
Lloh3:
	adrp	x8, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w0, [x19, #16]
	bl	_format_by_fourcc
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #0
	and	w8, w21, w20
Lloh6:
	adrp	x9, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #12]
Lloh9:
	adrp	x9, _pal_sizes@GOTPAGE
Lloh10:
	ldr	x9, [x9, _pal_sizes@GOTPAGEOFF]
Lloh11:
	adrp	x10, _ntsc_sizes@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ntsc_sizes@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_NUM_SIZE_ENUMS,8,3             ; @NUM_SIZE_ENUMS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ; @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_ntsc_sizes,8,3                 ; @ntsc_sizes
	.comm	_pal_sizes,8,3                  ; @pal_sizes
	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols
