	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_v4l2_try_format
_uvc_v4l2_try_format:                   ## @uvc_v4l2_try_format
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_7
## %bb.1:
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rdx
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$32, %r8
	movl	16(%rsi), %r9d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	20(%rsi), %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r9
	pushq	%rbx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	callq	_uvc_trace
	addq	$32, %rsp
	movl	8(%rbx), %eax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	32(%rbx), %rcx
	movq	8(%r12), %rdx
	leal	-1(%rax), %esi
	shlq	$5, %rsi
	addq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rcx
	decq	%rax
	jne	LBB0_3
## %bb.5:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movq	8(%r12), %rdx
	cmpq	%rdx, (%rsi)
	jne	LBB0_9
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_8:
	movq	8(%r12), %rdx
LBB0_9:
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_uvc_trace
	jmp	LBB0_27
LBB0_10:
	movq	%rcx, %rsi
LBB0_11:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	cmpl	$0, 8(%rsi)
	je	LBB0_26
## %bb.12:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %eax
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	20(%r12), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	imull	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	%r12, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r14
	movl	8(%rsi), %eax
	addq	$16, %r12
	cmpq	%rax, %r14
	jae	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %rax
	movl	(%rax,%r12), %r15d
	movl	4(%rax,%r12), %r13d
	movl	%r15d, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	imull	%r15d, %r13d
	addl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	imull	%ebx, %eax
	addl	%eax, %eax
	subl	%eax, %r13d
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jae	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rsi), %rax
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.17:
	addq	%r12, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_26
