	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_co64
_mp4_write_box_co64:                    ## @mp4_write_box_co64
	.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, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_WRITE_U8
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U24
	movq	(%r14), %rax
	movq	_MP4_SAMPLE_TABLE_CO64@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_U32
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edx
	shll	$3, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_BYTES
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version"

L_.str.1:                               ## @.str.1
	.asciz	"flags"

	.comm	_MP4_SAMPLE_TABLE_CO64,8,3      ## @MP4_SAMPLE_TABLE_CO64
L_.str.2:                               ## @.str.2
	.asciz	"entry_count"

	.no_dead_strip	_mp4_write_box_co64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_write_box_co64
_mp4_write_box_co64:                    ; @mp4_write_box_co64
	.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	x19, x0
	ldp	x9, x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x22]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_WRITE_U8
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U24
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _MP4_SAMPLE_TABLE_CO64@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MP4_SAMPLE_TABLE_CO64@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w2, w8, #3
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_BYTES
LBB0_2:
	mov	x0, x19
	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	_STREAM_STATUS
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version"

l_.str.1:                               ; @.str.1
	.asciz	"flags"

	.comm	_MP4_SAMPLE_TABLE_CO64,8,3      ; @MP4_SAMPLE_TABLE_CO64
l_.str.2:                               ; @.str.2
	.asciz	"entry_count"

	.no_dead_strip	_mp4_write_box_co64
.subsections_via_symbols
