	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_isom_write_av1c             ## -- Begin function ff_isom_write_av1c
	.p2align	4, 0x90
_ff_isom_write_av1c:                    ## @ff_isom_write_av1c
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-104(%rbp), %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	-96(%rbp), %rdi
	callq	_avio_open_dyn_buf
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_21
## %bb.5:
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -84(%rbp)
	leaq	-96(%rbp), %rax
	je	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_avio_write
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %eax
	leaq	(%rbx,%rax,4), %rbx
	subl	%r15d, %r12d
	jle	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-156(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	leaq	-84(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	leaq	-108(%rbp), %r8
	leaq	-160(%rbp), %r9
	callq	_parse_obu_header
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-108(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-84(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jg	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	-112(%rbp), %rax
	leaq	(%rbx,%rax,4), %rsi
	leaq	-144(%rbp), %rdi
	callq	_parse_sequence_header
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	leaq	-104(%rbp), %rax
	jmp	LBB0_16
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_26
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_26
LBB0_7:
	movl	%r15d, %r14d
	jmp	LBB0_21
LBB0_18:
	movq	-104(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_avio_close_dyn_buf
	testl	%eax, %eax
	je	LBB0_12
## %bb.19:
	movl	%eax, %r12d
	leaq	-164(%rbp), %rbx
	leaq	-64(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_init_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	-144(%rbp), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_put_bits
	movl	-140(%rbp), %edx
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	-136(%rbp), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	xorl	%edx, %edx
	cmpl	$9, -132(%rbp)
	setge	%dl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	xorl	%edx, %edx
	cmpl	$12, -132(%rbp)
	sete	%dl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	-128(%rbp), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	-124(%rbp), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	-120(%rbp), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	-116(%rbp), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_avio_write
	movq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_avio_write
	movq	-96(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_avio_close_dyn_buf
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_avio_write
	jmp	LBB0_21
LBB0_12:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_21:
	cmpq	$0, -80(%rbp)
	je	LBB0_22
## %bb.23:
	cmpq	$0, -72(%rbp)
	je	LBB0_24
LBB0_25:
	movq	-80(%rbp), %rdi
	callq	_av_free
	movq	-72(%rbp), %rdi
	callq	_av_free
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-104(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_avio_close_dyn_buf
	cmpq	$0, -72(%rbp)
	jne	LBB0_25
LBB0_24:
	movq	-96(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_avio_close_dyn_buf
	jmp	LBB0_25
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_isom_write_av1c             ; -- Begin function ff_isom_write_av1c
	.p2align	2
_ff_isom_write_av1c:                    ; @ff_isom_write_av1c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [x29, #-80]
	str	xzr, [sp, #88]
	stp	xzr, xzr, [sp, #32]
	cmp	w2, #0
	b.le	LBB0_15
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	sub	x0, x29, #80
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_16
; %bb.2:
	add	x0, sp, #88
	bl	_avio_open_dyn_buf
	mov	x19, x0
	tbnz	w0, #31, LBB0_22
; %bb.3:
	mov	w24, #0
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, sp, #88
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x8]
	mov	x1, x22
	mov	x2, x23
	bl	_avio_write
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w21, w21, w23
	add	x22, x22, w23, uxtw #2
	cmp	w21, #0
	b.le	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #16
	add	x6, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_parse_obu_header
	mov	x23, x0
	tbnz	w0, #31, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [sp, #28]
	cbz	w2, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, #1
	b.ge	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [sp, #24]
	add	x1, x22, x8, lsl #2
	add	x0, sp, #56
	bl	_parse_sequence_header
	mov	x19, x0
	tbnz	w0, #31, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	sub	x8, x29, #80
	b	LBB0_6
LBB0_15:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	b	LBB0_25
LBB0_16:
	mov	x19, x0
	b	LBB0_25
LBB0_17:
	mov	x19, x23
	b	LBB0_22
LBB0_18:
	ldur	x0, [x29, #-80]
	add	x1, sp, #40
	bl	_avio_close_dyn_buf
	cbz	w0, LBB0_21
; %bb.19:
	mov	x21, x0
	add	x0, sp, #52
	sub	x1, x29, #72
	mov	w2, #16
	bl	_init_put_bits
	add	x0, sp, #52
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #52
	mov	w1, #7
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [sp, #56]
	add	x0, sp, #52
	mov	w1, #3
	bl	_put_bits
	ldr	w2, [sp, #60]
	add	x0, sp, #52
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [sp, #64]
	add	x0, sp, #52
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [sp, #68]
	cmp	w8, #8
	cset	w2, gt
	add	x0, sp, #52
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [sp, #68]
	cmp	w8, #12
	cset	w2, eq
	add	x0, sp, #52
	mov	w1, #1
	bl	_put_bits
	ldr	w2, [sp, #72]
	add	x0, sp, #52
	mov	w1, #1
	bl	_put_bits
	ldr	w2, [sp, #76]
	add	x0, sp, #52
	mov	w1, #1
	bl	_put_bits
	ldr	w2, [sp, #80]
	add	x0, sp, #52
	mov	w1, #1
	bl	_put_bits
	ldr	w2, [sp, #84]
	add	x0, sp, #52
	mov	w1, #2
	bl	_put_bits
	add	x0, sp, #52
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #52
	bl	_flush_put_bits
	sub	x1, x29, #72
	mov	x0, x20
	mov	w2, #16
	bl	_avio_write
	ldr	x1, [sp, #40]
	mov	x0, x20
	mov	x2, x21
	bl	_avio_write
	ldr	x0, [sp, #88]
	add	x1, sp, #32
	bl	_avio_close_dyn_buf
	cbz	w0, LBB0_22
; %bb.20:
	mov	x2, x0
	ldr	x1, [sp, #32]
	mov	x0, x20
	bl	_avio_write
	b	LBB0_22
LBB0_21:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_22:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_27
; %bb.23:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_28
LBB0_24:
	ldr	x0, [sp, #40]
	bl	_av_free
	ldr	x0, [sp, #32]
	bl	_av_free
LBB0_25:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.26:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_27:
	ldur	x0, [x29, #-80]
	add	x1, sp, #40
	bl	_avio_close_dyn_buf
	ldr	x8, [sp, #32]
	cbnz	x8, LBB0_24
LBB0_28:
	ldr	x0, [sp, #88]
	add	x1, sp, #32
	bl	_avio_close_dyn_buf
	b	LBB0_24
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
