	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_packet
_put_packet:                            ## @put_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movq	%rdx, %rdi
	movq	%rsi, %rbx
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_avio_close_dyn_buf
	movl	%eax, %r14d
	leal	(%r14,%r15,4), %r13d
	cmpl	$4097, %r13d                    ## imm = 0x1001
	jl	LBB0_2
## %bb.1:
	movq	_ff_crc04C11DB7_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ffio_init_checksum
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb64
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_ff_put_v
	movq	%rbx, %rdi
	callq	_ffio_get_checksum
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_avio_wl32
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_4:
	movq	_ff_crc04C11DB7_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ffio_init_checksum
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_avio_write
	movq	%rbx, %rdi
	callq	_ffio_get_checksum
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_avio_wl32
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_avio_wb64
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_ff_put_v
	testl	%r15d, %r15d
	jne	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_avio_write
LBB0_6:
	movq	-48(%rbp), %rdi
	callq	_av_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_crc04C11DB7_update,4,2      ## @ff_crc04C11DB7_update
	.no_dead_strip	_put_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_packet
_put_packet:                            ; @put_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x0, x2
	mov	x19, x1
	str	xzr, [sp, #8]
	add	x1, sp, #8
	bl	_avio_close_dyn_buf
	mov	x20, x0
	add	w23, w0, w21, lsl #2
Lloh0:
	adrp	x24, _ff_crc04C11DB7_update@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ff_crc04C11DB7_update@GOTPAGEOFF]
	cmp	w23, #1, lsl #12                ; =4096
	b.le	LBB0_3
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_ffio_init_checksum
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb64
	mov	x0, x19
	mov	x1, x23
	bl	_ff_put_v
	mov	x0, x19
	bl	_ffio_get_checksum
	mov	x1, x0
	mov	x0, x19
	bl	_avio_wl32
	cbz	w21, LBB0_4
LBB0_2:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_ffio_init_checksum
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_avio_write
	mov	x0, x19
	bl	_ffio_get_checksum
	mov	x1, x0
	mov	x0, x19
	bl	_avio_wl32
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb64
	mov	x0, x19
	mov	x1, x23
	bl	_ff_put_v
	cbnz	w21, LBB0_2
LBB0_4:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_avio_write
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_av_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_crc04C11DB7_update,4,2      ; @ff_crc04C11DB7_update
	.no_dead_strip	_put_packet
.subsections_via_symbols
