	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_hwframe_ctx_alloc           ## -- Begin function av_hwframe_ctx_alloc
	.p2align	4, 0x90
_av_hwframe_ctx_alloc:                  ## @av_hwframe_ctx_alloc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	(%rax), %r15
	movq	$0, -40(%rbp)
	movl	$72, %edi
	callq	_av_mallocz
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movl	$72, %edi
	callq	_av_mallocz
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.3:
	callq	_av_mallocz
	movq	8(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	movl	4(%r15), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	callq	_av_mallocz
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_av_buffer_ref
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r14
	movq	_hwframe_ctx_free@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AV_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	$72, %esi
	xorl	%ecx, %ecx
	callq	_av_buffer_create
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_hwframe_ctx_class@GOTPCREL(%rip), %rcx
	movq	%rcx, 64(%rbx)
	movq	%r14, 56(%rbx)
	movq	%r12, 48(%rbx)
	movq	_AV_PIX_FMT_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rbx)
	movq	%rcx, 32(%rbx)
	movq	8(%rbx), %rcx
	movq	%r15, 24(%rcx)
	jmp	LBB0_15
LBB0_9:
	cmpq	$0, -40(%rbp)
	je	LBB0_11
LBB0_10:
	leaq	-40(%rbp), %rdi
	callq	_av_buffer_unref
LBB0_11:
	leaq	8(%rbx), %r14
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	addq	$16, %rdi
	callq	_av_freep
LBB0_13:
	movq	%r14, %rdi
	callq	_av_freep
	movq	%rbx, %rdi
	callq	_av_freep
	leaq	-48(%rbp), %rdi
	callq	_av_freep
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hwframe_ctx_free,4,2           ## @hwframe_ctx_free
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ## @AV_BUFFER_FLAG_READONLY
	.comm	_hwframe_ctx_class,4,2          ## @hwframe_ctx_class
	.comm	_AV_PIX_FMT_NONE,8,3            ## @AV_PIX_FMT_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_hwframe_ctx_alloc           ; -- Begin function av_hwframe_ctx_alloc
	.p2align	2
_av_hwframe_ctx_alloc:                  ; @av_hwframe_ctx_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x8, [x22]
	ldr	x21, [x8]
	str	xzr, [sp]
	mov	w0, #72
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	mov	w0, #72
	bl	_av_mallocz
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w0, [x21]
	cbz	w0, LBB0_4
; %bb.3:
	bl	_av_mallocz
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	cbz	x0, LBB0_11
LBB0_4:
	ldr	w0, [x21, #4]
	cbz	w0, LBB0_6
; %bb.5:
	bl	_av_mallocz
	str	x0, [x19]
	ldr	x19, [sp, #8]
	ldr	x8, [x19]
	cbz	x8, LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_av_buffer_ref
	str	x0, [sp]
	cbz	x0, LBB0_11
; %bb.7:
	mov	x20, x0
Lloh0:
	adrp	x8, _hwframe_ctx_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hwframe_ctx_free@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _AV_BUFFER_FLAG_READONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #72
	mov	x3, #0
	bl	_av_buffer_create
	cbz	x0, LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _hwframe_ctx_class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hwframe_ctx_class@GOTPAGEOFF]
	str	x8, [x19, #64]
Lloh8:
	adrp	x8, _AV_PIX_FMT_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_PIX_FMT_NONE@GOTPAGEOFF]
	stp	x22, x20, [x19, #48]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #32]
	ldr	x8, [x19, #8]
	str	x21, [x8, #24]
	b	LBB0_14
LBB0_9:
	ldr	x8, [sp]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x0, sp
	bl	_av_buffer_unref
LBB0_11:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_13
; %bb.12:
	add	x0, x8, #16
	bl	_av_freep
LBB0_13:
	mov	x0, x20
	bl	_av_freep
	mov	x0, x19
	bl	_av_freep
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hwframe_ctx_free,4,2           ; @hwframe_ctx_free
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ; @AV_BUFFER_FLAG_READONLY
	.comm	_hwframe_ctx_class,4,2          ; @hwframe_ctx_class
	.comm	_AV_PIX_FMT_NONE,8,3            ; @AV_PIX_FMT_NONE
.subsections_via_symbols
