	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk_try_fmt_vid_cap
_stk_try_fmt_vid_cap:                   ## @stk_try_fmt_vid_cap
	.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), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_15
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	_stk_sizes@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	$1, %r13d
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.2:
	movl	$1, %r13d
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%r12), %rdi
	cmpq	(%rdi,%rbx), %rax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
LBB0_5:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %r8
	decl	%r13d
	movslq	%r13d, %rdx
	jmp	LBB0_9
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_7:
	movq	8(%r15), %rcx
	movq	(%r12), %r8
	movslq	%r13d, %rdx
	decq	%rdx
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	%rcx, %rsi
	subq	(%r8,%rax), %rsi
	movq	%rsi, %rbx
	negq	%rbx
	cmovsq	%rsi, %rbx
	movl	%r13d, %esi
	shlq	$4, %rsi
	movq	(%r8,%rsi), %rax
	subq	%rax, %rcx
	movq	%rcx, %rdi
	negq	%rdi
	cmovsq	%rcx, %rdi
	cmpq	%rdi, %rbx
	jae	LBB0_10
## %bb.8:
	decl	%r13d
LBB0_9:
	shlq	$4, %rdx
	movl	8(%r8,%rdx), %eax
	movl	%eax, 16(%r15)
	movq	(%r8,%rdx), %rax
	jmp	LBB0_11
LBB0_10:
	movl	8(%r8,%rsi), %ecx
	movl	%ecx, 16(%r15)
LBB0_11:
	movq	%rax, 8(%r15)
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	%r13d, (%r14)
LBB0_13:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r15)
	cmpl	$130, (%r15)
	setne	%cl
	shll	%cl, %eax
	movl	%eax, 20(%r15)
	imull	16(%r15), %eax
	movl	%eax, 24(%r15)
	xorl	%eax, %eax
LBB0_14:
	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	_stk_sizes,8,3                  ## @stk_sizes
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_stk_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk_try_fmt_vid_cap
_stk_try_fmt_vid_cap:                   ; @stk_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x22, _stk_sizes@GOTPAGE
Lloh1:
	ldr	x22, [x22, _stk_sizes@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	w21, #1
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.2:
	mov	w23, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x22]
	ldr	x9, [x0, x23]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #16
	cmp	x21, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ne	LBB0_8
; %bb.6:
	ldr	x9, [x22]
	sub	w21, w21, #1
	sxtw	x10, w21
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_8:
	ldr	x12, [x19, #8]
	ldr	x9, [x22]
	mov	x8, x21
	sxtw	x8, w8
	sub	x10, x8, #1
	lsl	x8, x10, #4
	ldr	x8, [x9, x8]
	subs	x8, x12, x8
	cneg	x13, x8, mi
	mov	w11, w21
	lsl	x8, x11, #4
	ldr	x8, [x9, x8]
	subs	x12, x12, x8
	cneg	x12, x12, mi
	cmp	x13, x12
	b.hs	LBB0_14
; %bb.9:
	mov	x21, x10
LBB0_10:
	add	x8, x9, x10, lsl #4
	ldr	w9, [x8, #8]
	str	w9, [x19, #16]
	ldr	x8, [x8]
	str	x8, [x19, #8]
	cbz	x20, LBB0_12
LBB0_11:
	str	w21, [x20]
LBB0_12:
	mov	w0, #0
Lloh5:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh7:
	adrp	x10, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh8:
	ldr	x10, [x10, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #28]
	ldr	w9, [x19]
	cmp	w9, #130
	cset	w9, ne
	lsl	w8, w8, w9
	ldr	w9, [x19, #16]
	mul	w9, w9, w8
	stp	w8, w9, [x19, #20]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	add	x9, x9, x11, lsl #4
	ldr	w9, [x9, #8]
	str	w9, [x19, #16]
	str	x8, [x19, #8]
	cbnz	x20, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_stk_sizes,8,3                  ; @stk_sizes
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.no_dead_strip	_stk_try_fmt_vid_cap
.subsections_via_symbols
