	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_create_context     ## -- Begin function ff_v4l2_m2m_create_context
	.p2align	4, 0x90
_ff_v4l2_m2m_create_context:            ## @ff_v4l2_m2m_create_context
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	$32, %edi
	callq	_av_mallocz
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_v4l2_m2m_destroy_context@GOTPCREL(%rip), %rdx
	movq	%rax, %rdi
	movl	$32, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_buffer_create
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%r14), %rcx
	movq	%rcx, (%rbx)
	movq	(%r14), %rdx
	movq	%rbx, 24(%rdx)
	movl	20(%rbx), %edx
	movl	%edx, 20(%rcx)
	movl	16(%rbx), %edx
	movl	%edx, 16(%rcx)
	movq	%rax, 8(%rcx)
	movl	$-1, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_av_freep
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_v4l2_m2m_destroy_context,4,2   ## @v4l2_m2m_destroy_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_create_context     ; -- Begin function ff_v4l2_m2m_create_context
	.p2align	2
_ff_v4l2_m2m_create_context:            ; @ff_v4l2_m2m_create_context
	.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, x1
	mov	x20, x0
	mov	w0, #32
	bl	_av_mallocz
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x2, _v4l2_m2m_destroy_context@GOTPAGE
Lloh1:
	ldr	x2, [x2, _v4l2_m2m_destroy_context@GOTPAGEOFF]
	mov	w1, #32
	mov	x3, #0
	mov	w4, #0
	bl	_av_buffer_create
	str	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	str	x8, [x20]
	ldr	x9, [x19]
	str	x20, [x9, #24]
	ldr	d0, [x20, #16]
	str	d0, [x8, #16]
	str	x0, [x8, #8]
	mov	w9, #-1
	str	w9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_av_freep
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_v4l2_m2m_destroy_context,4,2   ; @v4l2_m2m_destroy_context
.subsections_via_symbols
