	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_ReadHeader
_mp_ReadHeader:                         ## @mp_ReadHeader
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rdi
	callq	_MBUF_CTOP
	leaq	-12(%rbp), %rsi
	movl	%eax, %edi
	callq	_ua_ntohs
	movl	-12(%rbp), %eax
	testl	$12288, %eax                    ## imm = 0x3000
	jne	LBB0_2
## %bb.3:
	movl	%eax, %ecx
	shrl	$15, %ecx
	andl	$1, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %ecx
	shrl	$14, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%eax, 8(%rbx)
	movl	$2, %eax
	jmp	LBB0_6
LBB0_4:
	movq	%rsi, %rdi
	callq	_MBUF_CTOP
	leaq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_ua_ntohl
	movl	8(%rbx), %eax
	testl	$1056964608, %eax               ## imm = 0x3F000000
	je	LBB0_5
LBB0_2:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %ecx
	shrl	$31, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %ecx
	shrl	$30, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 8(%rbx)
	movl	$4, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Oops - MP header without required zero bits\n"

	.no_dead_strip	_mp_ReadHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mp_ReadHeader
lCPI0_0:
	.long	4294967281                      ; 0xfffffff1
	.long	4294967282                      ; 0xfffffff2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mp_ReadHeader:                         ; @mp_ReadHeader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x1
	bl	_MBUF_CTOP
	add	x1, sp, #12
	bl	_ua_ntohs
	ldr	w8, [sp, #12]
	tst	w8, #0x3000
	b.ne	LBB0_4
; %bb.2:
	dup.2s	v0, w8
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	str	d0, [x19]
	and	w8, w8, #0xfff
	str	w8, [x19, #8]
	mov	w0, #2
	b	LBB0_5
LBB0_3:
	mov	x0, x1
	bl	_MBUF_CTOP
	add	x1, x19, #8
	bl	_ua_ntohl
	ldr	w8, [x19, #8]
	tst	w8, #0x3f000000
	b.eq	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _LogWARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	lsr	w9, w8, #31
	ubfx	w10, w8, #30, #1
	stp	w9, w10, [x19]
	and	w8, w8, #0xffffff
	str	w8, [x19, #8]
	mov	w0, #4
	b	LBB0_5
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Oops - MP header without required zero bits\n"

	.no_dead_strip	_mp_ReadHeader
.subsections_via_symbols
