	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk_vidioc_try_fmt_vid_cap
_stk_vidioc_try_fmt_vid_cap:            ## @stk_vidioc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	movq	_stk_sizes@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	$1, %r12d
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.2:
	movl	$1, %r12d
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%r15), %rdi
	cmpq	(%rdi,%rbx), %rax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_5:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %r8
	decl	%r12d
	movslq	%r12d, %rcx
	jmp	LBB0_9
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_7:
	movq	8(%r14), %rax
	movq	(%r15), %r8
	movslq	%r12d, %rcx
	decq	%rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	%rax, %rsi
	subq	(%r8,%rdx), %rsi
	movq	%rsi, %rbx
	negq	%rbx
	cmovsq	%rsi, %rbx
	movl	%r12d, %esi
	shlq	$4, %rsi
	movq	(%r8,%rsi), %rdx
	subq	%rdx, %rax
	movq	%rax, %rdi
	negq	%rdi
	cmovsq	%rax, %rdi
	cmpq	%rdi, %rbx
	jae	LBB0_10
## %bb.8:
	decl	%r12d
LBB0_9:
	shlq	$4, %rcx
	movl	8(%r8,%rcx), %esi
	movl	%esi, 16(%r14)
	movq	(%r8,%rcx), %rdx
	jmp	LBB0_11
LBB0_10:
	movl	8(%r8,%rsi), %esi
	movl	%esi, 16(%r14)
LBB0_11:
	movq	%rdx, 8(%r14)
	movl	%r12d, 20(%r14)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	cmpl	$130, (%r14)
	setne	%cl
	shll	%cl, %edx
	movl	%edx, 24(%r14)
	imull	%esi, %edx
	movl	%edx, 28(%r14)
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	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_vidioc_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_vidioc_try_fmt_vid_cap
_stk_vidioc_try_fmt_vid_cap:            ; @stk_vidioc_try_fmt_vid_cap
	.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	w8, [x2]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x21, _stk_sizes@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stk_sizes@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	w20, #1
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.2:
	mov	w22, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x21]
	ldr	x9, [x0, x22]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #16
	cmp	x20, w0, sxtw
	b.lt	LBB0_3
LBB0_5:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w20, w0
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x21]
	sub	w20, w20, #1
	sxtw	x10, w20
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	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	x8, [x21]
	mov	x9, x20
	sxtw	x9, w9
	sub	x10, x9, #1
	lsl	x9, x10, #4
	ldr	x9, [x8, x9]
	subs	x9, x12, x9
	cneg	x13, x9, mi
	mov	w11, w20
	lsl	x9, x11, #4
	ldr	x9, [x8, x9]
	subs	x12, x12, x9
	cneg	x12, x12, mi
	cmp	x13, x12
	b.hs	LBB0_11
; %bb.9:
	mov	x20, x10
LBB0_10:
	add	x9, x8, x10, lsl #4
	ldr	w8, [x9, #8]
	str	w8, [x19, #16]
	ldr	x9, [x9]
	b	LBB0_12
LBB0_11:
	add	x8, x8, x11, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x19, #16]
LBB0_12:
	mov	w0, #0
	str	x9, [x19, #8]
Lloh5:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	str	w10, [x19, #36]
	ldr	w10, [x19]
	cmp	w10, #130
	cset	w10, ne
	lsl	w9, w9, w10
	stp	w20, w9, [x19, #20]
	mul	w8, w8, w9
Lloh8:
	adrp	x9, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #28]
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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_vidioc_try_fmt_vid_cap
.subsections_via_symbols
