	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_buffer_create               ## -- Begin function av_buffer_create
	.p2align	4, 0x90
_av_buffer_create:                      ## @av_buffer_create
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$40, %edi
	callq	_av_mallocz
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, 32(%rax)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, (%rax)
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:
	movq	_av_buffer_default_free@GOTPCREL(%rip), %r14
LBB0_3:
	movq	%r14, 8(%rbx)
	movq	%r13, 24(%rbx)
	movq	%rbx, %rdi
	addq	$20, %rdi
	movl	$1, %esi
	callq	_atomic_init
	movq	_AV_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_BUFFER_FLAG_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_5:
	movl	$24, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	movq	%rbx, 16(%rax)
	movq	%rdx, 8(%rax)
	movl	%ecx, (%rax)
	jmp	LBB0_10
LBB0_8:
	leaq	-64(%rbp), %rdi
	callq	_av_freep
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ## @AV_BUFFER_FLAG_READONLY
	.comm	_BUFFER_FLAG_READONLY,4,2       ## @BUFFER_FLAG_READONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_buffer_create               ; -- Begin function av_buffer_create
	.p2align	2
_av_buffer_create:                      ; @av_buffer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #40
	bl	_av_mallocz
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	str	w19, [x0]
Lloh0:
	adrp	x8, _av_buffer_default_free@GOTPAGE
Lloh1:
	ldr	x8, [x8, _av_buffer_default_free@GOTPAGEOFF]
	cmp	x24, #0
	csel	x8, x8, x24, eq
	str	x8, [x0, #8]
	stp	x23, x20, [x0, #24]
	add	x0, x0, #20
	mov	w1, #1
	bl	_atomic_init
Lloh2:
	adrp	x8, _AV_BUFFER_FLAG_READONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _BUFFER_FLAG_READONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUFFER_FLAG_READONLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
LBB0_3:
	mov	w0, #24
	bl	_av_mallocz
	cbz	x0, LBB0_5
; %bb.4:
	stp	x20, x21, [x0, #8]
	str	w19, [x0]
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_BUFFER_FLAG_READONLY,4,2    ; @AV_BUFFER_FLAG_READONLY
	.comm	_BUFFER_FLAG_READONLY,4,2       ; @BUFFER_FLAG_READONLY
.subsections_via_symbols
