	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	cmpl	$5, (%rbx)
	jge	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	24(%rbx), %edi
	callq	_valid_pixelformat
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%r14), %rax
	movq	_GO7007_SENSOR_SCALING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
LBB0_10:
	movq	_V4L2_FRMIVAL_TYPE_DISCRETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	imull	$1001, (%rbx), %eax             ## imm = 0x3E9
	addl	$1001, %eax                     ## imm = 0x3E9
	movl	%eax, 12(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	_get_resolution
	movl	4(%rbx), %ecx
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	andl	$-16, %esi
	cmpl	%esi, %ecx
	jne	LBB0_6
## %bb.5:
	movl	%eax, %esi
	andl	$-16, %esi
	cmpl	%esi, 8(%rbx)
	je	LBB0_10
LBB0_6:
	movl	%edx, %esi
	sarl	%esi
	andl	$-16, %esi
	cmpl	%esi, %ecx
	jne	LBB0_8
## %bb.7:
	movl	%eax, %esi
	sarl	%esi
	andl	$-16, %esi
	cmpl	%esi, 8(%rbx)
	je	LBB0_10
LBB0_8:
	sarl	$2, %edx
	andl	$-16, %edx
	cmpl	%edx, %ecx
	jne	LBB0_1
## %bb.9:
	sarl	$2, %eax
	andl	$-16, %eax
	cmpl	%eax, 8(%rbx)
	je	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GO7007_SENSOR_SCALING,4,2      ## @GO7007_SENSOR_SCALING
	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_video_drvdata
	ldr	w8, [x19]
	cmp	w8, #5
	b.ge	LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_valid_pixelformat
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _GO7007_SENSOR_SCALING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GO7007_SENSOR_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
	mov	w0, #0
Lloh3:
	adrp	x8, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w8, [x19]
	mov	w9, #1001
	mul	w8, w8, w9
	add	w8, w8, #1001
	ldr	w9, [x20]
	stp	w8, w9, [x19, #12]
	b	LBB0_11
LBB0_4:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_get_resolution
	ldr	w9, [x19, #4]
	ldp	w8, w10, [sp, #8]
	and	w11, w10, #0xfffffff0
	cmp	w9, w11
	b.ne	LBB0_6
; %bb.5:
	ldr	w11, [x19, #8]
	and	w12, w8, #0xfffffff0
	cmp	w11, w12
	b.eq	LBB0_3
LBB0_6:
	asr	w11, w10, #1
	and	w11, w11, #0xfffffff0
	cmp	w9, w11
	b.ne	LBB0_8
; %bb.7:
	ldr	w11, [x19, #8]
	asr	w12, w8, #1
	and	w12, w12, #0xfffffff0
	cmp	w11, w12
	b.eq	LBB0_3
LBB0_8:
	asr	w10, w10, #2
	and	w10, w10, #0xfffffff0
	cmp	w9, w10
	b.ne	LBB0_10
; %bb.9:
	ldr	w9, [x19, #8]
	asr	w8, w8, #2
	and	w8, w8, #0xfffffff0
	cmp	w9, w8
	b.eq	LBB0_3
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GO7007_SENSOR_SCALING,4,2      ; @GO7007_SENSOR_SCALING
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ; @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_vidioc_enum_frameintervals
.subsections_via_symbols
