	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_packetheader
_get_packetheader:                      ## @get_packetheader
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rcx, %rdi
	callq	_av_be2ne64
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	xorl	%edi, %edi
	movl	$8, %edx
	callq	_ff_crc04C11DB7_update
	movq	_ff_crc04C11DB7_update@GOTPCREL(%rip), %r15
	movq	%rax, -40(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ffio_init_checksum
	movq	%rbx, %rdi
	callq	_ffio_read_varlen
	movl	%eax, %r12d
	movq	%rbx, %rdi
	cmpl	$4096, %eax                     ## imm = 0x1000
	jle	LBB0_1
## %bb.2:
	callq	_avio_rb32
	movq	%rbx, %rdi
	callq	_ffio_get_checksum
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
	jmp	LBB0_3
LBB0_1:
	callq	_ffio_get_checksum
LBB0_3:
	movl	$0, %esi
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	%r15, %rsi
LBB0_5:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ffio_init_checksum
	movl	%r12d, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_packetheader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_packetheader
_get_packetheader:                      ; @get_packetheader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, x3
	mov	x20, x2
	mov	x19, x1
	bl	_av_be2ne64
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w0, #0
	mov	w2, #8
	bl	_ff_crc04C11DB7_update
	mov	x2, x0
Lloh0:
	adrp	x22, _ff_crc04C11DB7_update@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ff_crc04C11DB7_update@GOTPAGEOFF]
	str	x0, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_ffio_init_checksum
	mov	x0, x19
	bl	_ffio_read_varlen
	mov	x21, x0
	cmp	w0, #1, lsl #12                 ; =4096
	b.le	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_avio_rb32
	mov	x0, x19
	bl	_ffio_get_checksum
	cbz	x0, LBB0_4
; %bb.2:
	mov	w21, #-1
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_ffio_get_checksum
LBB0_4:
	cmp	w20, #0
	csel	x1, xzr, x22, eq
	mov	x0, x19
	mov	x2, #0
	bl	_ffio_init_checksum
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_packetheader
.subsections_via_symbols
