	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_extradata
_setup_extradata:                       ## @setup_extradata
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rsi)
	je	LBB0_1
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rsi, %rbx
	movl	8(%r14), %edi
	movl	(%r14), %esi
	movl	4(%r14), %edx
	callq	*%rax
	movl	$1, %r15d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	movl	%eax, (%rbx)
	movl	%eax, %edi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_av_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	%rax, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_setup_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_extradata
_setup_extradata:                       ; @setup_extradata
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.5:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.6:
	mov	x20, x1
	ldp	w2, w0, [x19, #4]
	ldr	w1, [x19]
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, x0
	str	w0, [x20]
Lloh0:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, w0, uxtw
	bl	_av_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x19]
	mov	x2, x21
	bl	_memcpy
	b	LBB0_1
LBB0_9:
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_setup_extradata
.subsections_via_symbols
