	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_enum_frameintervals
_uvc_ioctl_enum_frameintervals:         ## @uvc_ioctl_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movl	(%rax), %esi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	movq	8(%rax), %rax
	movq	(%rdx), %rcx
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax,%rdi)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_2
	jmp	LBB0_14
LBB0_4:
	movl	8(%rdx), %ecx
	movl	8(%rax,%rdi), %r9d
	testq	%r9, %r9
	je	LBB0_12
## %bb.5:
	movq	16(%rax,%rdi), %rax
	movq	16(%rdx), %r10
	xorl	%edi, %edi
	movl	$1, %r8d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdi
	addq	$32, %rax
	movl	%esi, %ecx
	cmpq	%rdi, %r9
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r10, (%rax)
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rax), %rsi
	cmpq	24(%rdx), %rsi
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	cmovel	%r8d, %ebx
	movl	%ecx, %esi
	subl	%ebx, %esi
	jae	LBB0_7
## %bb.13:
	cmpl	%r9d, %edi
	jne	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%edi, %edi
	xorl	%eax, %eax
	cmpl	%r9d, %edi
	je	LBB0_14
LBB0_16:
	cmpq	$0, 24(%rax)
	je	LBB0_18
## %bb.17:
	movq	_V4L2_FRMIVAL_TYPE_DISCRETE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 56(%rdx)
	movq	16(%rax), %rax
	movl	%ecx, %ecx
	movl	(%rax,%rcx,4), %eax
	leaq	64(%rdx), %rdi
	leaq	60(%rdx), %rsi
	movl	%eax, 64(%rdx)
	movl	$10000000, 60(%rdx)             ## imm = 0x989680
	jmp	LBB0_19
LBB0_18:
	movq	_V4L2_FRMIVAL_TYPE_STEPWISE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rdx)
	movq	16(%rax), %rax
	movl	(%rax), %ecx
	leaq	32(%rdx), %r14
	leaq	52(%rdx), %rdi
	leaq	48(%rdx), %rsi
	movl	%ecx, 52(%rdx)
	movl	$10000000, 48(%rdx)             ## imm = 0x989680
	movl	4(%rax), %ecx
	leaq	44(%rdx), %rbx
	leaq	40(%rdx), %r15
	movl	%ecx, 44(%rdx)
	movl	$10000000, 40(%rdx)             ## imm = 0x989680
	movl	8(%rax), %eax
	leaq	36(%rdx), %r12
	movl	%eax, 36(%rdx)
	movl	$10000000, 32(%rdx)             ## imm = 0x989680
	movl	$8, %edx
	movl	$333, %ecx                      ## imm = 0x14D
	callq	_uvc_simplify_fraction
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	movl	$333, %ecx                      ## imm = 0x14D
	callq	_uvc_simplify_fraction
	movq	%r12, %rdi
	movq	%r14, %rsi
LBB0_19:
	movl	$8, %edx
	movl	$333, %ecx                      ## imm = 0x14D
	callq	_uvc_simplify_fraction
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ## @V4L2_FRMIVAL_TYPE_DISCRETE
	.comm	_V4L2_FRMIVAL_TYPE_STEPWISE,4,2 ## @V4L2_FRMIVAL_TYPE_STEPWISE
	.no_dead_strip	_uvc_ioctl_enum_frameintervals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_ioctl_enum_frameintervals
_uvc_ioctl_enum_frameintervals:         ; @uvc_ioctl_enum_frameintervals
	.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
	ldr	x9, [x1]
	ldr	w8, [x9]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x19, x2
	ldr	x9, [x9, #8]
	ldr	x10, [x2]
	add	x9, x9, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.ne	LBB0_2
	b	LBB0_12
LBB0_4:
	ldr	w8, [x19, #8]
	ldr	w10, [x9]
	cbz	w10, LBB0_14
; %bb.5:
	mov	x11, #0
	ldr	x9, [x9, #8]
	ldr	x12, [x19, #16]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x11, x11, #1
	add	x9, x9, #32
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9]
	cmp	x13, x12
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x9, #8]
	ldr	x14, [x19, #24]
	cmp	x13, x14
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x9, #24]
	cmp	x13, #0
	csinc	w13, w13, wzr, ne
	subs	w13, w8, w13
	b.hs	LBB0_6
; %bb.11:
	cmp	w11, w10
	b.ne	LBB0_15
LBB0_12:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	mov	w11, #0
	mov	x9, #0
	cmp	w11, w10
	b.eq	LBB0_12
LBB0_15:
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_17
; %bb.16:
Lloh3:
	adrp	x10, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_FRMIVAL_TYPE_DISCRETE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	str	w10, [x19, #56]
	ldr	x9, [x9, #16]
	ldr	w8, [x9, w8, uxtw #2]
	mov	w9, #38528
	movk	w9, #152, lsl #16
	str	w9, [x19, #60]!
	mov	x0, x19
	str	w8, [x0, #4]!
	b	LBB0_18
LBB0_17:
Lloh6:
	adrp	x8, _V4L2_FRMIVAL_TYPE_STEPWISE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FRMIVAL_TYPE_STEPWISE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	ldr	x8, [x9, #16]
	ldr	w9, [x8]
	mov	x0, x19
	str	w9, [x0, #52]!
	mov	w9, #38528
	movk	w9, #152, lsl #16
	mov	x1, x19
	str	w9, [x1, #48]!
	ldr	w10, [x8, #4]
	mov	x20, x19
	str	w10, [x20, #44]!
	mov	x21, x19
	str	w9, [x21, #40]!
	ldr	w8, [x8, #8]
	str	w9, [x19, #32]!
	mov	x22, x19
	str	w8, [x22, #4]!
	mov	w2, #8
	mov	w3, #333
	bl	_uvc_simplify_fraction
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	mov	w3, #333
	bl	_uvc_simplify_fraction
	mov	x0, x22
LBB0_18:
	mov	x1, x19
	mov	w2, #8
	mov	w3, #333
	bl	_uvc_simplify_fraction
	mov	w0, #0
	b	LBB0_13
	.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	_V4L2_FRMIVAL_TYPE_DISCRETE,4,2 ; @V4L2_FRMIVAL_TYPE_DISCRETE
	.comm	_V4L2_FRMIVAL_TYPE_STEPWISE,4,2 ; @V4L2_FRMIVAL_TYPE_STEPWISE
	.no_dead_strip	_uvc_ioctl_enum_frameintervals
.subsections_via_symbols
