	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwc_enum_frameintervals
_pwc_enum_frameintervals:               ## @pwc_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, %r14
	callq	_video_drvdata
	movq	_PSZ_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	_pwc_image_sizes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	(%r14), %rdi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdx,8), %rbx
	cmpq	%rdi, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	cmpq	8(%r14), %rbx
	jne	LBB0_4
## %bb.5:
	testl	%edx, %edx
	js	LBB0_7
## %bb.6:
	movq	16(%r14), %rcx
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_7
## %bb.8:
	movl	36(%r14), %esi
	movq	%rax, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pwc_get_fps
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movq	_V4L2_FRMIVAL_TYPE_DISCRETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movl	$1, 24(%r14)
	movl	%eax, 28(%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSZ_MAX,4,2                    ## @PSZ_MAX
	.comm	_pwc_image_sizes,8,3            ## @pwc_image_sizes
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ## @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_pwc_enum_frameintervals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwc_enum_frameintervals
_pwc_enum_frameintervals:               ; @pwc_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
Lloh0:
	adrp	x8, _PSZ_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSZ_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x2, #0
Lloh3:
	adrp	x9, _pwc_image_sizes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pwc_image_sizes@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x10, [x19]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, x2, #1
	cmp	x8, x2
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x2, lsl #3]
	ldr	x12, [x11]
	cmp	x12, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x11, #8]
	ldr	x12, [x19, #8]
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.5:
	tbnz	w2, #31, LBB0_9
; %bb.6:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w1, [x19, #36]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pwc_get_fps
	cbz	w0, LBB0_9
; %bb.8:
	mov	x8, x0
	mov	w0, #0
Lloh9:
	adrp	x9, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #28]
	mov	w9, #1
	str	w9, [x19, #24]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PSZ_MAX,4,2                    ; @PSZ_MAX
	.comm	_pwc_image_sizes,8,3            ; @pwc_image_sizes
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ; @V4L2_FRMIVAL_TYPE_DISCRETE
	.no_dead_strip	_pwc_enum_frameintervals
.subsections_via_symbols
