	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbssn_recvhdr
_nbssn_recvhdr:                         ## @nbssn_recvhdr
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%ecx, -32(%rbp)
	movq	(%rdi), %rbx
	leaq	-28(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -88(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, -40(%rbp)
	movabsq	$17179869185, %rax              ## imm = 0x400000001
	movq	%rax, -72(%rbp)
	movq	_UIO_SYSSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_UIO_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%r8, -64(%rbp)
	movl	(%rbx), %edi
	callq	_CURVNET_SET
	leaq	-72(%rbp), %rdx
	leaq	-32(%rbp), %r9
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_soreceive
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_CURVNET_RESTORE
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.1:
	cmpl	$0, -68(%rbp)
	jle	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_SMBSDEBUG
	movq	_EPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	-28(%rbp), %edi
	callq	_ntohl
	movl	%eax, %ecx
	shrl	$24, %ecx
	movl	%ecx, (%r15)
	andl	$131071, %eax                   ## imm = 0x1FFFF
	movl	%eax, -28(%rbp)
	movq	_SMB_MAXPKTLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_SMBERROR
	movq	_EFBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIO_SYSSPACE,4,2               ## @UIO_SYSSPACE
	.comm	_UIO_READ,4,2                   ## @UIO_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"short reply\n"

	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_SMB_MAXPKTLEN,4,2              ## @SMB_MAXPKTLEN
L_.str.1:                               ## @.str.1
	.asciz	"packet too long (%d)\n"

	.comm	_EFBIG,4,2                      ## @EFBIG
	.no_dead_strip	_nbssn_recvhdr
.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 nbssn_recvhdr
lCPI0_0:
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nbssn_recvhdr:                         ; @nbssn_recvhdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x19, x1
	stur	w3, [x29, #-36]
	ldr	x21, [x0]
	add	x8, sp, #12
	str	x8, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #16]
	add	x8, sp, #16
	str	x8, [sp, #64]
Lloh0:
	adrp	x8, _UIO_SYSSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIO_SYSSPACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _UIO_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UIO_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #32]
	stp	x4, xzr, [sp, #40]
	ldr	w0, [x21]
	bl	_CURVNET_SET
	add	x2, sp, #32
	sub	x5, x29, #36
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	mov	x4, #0
	bl	_soreceive
	mov	x21, x0
	bl	_CURVNET_RESTORE
	cbnz	w21, LBB0_6
; %bb.1:
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SMBSDEBUG
Lloh10:
	adrp	x8, _EPIPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_3:
	ldr	w0, [sp, #12]
	bl	_ntohl
	lsr	w8, w0, #24
	str	w8, [x20]
	and	w1, w0, #0x1ffff
	str	w1, [sp, #12]
Lloh13:
	adrp	x8, _SMB_MAXPKTLEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMB_MAXPKTLEN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w1, w8
	b.le	LBB0_5
; %bb.4:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SMBERROR
Lloh18:
	adrp	x8, _EFBIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_5:
	mov	w21, #0
	str	w1, [x19]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_UIO_SYSSPACE,4,2               ; @UIO_SYSSPACE
	.comm	_UIO_READ,4,2                   ; @UIO_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"short reply\n"

	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_SMB_MAXPKTLEN,4,2              ; @SMB_MAXPKTLEN
l_.str.1:                               ; @.str.1
	.asciz	"packet too long (%d)\n"

	.comm	_EFBIG,4,2                      ; @EFBIG
	.no_dead_strip	_nbssn_recvhdr
.subsections_via_symbols
