	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_enum_framesizes
_uvc_ioctl_enum_framesizes:             ## @uvc_ioctl_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.1:
	movq	8(%rax), %r11
	movq	(%rdx), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%r11,%rcx)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_2
	jmp	LBB0_9
LBB0_3:
	movl	8(%r11,%rcx), %r8d
	testq	%r8, %r8
	je	LBB0_4
## %bb.10:
	movq	%r8, %r9
	shlq	$4, %r9
	xorl	%esi, %esi
	xorl	%edi, %edi
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%edi
	addq	$16, %rsi
	cmpq	%rsi, %r9
	je	LBB0_9
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rbx
	movq	16(%r11,%rcx), %rax
	cmpq	(%rax,%rsi), %rbx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rbx
	cmpq	8(%rax,%rsi), %rbx
	je	LBB0_17
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r11,%rcx), %rax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%rsi, %rax
	cmpl	8(%rdx), %r10d
	je	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r10d
	movq	%rax, %r14
	jmp	LBB0_17
LBB0_4:
	xorl	%edi, %edi
	xorl	%eax, %eax
LBB0_5:
	cmpl	%r8d, %edi
	jne	LBB0_6
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_V4L2_FRMSIZE_TYPE_DISCRETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rdx)
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rdx)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ## @V4L2_FRMSIZE_TYPE_DISCRETE
	.no_dead_strip	_uvc_ioctl_enum_framesizes
.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_framesizes
_uvc_ioctl_enum_framesizes:             ; @uvc_ioctl_enum_framesizes
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	ldr	w9, [x8]
	cbz	w9, LBB0_15
; %bb.1:
	ldr	x8, [x8, #8]
	ldr	x10, [x2]
	add	x8, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x8, #-16]
	cmp	x11, x10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #24
	subs	x9, x9, #1
	b.ne	LBB0_2
	b	LBB0_15
LBB0_4:
	ldur	w9, [x8, #-8]
	cbz	w9, LBB0_13
; %bb.5:
	mov	x12, #0
	mov	w10, #0
	mov	w13, #0
	mov	x11, #0
	lsl	x14, x9, #4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, #1
	add	x12, x12, #16
	cmp	x14, x12
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x11, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x16, [x11]
	ldr	x15, [x8]
	ldr	x17, [x15, x12]
	cmp	x16, x17
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x16, [x11, #8]
	add	x17, x15, x12
	ldr	x17, [x17, #8]
	cmp	x16, x17
	b.eq	LBB0_6
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x15, [x8]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x11, x15, x12
	ldr	w15, [x2, #8]
	cmp	w13, w15
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w13, w13, #1
	b	LBB0_6
LBB0_13:
	mov	w10, #0
	mov	x11, #0
LBB0_14:
	cmp	w10, w9
	b.ne	LBB0_16
LBB0_15:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_16:
	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, [x2, #32]
	ldr	q0, [x11]
	str	q0, [x2, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FRMSIZE_TYPE_DISCRETE,4,2 ; @V4L2_FRMSIZE_TYPE_DISCRETE
	.no_dead_strip	_uvc_ioctl_enum_framesizes
.subsections_via_symbols
