	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netbeui_print                  ## -- Begin function netbeui_print
	.p2align	4, 0x90
_netbeui_print:                         ## @netbeui_print
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,4), %r15
	movq	(%rdi), %rax
	cmpq	%rax, %r15
	cmovaq	%rax, %r15
	movl	16(%rdx), %edi
	callq	_ND_TCHECK
	movq	%rbx, %rdi
	callq	_EXTRACT_LE_16BITS
	movslq	16(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cltq
	leaq	(%rbx,%rax,4), %r13
	cmpq	%r15, %r13
	setae	-41(%rbp)                       ## 1-byte Folded Spill
	cmovaeq	%r15, %r13
	movq	_startbuf@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	cmpl	$2, 8(%r14)
	movslq	%r12d, %rax
	leaq	L_.str(%rip), %rdi
	cmovgeq	%rax, %rdi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.3(%rip), %r12
	cmovlq	%rax, %r12
	callq	_ND_PRINT
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_smb_fdata
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_25
## %bb.1:
	movq	%rax, %r12
	cmpl	$31, %ecx
	jg	LBB0_3
## %bb.2:
	movq	_nbf_strings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rcx,%rcx,2), %r14
	movq	16(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.7:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	callq	_ND_PRINT
	movq	_nbf_strings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_10
## %bb.8:
	movq	(%rax,%r14,8), %rdx
	testq	%rdx, %rdx
	jne	LBB0_9
	jmp	LBB0_12
LBB0_3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$1, 8(%rbx)
	jg	LBB0_6
## %bb.4:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.5(%rip), %rdx
LBB0_5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rcx, %r14
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_smb_fdata
	movq	%r14, %rcx
	movq	%rax, %r12
	cmpl	$2, 8(%rbx)
	jge	LBB0_14
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%rax,%r14,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_smb_fdata
	movq	%rax, %r12
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.8(%rip), %rdi
	callq	_ND_PRINT
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$2, 8(%rbx)
	jl	LBB0_26
LBB0_14:
	testq	%r12, %r12
	sete	%al
	orb	-41(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_25
## %bb.15:
	cmpl	$22, %ecx
	ja	LBB0_25
## %bb.16:
	movl	$6292224, %eax                  ## imm = 0x600300
	btl	%ecx, %eax
	jae	LBB0_25
## %bb.17:
	leaq	12(%r13), %rax
	cmpq	%r15, %rax
	jae	LBB0_25
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	xorl	%ebx, %ebx
	leaq	L_.str.9(%rip), %r12
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$126, %rbx
	ja	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	leaq	16(%r13), %rax
	addq	$4, %r13
	cmpq	%r15, %rax
	jb	LBB0_20
	jmp	LBB0_25
LBB0_21:
	movq	%rbx, %rdi
	callq	_ND_PRINT
LBB0_22:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_print_smb
LBB0_25:
	leaq	L_.str.8(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ND_PRINT                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_startbuf,8,3                   ## @startbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NBF Packet: "

L_.str.1:                               ## @.str.1
	.asciz	"[P5]#"

L_.str.3:                               ## @.str.3
	.asciz	"Length=[d] Signature=[w] Command=[B]\n#"

	.comm	_nbf_strings,8,3                ## @nbf_strings
L_.str.4:                               ## @.str.4
	.asciz	"Unknown NBF Command#"

L_.str.5:                               ## @.str.5
	.asciz	"Unknown NBF Command\n"

L_.str.8:                               ## @.str.8
	.asciz	"\n"

L_.str.9:                               ## @.str.9
	.asciz	"\377SMB"

	.comm	_tstr,4,2                       ## @tstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netbeui_print                  ; -- Begin function netbeui_print
	.p2align	2
_netbeui_print:                         ; @netbeui_print
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	add	x8, x2, w3, sxtw #2
	ldr	x9, [x0]
	cmp	x8, x9
	csel	x19, x9, x8, hi
	ldr	w0, [x2, #16]
	bl	_ND_TCHECK
	mov	x0, x22
	bl	_EXTRACT_LE_16BITS
	ldrsw	x24, [x22, #16]
	add	x8, x22, w0, sxtw #2
	cmp	x8, x19
	csel	x21, x8, x19, lo
	cset	w25, hs
Lloh0:
	adrp	x8, _startbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _startbuf@GOTPAGEOFF]
Lloh2:
	str	x22, [x8]
	ldr	w8, [x20, #8]
	sxtw	x9, w23
Lloh3:
	adrp	x10, l_.str@PAGE
Lloh4:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #2
	csel	x0, x10, x9, lt
Lloh5:
	adrp	x8, l_.str.3@PAGE
Lloh6:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x23, x9, x8, lt
	bl	_ND_PRINT
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	mov	w4, #0
	bl	_smb_fdata
	cbz	x0, LBB0_24
; %bb.1:
	mov	x22, x0
	cmp	w24, #31
	b.gt	LBB0_5
; %bb.2:
Lloh9:
	adrp	x23, _nbf_strings@GOTPAGE
Lloh10:
	ldr	x23, [x23, _nbf_strings@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w26, [x20, #8]
	bl	_ND_PRINT
	ldr	x8, [x23]
	mov	w9, #24
	cmp	w26, #1
	b.gt	LBB0_8
; %bb.4:
	mul	x9, x24, x9
	ldr	x2, [x8, x9]
	cbnz	x2, LBB0_9
	b	LBB0_10
LBB0_5:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.gt	LBB0_7
; %bb.6:
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_8:
	madd	x8, x24, x9, x8
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_21
LBB0_9:
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	mov	w4, #0
	bl	_smb_fdata
	mov	x22, x0
LBB0_10:
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.ge	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	x22, #0
	cset	w8, eq
	orr	w8, w8, w25
	tbnz	w8, #0, LBB0_24
; %bb.13:
	cmp	w24, #22
	b.hi	LBB0_24
; %bb.14:
	mov	w8, #1
	lsl	w8, w8, w24
	mov	w9, #768
	movk	w9, #96, lsl #16
	tst	w8, w9
	b.eq	LBB0_24
; %bb.15:
	add	x8, x21, #12
	cmp	x8, x19
	b.hs	LBB0_24
; %bb.16:
Lloh15:
	adrp	x1, l_.str.9@PAGE
Lloh16:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_23
; %bb.17:
	mov	x22, #0
Lloh17:
	adrp	x23, l_.str.9@PAGE
Lloh18:
	add	x23, x23, l_.str.9@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	x22, #126
	b.hi	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	add	x8, x21, #16
	add	x21, x21, #4
	cmp	x8, x19
	b.lo	LBB0_18
	b	LBB0_24
LBB0_21:
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_ND_PRINT
	b	LBB0_10
LBB0_22:
	mov	x0, x22
	bl	_ND_PRINT
LBB0_23:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_print_smb
LBB0_24:
Lloh21:
	adrp	x0, l_.str.8@PAGE
Lloh22:
	add	x0, x0, l_.str.8@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ND_PRINT
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_startbuf,8,3                   ; @startbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NBF Packet: "

l_.str.1:                               ; @.str.1
	.asciz	"[P5]#"

l_.str.3:                               ; @.str.3
	.asciz	"Length=[d] Signature=[w] Command=[B]\n#"

	.comm	_nbf_strings,8,3                ; @nbf_strings
l_.str.4:                               ; @.str.4
	.asciz	"Unknown NBF Command#"

l_.str.5:                               ; @.str.5
	.asciz	"Unknown NBF Command\n"

l_.str.8:                               ; @.str.8
	.asciz	"\n"

l_.str.9:                               ; @.str.9
	.asciz	"\377SMB"

	.comm	_tstr,4,2                       ; @tstr
.subsections_via_symbols
