	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_extradata
_extract_extradata:                     ## @extract_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r13
	cmpq	$0, 24(%r13)
	je	LBB0_14
LBB0_1:
	cmpl	$0, 8(%r13)
	je	LBB0_16
LBB0_2:
	movq	16(%r13), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_av_packet_ref
	testl	%eax, %eax
	js	LBB0_18
## %bb.3:
	movl	8(%r13), %edi
	movq	%r12, %rsi
	callq	_av_bsf_send_packet
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rax)
	jne	LBB0_24
## %bb.5:
	leaq	-44(%rbp), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_av_packet_unref
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_24
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movq	%r12, %rsi
	callq	_av_bsf_receive_packet
	testl	%eax, %eax
	js	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_PKT_DATA_NEW_EXTRADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_av_packet_get_side_data
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_av_assert0
	movslq	-44(%rbp), %rdi
	movq	_FF_MAX_EXTRADATA_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_av_mallocz
	movq	%rax, %rdi
	movq	(%r13), %rax
	movq	%rdi, 8(%rax)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	movq	8(%rax), %rdi
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movl	-44(%rbp), %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_14:
	callq	_extract_extradata_init
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	cmpq	$0, 24(%r13)
	jne	LBB0_1
	jmp	LBB0_2
LBB0_18:
	movl	%eax, %r14d
	jmp	LBB0_24
LBB0_16:
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_19:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_av_packet_unref
	jmp	LBB0_24
LBB0_20:
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	je	LBB0_24
## %bb.21:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_23
	jmp	LBB0_24
LBB0_22:
	movq	%r12, %rdi
	callq	_av_packet_unref
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_23:
	movl	%ebx, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ## @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_FF_MAX_EXTRADATA_SIZE,4,2      ## @FF_MAX_EXTRADATA_SIZE
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_extract_extradata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_extradata
_extract_extradata:                     ; @extract_extradata
	.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	x21, x1
	ldr	x22, [x0]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_6
LBB0_1:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_5
LBB0_2:
	ldr	x19, [x22, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_av_packet_ref
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w0, [x22, #8]
	mov	x1, x19
	bl	_av_bsf_send_packet
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
LBB0_5:
	mov	w20, #0
	b	LBB0_10
LBB0_6:
	bl	_extract_extradata_init
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_1
	b	LBB0_2
LBB0_8:
	mov	x20, x0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	mov	x0, x19
	bl	_av_packet_unref
LBB0_10:
	mov	x0, x20
	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
LBB0_11:
Lloh0:
	adrp	x21, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_PKT_DATA_NEW_EXTRADATA@GOTPAGEOFF]
Lloh2:
	adrp	x23, _FF_MAX_EXTRADATA_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FF_MAX_EXTRADATA_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_av_packet_unref
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_5
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #8]
	mov	x1, x19
	bl	_av_bsf_receive_packet
	tbnz	w0, #31, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_av_packet_get_side_data
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_av_assert0
	ldrsw	x8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_av_mallocz
	ldr	x8, [x22]
	str	x0, [x8, #8]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [sp, #12]
	mov	x1, x20
	bl	_memcpy
	ldr	w8, [sp, #12]
	ldr	x9, [x22]
	str	w8, [x9]
	b	LBB0_12
LBB0_20:
	mov	x20, x0
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w20, w0
	ccmp	w20, w8, #4, ne
	b.eq	LBB0_5
	b	LBB0_10
LBB0_21:
	mov	x0, x19
	bl	_av_packet_unref
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_PKT_DATA_NEW_EXTRADATA,4,2  ; @AV_PKT_DATA_NEW_EXTRADATA
	.comm	_FF_MAX_EXTRADATA_SIZE,4,2      ; @FF_MAX_EXTRADATA_SIZE
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_extract_extradata
.subsections_via_symbols