## %bb.19:
	movslq	8(%rax), %r15
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imulq	$1717986919, %r15, %rbx         ## imm = 0x66666667
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	leal	(%rbx,%rbx), %eax
	leal	(%rax,%rax,4), %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movl	$10000000, %eax                 ## imm = 0x989680
	xorl	%edx, %edx
	idivl	%r15d
	movl	%eax, %r8d
	movl	$100000000, %eax                ## imm = 0x5F5E100
	xorl	%edx, %edx
	idivl	%r15d
	movslq	%eax, %r9
	imulq	$1717986919, %r9, %rax          ## imm = 0x66666667
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$34, %rax
	addl	%edx, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r9d
	movq	%rsi, %r14
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_uvc_trace
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	$1, (%r13)
	movl	20(%r14), %eax
	movl	%eax, 16(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %eax
	movl	%eax, 12(%r13)
	movl	%r15d, %esi
	callq	_uvc_try_frame_interval
	movl	%eax, 8(%r13)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	24(%rbx), %rax
	movq	_UVC_QUIRK_PROBE_EXTRAFIELDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_21
## %bb.20:
	movl	16(%rbx), %eax
	movl	%eax, 4(%r13)
LBB0_21:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_uvc_probe_video
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_29
## %bb.22:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%eax, 16(%r12)
	movl	4(%rcx), %ecx
	movl	%ecx, 20(%r12)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r12)
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	imull	12(%rdx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 24(%r12)
	movl	4(%r13), %eax
	movl	%eax, 44(%r12)
	movl	16(%rdx), %eax
	movl	%eax, 40(%r12)
	movq	$0, 32(%r12)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rdx, (%rax)
LBB0_24:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_29
LBB0_26:
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r12), %edx
	movl	20(%r12), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_uvc_trace
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_28:
	subl	(%rax), %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$72, %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_TRACE_FORMAT,4,2           ## @UVC_TRACE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying format 0x%08x (%c%c%c%c): %ux%u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported format 0x%08x.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported size %ux%u.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Using default frame interval %u.%u us (%u.%u fps).\n"

	.comm	_UVC_QUIRK_PROBE_EXTRAFIELDS,4,2 ## @UVC_QUIRK_PROBE_EXTRAFIELDS
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_uvc_v4l2_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_v4l2_try_format
_uvc_v4l2_try_format:                   ; @uvc_v4l2_try_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
Lloh0:
	adrp	x27, _UVC_TRACE_FORMAT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _UVC_TRACE_FORMAT@GOTPAGEOFF]
	ldr	w0, [x27]
	ldr	x2, [x1, #8]
	lsr	x8, x2, #32
	ldp	w9, w10, [x1, #16]
	stp	x9, x10, [sp, #32]
	stp	x9, x10, [sp, #16]
	stp	x2, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_uvc_trace
	ldr	w8, [x23, #8]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	x9, [x23, #32]
	ldr	x10, [x24, #8]
	sub	w11, w8, #1
	add	x21, x9, x11, lsl #5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #32
	subs	x8, x8, #1
	b.ne	LBB0_3
; %bb.5:
	cbz	x21, LBB0_8
; %bb.6:
	ldr	x8, [x21]
	ldr	x2, [x24, #8]
	cmp	x8, x2
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_11
	b	LBB0_23
LBB0_8:
	ldr	x2, [x24, #8]
LBB0_9:
	ldr	w0, [x27]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_24
LBB0_10:
	mov	x21, x9
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_23
LBB0_11:
	stp	x23, x22, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x24, [sp, #64]             ; 16-byte Folded Spill
	stp	x19, xzr, [sp, #80]             ; 16-byte Folded Spill
	mov	x22, #0
	mov	x23, #0
	ldp	w25, w26, [x24, #16]
	mul	w20, w26, w25
	mov	w24, #-1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	ldr	w8, [x21, #8]
	add	x22, x22, #16
	cmp	x23, x8
	b.hs	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x8, x8, x22
	ldp	w27, w28, [x8]
	mov	x0, x27
	mov	x1, x25
	bl	_min
	mov	x19, x0
	mov	x0, x28
	mov	x1, x26
	bl	_min
	madd	w8, w28, w27, w20
	mul	w9, w19, w0
	sub	w8, w8, w9, lsl #1
	cmp	w8, w24
	b.hs	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x21, #24]
	add	x9, x9, x22
	str	x9, [sp, #88]                   ; 8-byte Folded Spill
	mov	x24, x8
	cbnz	w8, LBB0_12
LBB0_15:
	ldp	x24, x20, [sp, #72]             ; 16-byte Folded Reload
	ldp	x26, x22, [sp, #56]             ; 16-byte Folded Reload
	ldr	x23, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x25, [sp, #88]                  ; 8-byte Folded Reload
Lloh6:
	adrp	x27, _UVC_TRACE_FORMAT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _UVC_TRACE_FORMAT@GOTPAGEOFF]
	cbz	x25, LBB0_23
; %bb.16:
	ldr	w19, [x25, #8]
	ldr	w0, [x27]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x9, w19, w8
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w2, w9, w10
	mov	w9, #10
	msub	w10, w2, w9, w19
	mov	w11, #38528
	movk	w11, #152, lsl #16
	sdiv	w11, w11, w19
	mov	w12, #57600
	movk	w12, #1525, lsl #16
	sdiv	w12, w12, w19
	smull	x8, w12, w8
	lsr	x13, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w13
	msub	w8, w8, w9, w12
	stp	x11, x8, [sp, #8]
	str	x10, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_uvc_trace
	mov	x0, x26
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	w8, #1
	str	w8, [x26]
	ldr	w8, [x21, #20]
	ldr	w9, [x25, #12]
	stp	w9, w8, [x26, #12]
	mov	x0, x25
	mov	x1, x19
	bl	_uvc_try_frame_interval
	str	w0, [x26, #8]
	add	x25, x23, #12
	mov	x0, x25
	bl	_mutex_lock
	ldr	x8, [x23, #24]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _UVC_QUIRK_PROBE_EXTRAFIELDS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UVC_QUIRK_PROBE_EXTRAFIELDS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x23, #16]
	str	w8, [x26, #4]
LBB0_18:
	mov	x0, x23
	mov	x1, x26
	bl	_uvc_probe_video
	mov	x23, x0
	mov	x0, x25
	bl	_mutex_unlock
	tbnz	w23, #31, LBB0_26
; %bb.19:
	ldr	x11, [sp, #88]                  ; 8-byte Folded Reload
	ldr	d0, [x11]
	str	d0, [x24, #16]
Lloh13:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x24, #48]
	fmov	w8, s0
	ldp	w9, w10, [x21, #12]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x24, #24]
	ldr	w8, [x26, #4]
	stp	w10, w8, [x24, #40]
	str	xzr, [x24, #32]
	cbz	x22, LBB0_21
; %bb.20:
	str	x21, [x22]
LBB0_21:
	cbz	x20, LBB0_26
; %bb.22:
	str	x11, [x20]
	b	LBB0_26
LBB0_23:
	ldr	w0, [x27]
	ldp	w2, w8, [x24, #16]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_24:
	bl	_uvc_trace
LBB0_25:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_26:
	mov	x0, x23
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVC_TRACE_FORMAT,4,2           ; @UVC_TRACE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying format 0x%08x (%c%c%c%c): %ux%u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported format 0x%08x.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported size %ux%u.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Using default frame interval %u.%u us (%u.%u fps).\n"

	.comm	_UVC_QUIRK_PROBE_EXTRAFIELDS,4,2 ; @UVC_QUIRK_PROBE_EXTRAFIELDS
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_uvc_v4l2_try_format
.subsections_via_symbols
