	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_file2ctx
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.2:
	movq	_multiplanar@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.3:
	cmpl	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_multiplanar@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.8:
	cmpl	$0, 16(%r14)
	je	LBB0_10
## %bb.9:
	movq	_V4L2_PIX_FMT_FWHT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	24(%rbx), %rdi
	callq	_find_fmt
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movups	(%r14), %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_12
LBB0_5:
	movq	48(%rbx), %rdi
	callq	_find_fmt
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movups	(%r14), %xmm0
	movups	%xmm0, 32(%rbx)
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vidioc_try_fmt                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_multiplanar,4,2                ## @multiplanar
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_FWHT,8,3          ## @V4L2_PIX_FMT_FWHT
	.no_dead_strip	_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 vidioc_try_fmt_vid_cap
_vidioc_try_fmt_vid_cap:                ; @vidioc_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_file2ctx
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _multiplanar@GOTPAGE
Lloh1:
	ldr	x8, [x8, _multiplanar@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_8
; %bb.3:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_11
; %bb.4:
Lloh3:
	adrp	x0, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh4:
	ldr	x0, [x0, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh5:
	adrp	x8, _multiplanar@GOTPAGE
Lloh6:
	ldr	x8, [x8, _multiplanar@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_9
; %bb.7:
Lloh8:
	adrp	x0, _V4L2_PIX_FMT_FWHT@GOTPAGE
Lloh9:
	ldr	x0, [x0, _V4L2_PIX_FMT_FWHT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19, #24]
	bl	_find_fmt
LBB0_10:
	ldr	x9, [x0]
	add	x8, x19, #8
	str	x9, [x19, #24]
	b	LBB0_13
LBB0_11:
	ldr	x0, [x19, #48]
	bl	_find_fmt
LBB0_12:
	ldr	x9, [x0]
	add	x8, x19, #32
	str	x9, [x19, #48]
LBB0_13:
	ldr	q0, [x20]
	str	q0, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vidioc_try_fmt
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_multiplanar,4,2                ; @multiplanar
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_FWHT,8,3          ; @V4L2_PIX_FMT_FWHT
	.no_dead_strip	_vidioc_try_fmt_vid_cap
.subsections_via_symbols
