	.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	$88, %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_5
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rsi), %rcx
	movq	%rcx, %r8
	shrq	$32, %r8
	movl	16(%rsi), %r9d
	movl	20(%rsi), %r10d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%ecx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r9
	pushq	%r10
	callq	_uvc_trace
	addq	$32, %rsp
	movl	8(%r12), %eax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	40(%r12), %rdx
	movq	8(%r14), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rdx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addq	$32, %rdx
	cmpq	%rbx, %rax
	jne	LBB0_3
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_6:
	xorl	%edx, %edx
LBB0_7:
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_8:
	movq	32(%r12), %rdx
	movq	(%rdx), %rax
	movq	%rax, 8(%r14)
LBB0_9:
	cmpl	$0, 8(%rdx)
	je	LBB0_24
## %bb.10:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	16(%r14), %eax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	20(%r14), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	imull	%eax, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	%r15, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movl	8(%rdx), %eax
	addq	$16, %r15
	cmpq	%rax, %r14
	jae	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rdx), %rax
	movl	(%rax,%r15), %r12d
	movl	4(%rax,%r15), %ebx
	movl	%r12d, %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r13d
	movl	%ebx, %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	imull	%r12d, %ebx
	addl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	%r13d, %eax
	addl	%eax, %eax
	subl	%eax, %ebx
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jae	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%rdx), %rax
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.15:
	addq	%r15, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_24
## %bb.17:
	movslq	8(%rax), %r12
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	imulq	$1717986919, %r12, %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	%r12d, %ecx
	subl	%eax, %ecx
	movl	$10000000, %eax                 ## imm = 0x989680
	xorl	%edx, %edx
	idivl	%r12d
	movl	%eax, %r8d
	movl	$100000000, %eax                ## imm = 0x5F5E100
	xorl	%edx, %edx
	idivl	%r12d
	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
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_uvc_trace
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	$1, (%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	movl	%eax, 16(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %eax
	movl	%eax, 12(%r15)
	movl	%r12d, %esi
	callq	_uvc_try_frame_interval
	movl	%eax, 8(%r15)
	leaq	12(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	24(%r13), %rax
	movq	_UVC_QUIRK_PROBE_EXTRAFIELDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_19
## %bb.18:
	movl	16(%r13), %eax
	movl	%eax, 4(%r15)
LBB0_19:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_uvc_probe_video
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_26
## %bb.20:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %eax
	movl	%eax, 16(%r14)
	movl	4(%rsi), %eax
	movl	%eax, 20(%r14)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_uvc_v4l2_get_bytesperline
	movl	%eax, 32(%r14)
	movl	4(%r15), %eax
	movl	%eax, 28(%r14)
	movl	12(%r12), %eax
	movl	%eax, 24(%r14)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r12, (%rax)
LBB0_22:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	jmp	LBB0_26
LBB0_24:
	movq	_UVC_TRACE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	movl	20(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_uvc_trace
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_25:
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$88, %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 size %ux%u.\n"

L_.str.2:                               ## @.str.2
	.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_22
; %bb.1:
	mov	x19, x4
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	str	x3, [sp, #72]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x23, _UVC_TRACE_FORMAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UVC_TRACE_FORMAT@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x2, [x1, #8]
	lsr	x8, x2, #32
	ldp	w9, w10, [x1, #16]
	stp	x9, x10, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x2
	bl	_uvc_trace
	ldr	w8, [x22, #8]
	str	x19, [sp, #80]                  ; 8-byte Folded Spill
	cbz	w8, LBB0_5
; %bb.2:
	mov	x9, #0
	ldr	x24, [x22, #40]
	ldr	x10, [x20, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x24]
	cmp	x11, x10
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x24, x24, #32
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w9, #0
	mov	x24, #0
LBB0_6:
	cmp	w9, w8
	b.ne	LBB0_8
LBB0_7:
	ldr	x24, [x22, #32]
	ldr	x8, [x24]
	str	x8, [x20, #8]
LBB0_8:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_21
; %bb.9:
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	mov	x22, #0
	mov	x23, #0
	mov	x21, #0
	ldp	w26, w27, [x20, #16]
	str	x20, [sp, #64]                  ; 8-byte Folded Spill
	mul	w8, w27, w26
	stur	w8, [x29, #-84]                 ; 4-byte Folded Spill
	mov	w25, #-1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	ldr	w8, [x24, #8]
	add	x22, x22, #16
	cmp	x23, x8
	b.hs	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #24]
	add	x8, x8, x22
	ldp	w28, w19, [x8]
	mov	x0, x28
	mov	x1, x26
	bl	_min
	mov	x20, x0
	mov	x0, x19
	mov	x1, x27
	bl	_min
	ldur	w8, [x29, #-84]                 ; 4-byte Folded Reload
	madd	w8, w19, w28, w8
	mul	w9, w20, w0
	sub	w8, w8, w9, lsl #1
	cmp	w8, w25
	b.hs	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x24, #24]
	add	x21, x9, x22
	mov	x25, x8
	cbnz	w8, LBB0_10
LBB0_13:
	ldp	x27, x20, [sp, #56]             ; 16-byte Folded Reload
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
Lloh4:
	adrp	x23, _UVC_TRACE_FORMAT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _UVC_TRACE_FORMAT@GOTPAGEOFF]
	cbz	x21, LBB0_21
; %bb.14:
	ldr	w19, [x21, #8]
	ldr	w0, [x23]
	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	w3, w2, w9, w19
	mov	w10, #38528
	movk	w10, #152, lsl #16
	sdiv	w10, w10, w19
	mov	w11, #57600
	movk	w11, #1525, lsl #16
	sdiv	w11, w11, w19
	smull	x8, w11, w8
	lsr	x12, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w12
	msub	w8, w8, w9, w11
	stp	x10, x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_uvc_trace
	mov	x0, x27
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	w8, #1
	str	w8, [x27]
	ldr	w8, [x24, #16]
	ldr	w9, [x21, #12]
	stp	w9, w8, [x27, #12]
	mov	x0, x21
	mov	x1, x19
	bl	_uvc_try_frame_interval
	str	w0, [x27, #8]
	add	x26, x22, #12
	mov	x0, x26
	bl	_mutex_lock
	ldr	x8, [x22, #24]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _UVC_QUIRK_PROBE_EXTRAFIELDS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UVC_QUIRK_PROBE_EXTRAFIELDS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x22, #16]
	str	w8, [x27, #4]
LBB0_16:
	mov	x0, x22
	mov	x1, x27
	bl	_uvc_probe_video
	mov	x23, x0
	mov	x0, x26
	bl	_mutex_unlock
	tbnz	w23, #31, LBB0_23
; %bb.17:
	ldr	d0, [x21]
	str	d0, [x20, #16]
Lloh11:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	mov	x0, x24
	mov	x1, x21
	bl	_uvc_v4l2_get_bytesperline
	str	w0, [x20, #32]
	ldr	w8, [x27, #4]
	ldr	w9, [x24, #12]
	stp	w9, w8, [x20, #24]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_19
; %bb.18:
	str	x24, [x8]
LBB0_19:
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_23
; %bb.20:
	str	x21, [x8]
	b	LBB0_23
LBB0_21:
	ldr	w0, [x23]
	ldp	w2, w3, [x20, #16]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_uvc_trace
LBB0_22:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_23:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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 size %ux%u.\n"

l_.str.2:                               ; @.str.2
	.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
