	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_extradata_av1
_extract_extradata_av1:                 ## @extract_extradata_av1
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	leaq	_extract_extradata_av1.extradata_obu_types(%rip), %rdi
	callq	_FF_ARRAY_ELEMS
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_ff_av1_packet_split
	testl	%eax, %eax
	js	LBB0_29
## %bb.1:
	cmpl	$0, (%rbx)
	jle	LBB0_26
## %bb.2:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$8, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	(%r14,%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$128, -8(%r14,%r12)
	movl	$1, %eax
	cmovel	%eax, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$24, %r12
	cmpq	%rax, %r15
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	movl	-8(%r14,%r12), %edx
	leaq	_extract_extradata_av1.extradata_obu_types(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_val_in_array
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	(%r14,%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_8:
	xorl	%eax, %eax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_29
## %bb.10:
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.11:
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_av_buffer_alloc
	movq	%rax, -120(%rbp)
	testq	%rax, %rax
	je	LBB0_28
## %bb.12:
	movq	%rax, %rbx
	shlq	$2, %r15
	addq	(%rax), %r15
	movq	(%r14), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_13:
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_14:
	movslq	%r15d, %r12
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.15:
	movq	%rax, %rbx
	leaq	(%rax,%r12,4), %rdi
	movq	(%r14), %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_24
## %bb.16:
	movq	%rbx, %r12
	movl	$16, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15,%rbx), %esi
	movq	-8(%r15,%rbx), %rdx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_memcpy
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-8(%r15,%rbx), %rax
	leaq	(%r14,%rax,4), %r14
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jge	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx), %r15
	movl	-16(%r15,%rbx), %edx
	leaq	_extract_extradata_av1.extradata_obu_types(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%rcx, %r14
	callq	_val_in_array
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15,%rbx), %esi
	movq	-8(%r15,%rbx), %rdx
	movq	%r12, %rdi
	callq	_memcpy
	movq	-8(%r15,%rbx), %rax
	leaq	(%r12,%rax,4), %r12
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, %rcx
	jmp	LBB0_19
LBB0_24:
	cmpq	$0, (%rcx)
	je	LBB0_26
## %bb.25:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	16(%rbx), %rdi
	callq	_av_buffer_unref
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_27:
	leaq	-120(%rbp), %rdi
	callq	_av_buffer_unref
LBB0_28:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_29:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @extract_extradata_av1.extradata_obu_types
_extract_extradata_av1.extradata_obu_types:
	.long	128                             ## 0x80
	.long	129                             ## 0x81

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_extract_extradata_av1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_extradata_av1
_extract_extradata_av1:                 ; @extract_extradata_av1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	ldr	x27, [x0]
Lloh0:
	adrp	x0, _extract_extradata_av1.extradata_obu_types@PAGE
Lloh1:
	add	x0, x0, _extract_extradata_av1.extradata_obu_types@PAGEOFF
	bl	_FF_ARRAY_ELEMS
	mov	x20, x0
	add	x21, x27, #8
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	mov	x0, x21
	mov	x3, x24
	bl	_ff_av1_packet_split
	tbnz	w0, #31, LBB0_24
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.2:
	stp	x23, x22, [sp, #24]             ; 16-byte Folded Spill
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x26, #0
	mov	x23, #0
	mov	w22, #0
	mov	w25, #0
	mov	w28, #0
Lloh2:
	adrp	x24, _extract_extradata_av1.extradata_obu_types@PAGE
Lloh3:
	add	x24, x24, _extract_extradata_av1.extradata_obu_types@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x19, x26
	ldr	w9, [x8, #8]
	add	w22, w22, w9
	ldr	w8, [x8]
	cmp	w8, #128
	csinc	w25, w25, wzr, ne
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x26, x26, #24
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x27, #16]
	ldr	w2, [x19, x26]
	mov	x0, x24
	mov	x1, x20
	bl	_val_in_array
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x19, x26
	ldr	w8, [x8, #8]
	add	w28, w28, w8
	b	LBB0_4
LBB0_8:
	cmp	w22, #0
	ccmp	w25, #0, #4, ne
	b.eq	LBB0_23
; %bb.9:
	ldr	x8, [x27]
Lloh4:
	adrp	x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	cbz	x8, LBB0_12
; %bb.10:
	sxtw	x19, w28
	ldr	x8, [x23]
	add	x0, x8, x19
	bl	_av_buffer_alloc
	str	x0, [sp, #40]
	cbz	x0, LBB0_26
; %bb.11:
	mov	x24, x0
	ldr	x8, [x0]
	add	x0, x8, x19, lsl #2
	ldr	x2, [x23]
	mov	w1, #0
	bl	_memset
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x25, [x24]
	b	LBB0_13
LBB0_12:
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
                                        ; implicit-def: $x25
LBB0_13:
	sxtw	x19, w22
	ldr	x8, [x23]
	add	x0, x8, x19
	bl	_av_malloc
	cbz	x0, LBB0_25
; %bb.14:
	mov	x26, x0
	add	x0, x0, x19, lsl #2
	ldr	x2, [x23]
	mov	w1, #0
	bl	_memset
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x26, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	w22, [x8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.15:
	mov	x23, #0
	mov	x24, #0
Lloh6:
	adrp	x22, _extract_extradata_av1.extradata_obu_types@PAGE
Lloh7:
	add	x22, x22, _extract_extradata_av1.extradata_obu_types@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x19, x19, x23
	ldr	w1, [x19, #16]
	ldr	x2, [x19, #8]
	mov	x0, x26
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x26, x26, x8, lsl #2
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_21
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x27, #16]
	ldr	w2, [x19, x23]
	mov	x0, x22
	mov	x1, x20
	bl	_val_in_array
	cbnz	x0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x19, x19, x23
	ldr	w1, [x19, #16]
	ldr	x2, [x19, #8]
	mov	x0, x25
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x25, x25, x8, lsl #2
	b	LBB0_17
LBB0_21:
	ldr	x8, [x27]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	add	x0, x19, #16
	bl	_av_buffer_unref
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x9]
	stp	x8, x9, [x19, #8]
	str	w28, [x19]
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_25:
	add	x0, sp, #40
	bl	_av_buffer_unref
LBB0_26:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @extract_extradata_av1.extradata_obu_types
_extract_extradata_av1.extradata_obu_types:
	.long	128                             ; 0x80
	.long	129                             ; 0x81

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_extract_extradata_av1
.subsections_via_symbols
