	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_ioctl_enum_fmt
_uvc_ioctl_enum_fmt:                    ## @uvc_ioctl_enum_fmt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r12d
	cmpl	(%rdi), %r12d
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rsi), %r13
	cmpq	8(%rdi), %r13
	jae	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r13, 8(%rbx)
	movl	%r12d, (%rbx)
	movq	16(%r15), %r15
	movl	$0, 32(%rbx)
	leaq	(,%r13,2), %r12
	addq	%r13, %r12
	movq	_UVC_FMT_FLAG_COMPRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15,%r12,4)
	je	LBB0_5
## %bb.4:
	movq	_V4L2_FMT_FLAG_COMPRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_5:
	movq	24(%rbx), %rdi
	movl	8(%r15,%r12,4), %esi
	movl	$8, %edx
	callq	_strscpy
	movq	24(%rbx), %rax
	movq	$0, 56(%rax)
	movl	4(%r15,%r12,4), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVC_FMT_FLAG_COMPRESSED,4,2    ## @UVC_FMT_FLAG_COMPRESSED
	.comm	_V4L2_FMT_FLAG_COMPRESSED,4,2   ## @V4L2_FMT_FLAG_COMPRESSED
	.no_dead_strip	_uvc_ioctl_enum_fmt
.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_fmt
_uvc_ioctl_enum_fmt:                    ; @uvc_ioctl_enum_fmt
	.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	w22, [x1]
	ldr	w8, [x0]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
	ldr	x8, [x0, #8]
	cmp	x21, x8
	b.hs	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	x21, [x19, #8]
	str	w22, [x19]
	ldr	x8, [x20, #16]
	str	wzr, [x19, #32]
	mov	w9, #12
	mul	x9, x21, x9
	ldr	w9, [x8, x9]
Lloh0:
	adrp	x10, _UVC_FMT_FLAG_COMPRESSED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _UVC_FMT_FLAG_COMPRESSED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _V4L2_FMT_FLAG_COMPRESSED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FMT_FLAG_COMPRESSED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19, #32]
LBB0_4:
	ldr	x0, [x19, #24]
	mov	w9, #12
	madd	x20, x21, x9, x8
	ldr	w1, [x20, #8]
	mov	w2, #8
	bl	_strscpy
	mov	w0, #0
	ldr	x8, [x19, #24]
	str	xzr, [x8, #56]
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.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	_UVC_FMT_FLAG_COMPRESSED,4,2    ; @UVC_FMT_FLAG_COMPRESSED
	.comm	_V4L2_FMT_FLAG_COMPRESSED,4,2   ; @V4L2_FMT_FLAG_COMPRESSED
	.no_dead_strip	_uvc_ioctl_enum_fmt
.subsections_via_symbols
