	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_pack_header               ## -- Begin function read_pack_header
	.p2align	4, 0x90
_read_pack_header:                      ## @read_pack_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	$16, %edx
	callq	_read_in_full
	cmpl	$16, %eax
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %r14
	movq	_PACK_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpq	%rax, %r14
	jne	LBB0_3
## %bb.4:
	movl	8(%rbx), %edi
	callq	_pack_version_ok
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_PH_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_PH_ERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_PH_ERROR_PACK_SIGNATURE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PH_ERROR_EOF,4,2               ## @PH_ERROR_EOF
	.comm	_PACK_SIGNATURE,4,2             ## @PACK_SIGNATURE
	.comm	_PH_ERROR_PACK_SIGNATURE,4,2    ## @PH_ERROR_PACK_SIGNATURE
	.comm	_PH_ERROR_PROTOCOL,4,2          ## @PH_ERROR_PROTOCOL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_pack_header               ; -- Begin function read_pack_header
	.p2align	2
_read_pack_header:                      ; @read_pack_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	w2, #16
	bl	_read_in_full
	cmp	w0, #16
	b.ne	LBB0_3
; %bb.1:
	ldr	x20, [x19]
Lloh0:
	adrp	x8, _PACK_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACK_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htonl
	cmp	x20, x0
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_pack_version_ok
Lloh3:
	adrp	x8, _PH_ERROR_PROTOCOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PH_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _PH_ERROR_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PH_ERROR_EOF@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _PH_ERROR_PACK_SIGNATURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PH_ERROR_PACK_SIGNATURE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PH_ERROR_EOF,4,2               ; @PH_ERROR_EOF
	.comm	_PACK_SIGNATURE,4,2             ; @PACK_SIGNATURE
	.comm	_PH_ERROR_PACK_SIGNATURE,4,2    ; @PH_ERROR_PACK_SIGNATURE
	.comm	_PH_ERROR_PROTOCOL,4,2          ; @PH_ERROR_PROTOCOL
.subsections_via_symbols
