	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_writer_write_sample_to_temp
_mp4_writer_write_sample_to_temp:       ## @mp4_writer_write_sample_to_temp
	.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	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	8(%rsi), %r15
	subq	8(%r12), %r15
	movq	_VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	andl	(%rsi), %eax
	movq	24(%rsi), %rsi
	setne	%bl
	shll	$7, %ebx
	movq	(%r12), %rdi
	callq	_vc_container_io_write_be_uint32
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_vc_container_io_write_be_uint32
	movq	(%r12), %rdi
	movl	16(%r14), %esi
	subl	8(%r14), %esi
	callq	_vc_container_io_write_be_uint24
	movq	(%r12), %rdi
	orl	4(%r14), %ebx
	movl	%ebx, %esi
	callq	_vc_container_io_write_uint8
	movq	8(%r14), %rax
	movq	%rax, 8(%r12)
	movq	(%r12), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ## @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.no_dead_strip	_mp4_writer_write_sample_to_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_writer_write_sample_to_temp
_mp4_writer_write_sample_to_temp:       ; @mp4_writer_write_sample_to_temp
	.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, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x1, #8]
	ldp	x0, x9, [x21]
	sub	x20, x8, x9
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_PACKET_FLAG_KEYFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w22, ne
	ldr	x1, [x1, #24]
	bl	_vc_container_io_write_be_uint32
	ldr	x0, [x21]
	mov	x1, x20
	bl	_vc_container_io_write_be_uint32
	ldr	x0, [x21]
	ldr	w8, [x19, #16]
	ldr	w9, [x19, #8]
	sub	w1, w8, w9
	bl	_vc_container_io_write_be_uint24
	ldr	x0, [x21]
	ldr	w8, [x19, #4]
	orr	w1, w8, w22, lsl #7
	bl	_vc_container_io_write_uint8
	ldr	x8, [x19, #8]
	str	x8, [x21, #8]
	ldr	x8, [x21]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_PACKET_FLAG_KEYFRAME,4,2 ; @VC_CONTAINER_PACKET_FLAG_KEYFRAME
	.no_dead_strip	_mp4_writer_write_sample_to_temp
.subsections_via_symbols
