	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_extradata_init
_extract_extradata_init:                ## @extract_extradata_init
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_av_bsf_get_by_name
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_extract_extradata_check
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	callq	_av_packet_alloc
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	leaq	8(%r14), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_av_bsf_alloc
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	4(%r12), %esi
	callq	_avcodec_parameters_copy
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	(%r12), %eax
	movq	(%r15), %rdi
	movl	%eax, (%rdi)
	callq	_av_bsf_init
	testl	%eax, %eax
	js	LBB0_6
LBB0_9:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	addq	$4, %r14
	movq	%r15, %rdi
	callq	_av_bsf_free
	movq	%r14, %rdi
	callq	_av_packet_free
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"extract_extradata"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_extract_extradata_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_extradata_init
_extract_extradata_init:                ; @extract_extradata_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_av_bsf_get_by_name
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_extract_extradata_check
	cbz	w0, LBB0_6
; %bb.2:
	bl	_av_packet_alloc
	mov	x19, x23
	str	w0, [x19, #4]!
	cbz	w0, LBB0_9
; %bb.3:
	add	x21, x23, #8
	mov	x0, x22
	mov	x1, x21
	bl	_av_bsf_alloc
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	ldr	w1, [x20, #4]
	bl	_avcodec_parameters_copy
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	ldr	x0, [x21]
	str	w8, [x0]
	bl	_av_bsf_init
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	mov	x0, x21
	bl	_av_bsf_free
	mov	x0, x19
	bl	_av_packet_free
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"extract_extradata"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_extract_extradata_init
.subsections_via_symbols
