	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_frameintervals
_vidioc_enum_frameintervals:            ## @vidioc_enum_frameintervals
	.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	%rax, %r14
	movl	32(%rbx), %esi
	movl	28(%rbx), %edx
	movq	(%rbx), %rcx
	movq	%rax, %rdi
	callq	_wxh_to_mode
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	movl	%eax, %esi
	movq	%rsi, %rax
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %r8
	movq	8(%r14), %rdi
	cmpq	(%rdi,%rsi,8), %r8
	jne	LBB0_6
## %bb.4:
	movq	8(%rbx), %rsi
	decq	%rdx
	cmpq	%rdx, %rsi
	jbe	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_V4L2_FRMIVAL_TYPE_DISCRETE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rbx)
	movl	$1, 16(%rbx)
	movq	8(%rcx,%rax), %rax
	movl	(%rax,%rsi,4), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ## @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_vidioc_enum_frameintervals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_frameintervals
_vidioc_enum_frameintervals:            ; @vidioc_enum_frameintervals
	.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
	mov	x20, x0
	ldp	w2, w1, [x19, #28]
	ldr	x3, [x19]
	bl	_wxh_to_mode
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	mov	w9, w0
	lsl	x10, x9, #4
	ldr	x11, [x8, x10]
	cbz	x11, LBB0_5
; %bb.3:
	ldr	x10, [x19]
	ldr	x12, [x20, #8]
	ldr	x12, [x12, x9, lsl #3]
	cmp	x10, x12
	b.ne	LBB0_5
; %bb.4:
	ldr	x10, [x19, #8]
	sub	x11, x11, #1
	cmp	x10, x11
	b.ls	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
Lloh3:
	adrp	x11, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [x19, #24]
	mov	w11, #1
	str	w11, [x19, #16]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x10, lsl #2]
	str	w8, [x19, #20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ; @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_vidioc_enum_frameintervals
.subsections_via_symbols
