	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivf_write_packet
_ivf_write_packet:                      ## @ivf_write_packet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %r14
	movl	8(%rsi), %esi
	movq	%r14, %rdi
	callq	_avio_wl32
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_avio_wl64
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_avio_write
	movq	8(%r15), %rax
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	movl	%ecx, %esi
	subl	%edx, %esi
	addl	%esi, 16(%r15)
LBB0_2:
	incq	%rax
	movq	%rax, 8(%r15)
	movq	%rcx, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ivf_write_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivf_write_packet
_ivf_write_packet:                      ; @ivf_write_packet
	.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
	ldp	x21, x20, [x0]
	ldr	w1, [x1, #8]
	mov	x0, x20
	bl	_avio_wl32
	ldr	x1, [x19]
	mov	x0, x20
	bl	_avio_wl64
	ldp	w2, w1, [x19, #8]
	mov	x0, x20
	bl	_avio_write
	ldr	x9, [x21, #8]
	ldr	x8, [x19]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w10, [x21]
	ldr	w11, [x21, #16]
	sub	w10, w8, w10
	add	w10, w11, w10
	str	w10, [x21, #16]
LBB0_2:
	add	x9, x9, #1
	stp	x8, x9, [x21]
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ivf_write_packet
.subsections_via_symbols
