	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av1_frame_split_init
_av1_frame_split_init:                  ## @av1_frame_split_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, %r14
	movq	8(%rdi), %rbx
	xorl	%eax, %eax
	callq	_av_packet_alloc
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_AV_CODEC_ID_AV1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ff_cbs_init
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_decompose_unit_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rax
	movq	%rdi, 8(%rax)
	callq	_FF_ARRAY_ELEMS
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	movq	(%r14), %rdx
	xorl	%r15d, %r15d
	cmpl	$0, (%rdx)
	je	LBB0_7
## %bb.4:
	leaq	12(%rbx), %r12
	movq	%r12, %rsi
	callq	_ff_cbs_read_extradata
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_6:
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_ff_cbs_fragment_reset
	jmp	LBB0_7
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_CODEC_ID_AV1,4,2            ## @AV_CODEC_ID_AV1
	.comm	_decompose_unit_types,8,3       ## @decompose_unit_types
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse extradata.\n"

	.no_dead_strip	_av1_frame_split_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function av1_frame_split_init
_av1_frame_split_init:                  ; @av1_frame_split_init
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	bl	_av_packet_alloc
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _AV_CODEC_ID_AV1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_AV1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ff_cbs_init
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _decompose_unit_types@GOTPAGE
Lloh4:
	ldr	x8, [x8, _decompose_unit_types@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ldr	x8, [x19]
	str	x0, [x8, #8]
	bl	_FF_ARRAY_ELEMS
	mov	x8, x0
	ldr	x0, [x19]
	str	w8, [x0]
	ldr	x2, [x20]
	ldr	w8, [x2]
	cbz	w8, LBB0_6
; %bb.3:
	add	x21, x19, #12
	mov	x1, x21
	bl	_ff_cbs_read_extradata
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_5:
	ldr	x0, [x19]
	mov	x1, x21
	bl	_ff_cbs_fragment_reset
LBB0_6:
	mov	w0, #0
LBB0_7:
	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_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_CODEC_ID_AV1,4,2            ; @AV_CODEC_ID_AV1
	.comm	_decompose_unit_types,8,3       ; @decompose_unit_types
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse extradata.\n"

	.no_dead_strip	_av1_frame_split_init
.subsections_via_symbols
