	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	16(%rax), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.10:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_1:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.2:
	movq	(%rbx), %rsi
	movq	8(%rax), %rax
	shlq	$4, %rcx
	xorl	%edx, %edx
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rax,%rdx), %rsi
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, 8(%rbx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	movq	_V4L2_FRMSIZE_TYPE_DISCRETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	12(%rax,%rdx), %ecx
	movl	%ecx, 20(%rbx)
	movl	8(%rax,%rdx), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ## @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x0, #16]
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x10, #0
	ldr	x11, [x19]
	ldr	x9, [x0, #8]
	add	x9, x9, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-8]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x19, #8]
	cmp	x12, x10
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	b	LBB0_4
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh3:
	adrp	x8, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FRMSIZE_TYPE_DISCRETE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	d0, [x9]
	str	d0, [x19, #16]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ; @V4L2_FRMSIZE_TYPE_DISCRETE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_enum_framesizes
.subsections_via_symbols
