	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_try_raw_format
_v4l2_try_raw_format:                   ## @v4l2_try_raw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_ff_v4l2_format_avfmt_to_v4l2
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	leaq	8(%rbx), %r15
	movl	(%rbx), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	%r14, 16(%rbx,%rcx,8)
	movl	(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_ctx_to_m2mctx
	movl	(%rax), %edi
	movq	_VIDIOC_TRY_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VIDIOC_TRY_FMT,4,2             ## @VIDIOC_TRY_FMT
	.no_dead_strip	_v4l2_try_raw_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_try_raw_format
_v4l2_try_raw_format:                   ; @v4l2_try_raw_format
	.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, x0
	mov	x0, x1
	bl	_ff_v4l2_format_avfmt_to_v4l2
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	mov	w8, #24
	mov	w9, #16
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x20, [x19, x8]
	ldr	w8, [x19]
	mov	x20, x19
	str	w8, [x20, #8]!
	mov	x0, x19
	bl	_ctx_to_m2mctx
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _VIDIOC_TRY_FMT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDIOC_TRY_FMT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ioctl
	cbz	w0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VIDIOC_TRY_FMT,4,2             ; @VIDIOC_TRY_FMT
	.no_dead_strip	_v4l2_try_raw_format
.subsections_via_symbols
