	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_context_get_format     ## -- Begin function ff_v4l2_context_get_format
	.p2align	4, 0x90
_ff_v4l2_context_get_format:            ## @ff_v4l2_context_get_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$0, -32(%rbp)
	movq	(%rdi), %rax
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_get_raw_format
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_save_to_context
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_get_coded_format
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$1, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_save_to_context
	movq	%rbx, %rdi
	callq	_ctx_to_m2mctx
	movl	(%rax), %edi
	movq	_VIDIOC_TRY_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rbx
	movq	%rbx, %rdx
	callq	_ioctl
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_VIDIOC_TRY_FMT,4,2             ## @VIDIOC_TRY_FMT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_context_get_format     ; -- Begin function ff_v4l2_context_get_format
	.p2align	2
_ff_v4l2_context_get_format:            ; @ff_v4l2_context_get_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	add	x8, sp, #8
	add	x1, x8, #12
	mov	x0, x19
	bl	_v4l2_get_raw_format
	cbnz	w0, LBB0_5
; %bb.2:
	cmp	w20, #0
	cset	w8, eq
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_v4l2_save_to_context
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	add	x8, sp, #8
	add	x1, x8, #8
	mov	x0, x19
	bl	_v4l2_get_coded_format
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_v4l2_save_to_context
	mov	x0, x19
	bl	_ctx_to_m2mctx
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _VIDIOC_TRY_FMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDIOC_TRY_FMT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #8
	bl	_ioctl
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_RAWVIDEO,8,3       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_VIDIOC_TRY_FMT,4,2             ; @VIDIOC_TRY_FMT
.subsections_via_symbols
