	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_rap_request                ## -- Begin function smb_rap_request
	.p2align	4, 0x90
_smb_rap_request:                       ## @smb_rap_request
	.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	%rdi, %r14
	movq	(%rdi), %r15
	movl	8(%rdi), %eax
	movl	%eax, -60(%rbp)
	movl	12(%rdi), %r8d
	movl	%r8d, -56(%rbp)
	movq	56(%rdi), %r9
	leaq	-60(%rbp), %rax
	leaq	-56(%rbp), %rbx
	leaq	L_.str(%rip), %rcx
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	16(%r14)
	pushq	%rax
	pushq	%r9
	pushq	%rbx
	pushq	$0
	pushq	$0
	callq	_smb_t2_request
	addq	$48, %rsp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	56(%r14), %rbx
	movl	(%rbx), %edi
	callq	_le16toh
	movq	%rax, 48(%r14)
	movl	4(%rbx), %edi
	addq	$8, %rbx
	callq	_le16toh
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, 24(%r14)
	movl	$0, 32(%r14)
	cmpb	$101, (%r15)
	jne	LBB0_5
## %bb.2:
	incq	%r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r13
	movl	(%rbx), %edi
	callq	_le16toh
	movq	%rax, %r12
	movl	%r12d, 32(%r14)
	movq	24(%r14), %rbx
	addq	$2, %rbx
	movq	%rbx, 24(%r14)
	movq	%r15, -48(%rbp)
	incq	%r15
	cmpb	$101, (%r13)
	je	LBB0_3
## %bb.4:
	decq	%r15
LBB0_5:
	movq	%r15, (%r14)
	xorl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.6:
	movq	16(%r14), %rbx
	leaq	-52(%rbp), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	decl	%r12d
	je	LBB0_10
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	40(%r14), %rdi
	movq	%rdi, -48(%rbp)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	movslq	-52(%rbp), %rax
	addq	%rax, %rbx
	movq	-48(%rbp), %rdi
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rdi), %r13d
	testb	%r13b, %r13b
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdx
	callq	_smb_rap_parserpdata
	testl	%eax, %eax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpb	$122, %r13b
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	movzwl	(%rbx), %eax
	subl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%rbx)
	jmp	LBB0_16
LBB0_12:
	movq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_smb_error
	movq	_EBADRPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\PIPE\\LANMAN"

L_.str.1:                               ## @.str.1
	.asciz	"reply data mismath %s"

	.comm	_EBADRPC,4,2                    ## @EBADRPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_rap_request                ; -- Begin function smb_rap_request
	.p2align	2
_smb_rap_request:                       ; @smb_rap_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x22, [x0]
	ldp	w8, w4, [x0, #8]
	stp	w4, w8, [sp, #48]
	ldr	x5, [x0, #56]
	ldr	x8, [x0, #16]
	add	x9, sp, #52
	stp	x9, x8, [sp, #16]
	add	x8, sp, #48
	stp	x8, x5, [sp]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x1
	mov	w1, #0
	mov	w2, #0
	mov	w6, #0
	mov	x7, #0
	bl	_smb_t2_request
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x20, [x19, #56]
	ldr	w0, [x20]
	bl	_le16toh
	str	x0, [x19, #48]
	add	x23, x20, #8
	ldr	w0, [x20, #4]
	bl	_le16toh
	mov	x20, x0
	mov	w21, #0
	str	x23, [x19, #24]
	str	wzr, [x19, #32]
	ldrb	w8, [x22]
	cmp	w8, #101
	b.ne	LBB0_5
; %bb.2:
	add	x22, x22, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_le16toh
	mov	x21, x0
	str	w21, [x19, #32]
	ldr	x8, [x19, #24]
	add	x23, x8, #2
	str	x23, [x19, #24]
	str	x22, [sp, #56]
	ldrb	w8, [x22], #1
	cmp	w8, #101
	b.eq	LBB0_3
; %bb.4:
	sub	x22, x22, #1
LBB0_5:
	str	x22, [x19]
	cbz	w21, LBB0_15
; %bb.6:
	ldr	x22, [x19, #16]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	sub	w21, w21, #1
	cbz	w21, LBB0_16
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x0, [x19, #40]
	str	x0, [sp, #56]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldrsw	x8, [sp, #44]
	add	x22, x22, x8
	ldr	x0, [sp, #56]
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w23, [x0]
	cbz	w23, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x1, sp, #56
	add	x2, sp, #44
	bl	_smb_rap_parserpdata
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	w23, #122
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrh	w8, [x22]
	sub	w8, w8, w20
	str	w8, [x22]
	b	LBB0_9
LBB0_14:
	ldr	x2, [sp, #56]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_smb_error
Lloh4:
	adrp	x8, _EBADRPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBADRPC@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\PIPE\\LANMAN"

l_.str.1:                               ; @.str.1
	.asciz	"reply data mismath %s"

	.comm	_EBADRPC,4,2                    ; @EBADRPC
.subsections_via_symbols
