	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_usr_t2request              ## -- Begin function smb_usr_t2request
	.p2align	4, 0x90
_smb_usr_t2request:                     ## @smb_usr_t2request
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$4, (%rsi)
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_2:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_M_SMBTEMP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SSTOCP
	movq	48(%r15), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rcx
	callq	_smb_t2_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_4:
	movl	(%r15), %eax
	movl	%eax, (%r14)
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.5:
	movq	48(%r15), %rax
	movq	%rax, 56(%r14)
LBB0_6:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movl	$128, %esi
	callq	_smb_strdupin
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_14
LBB0_8:
	movq	$0, 48(%r14)
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	leaq	44(%r14), %rdi
	movl	28(%r15), %edx
	movl	32(%r15), %esi
	callq	_smb_cpdatain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	leaq	40(%r14), %rdi
	movl	20(%r15), %edx
	movl	24(%r15), %esi
	callq	_smb_cpdatain
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_smb_t2_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.12:
	callq	_m_fixhdr
	cmpl	4(%r15), %eax
	jg	LBB0_24
## %bb.13:
	leaq	32(%r14), %rdi
	movl	%eax, 4(%r15)
	movl	16(%r15), %esi
	movq	_MB_MUSER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_md_get_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_22
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_smb_strfree
LBB0_18:
	movq	%r14, %rdi
	callq	_smb_t2_done
LBB0_19:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_free
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	$0, 4(%r15)
LBB0_22:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:
	callq	_m_fixhdr
	cmpl	8(%r15), %eax
	jle	LBB0_26
LBB0_24:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_25:
	movl	$0, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_26:
	movq	%r14, %rdi
	addq	$24, %rdi
	movl	%eax, 8(%r15)
	movl	12(%r15), %esi
	movq	_MB_MUSER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_md_get_mem
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_SMBTEMP,4,2                  ## @M_SMBTEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_MB_MUSER,4,2                   ## @MB_MUSER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_usr_t2request              ; -- Begin function smb_usr_t2request
	.p2align	2
_smb_usr_t2request:                     ; @smb_usr_t2request
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh3:
	adrp	x23, _M_SMBTEMP@GOTPAGE
Lloh4:
	ldr	x23, [x23, _M_SMBTEMP@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w0, #64
	bl	_malloc
	mov	x19, x0
	mov	x0, x22
	bl	_SSTOCP
	mov	x1, x0
	ldr	x8, [x20, #48]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_smb_t2_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
	b	LBB0_19
LBB0_4:
	ldr	w8, [x20]
	str	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x20, #48]
	str	x8, [x19, #56]
LBB0_6:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_8
; %bb.7:
	mov	w1, #128
	bl	_smb_strdupin
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
LBB0_8:
	str	xzr, [x19, #48]
	ldur	d0, [x20, #4]
	stur	d0, [x19, #4]
	add	x0, x19, #44
	ldp	w2, w1, [x20, #28]
	bl	_smb_cpdatain
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.9:
	add	x0, x19, #40
	ldp	w2, w1, [x20, #20]
	bl	_smb_cpdatain
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.10:
	mov	x0, x19
	bl	_smb_t2_request
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.11:
	mov	x21, x19
	ldr	x0, [x21, #32]!
	cbz	x0, LBB0_21
; %bb.12:
	bl	_m_fixhdr
	ldr	w8, [x20, #4]
	cmp	w0, w8
	b.gt	LBB0_24
; %bb.13:
	mov	x2, x0
	str	w0, [x20, #4]
	ldr	w1, [x20, #16]
Lloh8:
	adrp	x8, _MB_MUSER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MB_MUSER@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_md_get_mem
	mov	x21, x0
	cbnz	w0, LBB0_16
	b	LBB0_22
LBB0_14:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w21, [x8]
LBB0_16:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_smb_strfree
LBB0_18:
	mov	x0, x19
	bl	_smb_t2_done
LBB0_19:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_free
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	str	wzr, [x20, #4]
LBB0_22:
	mov	x21, x19
	ldr	x0, [x21, #24]!
	cbz	x0, LBB0_25
; %bb.23:
	bl	_m_fixhdr
	ldr	w8, [x20, #8]
	cmp	w0, w8
	b.le	LBB0_26
LBB0_24:
Lloh13:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_15
LBB0_25:
	mov	w21, #0
	str	wzr, [x20, #8]
	b	LBB0_16
LBB0_26:
	mov	x2, x0
	str	w0, [x20, #8]
	ldr	w1, [x20, #12]
Lloh15:
	adrp	x8, _MB_MUSER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MB_MUSER@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_md_get_mem
	mov	x21, x0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_SMBTEMP,4,2                  ; @M_SMBTEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_MB_MUSER,4,2                   ; @MB_MUSER
.subsections_via_symbols
