	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msg_recv_hdr
_msg_recv_hdr:                          ## @msg_recv_hdr
	.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	$8, %r14d
	movl	$8, %edx
	callq	__recv
	cmpl	$8, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	cmpl	$7, %edx
	ja	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_4:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid version %d or length %d\n"

	.no_dead_strip	_msg_recv_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msg_recv_hdr
_msg_recv_hdr:                          ; @msg_recv_hdr
	.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, #8
	bl	__recv
	cmp	w0, #8
	b.ne	LBB0_3
; %bb.1:
	ldp	w1, w2, [x19]
	cmp	w1, #0
	ccmp	w2, #7, #0, eq
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	w0, #8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid version %d or length %d\n"

	.no_dead_strip	_msg_recv_hdr
.subsections_via_symbols
