	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_rq_new
_smb_rq_new:                            ## @smb_rq_new
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	56(%rdi), %rbx
	leaq	48(%rdi), %r13
	movq	$0, 40(%rdi)
	movq	%r13, %rdi
	callq	_mb_done
	leaq	32(%r14), %rdi
	callq	_md_done
	movq	%r13, %rdi
	callq	_mb_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_SMB_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMB_SIGLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MB_MSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_mb_put_mem
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_mb_put_uint8
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint32le
	movl	4(%rbx), %esi
	movq	%r13, %rdi
	callq	_mb_put_uint8
	movq	_SMB_COM_TRANSACTION@GOTPCREL(%rip), %rax
	movq	_SMB_COM_TRANSACTION_SECONDARY@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	movq	_SMB_FLAGS2_UNICODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	$-1, %edx
	cmovel	%ecx, %edx
	cmpl	%r12d, (%rax)
	cmovel	%ecx, %edx
	movl	$-1, %eax
	andl	(%rbx), %edx
	movq	_SMB_COM_NEGOTIATE@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	movq	_SMB_FLAGS2_SECURITY_SIGNATURE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	cmovnel	%eax, %ebx
	andl	%edx, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_mb_put_uint16le
	testl	%ebx, (%r12)
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint16le
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_mb_reserve
	movq	%rax, 24(%r14)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mb_put_uint16le
	jmp	LBB0_4
LBB0_2:
	movq	_tzero@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MB_MSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	$12, %edx
	callq	_mb_put_mem
	movq	$0, 24(%r14)
LBB0_4:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_mb_reserve
	movq	%rax, 16(%r14)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_mb_put_uint16le
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_mb_reserve
	movq	%rax, 8(%r14)
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_mb_put_uint16le
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMB_SIGNATURE,4,2              ## @SMB_SIGNATURE
	.comm	_SMB_SIGLEN,4,2                 ## @SMB_SIGLEN
	.comm	_MB_MSYSTEM,4,2                 ## @MB_MSYSTEM
	.comm	_SMB_COM_TRANSACTION,4,2        ## @SMB_COM_TRANSACTION
	.comm	_SMB_COM_TRANSACTION_SECONDARY,4,2 ## @SMB_COM_TRANSACTION_SECONDARY
	.comm	_SMB_FLAGS2_UNICODE,4,2         ## @SMB_FLAGS2_UNICODE
	.comm	_SMB_COM_NEGOTIATE,4,2          ## @SMB_COM_NEGOTIATE
	.comm	_SMB_FLAGS2_SECURITY_SIGNATURE,4,2 ## @SMB_FLAGS2_SECURITY_SIGNATURE
	.comm	_tzero,4,2                      ## @tzero
	.no_dead_strip	_smb_rq_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_rq_new
_smb_rq_new:                            ; @smb_rq_new
	.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
	mov	x22, x1
	mov	x20, x0
	ldr	x24, [x0, #56]
	add	x19, x0, #48
	str	xzr, [x0, #40]
	mov	x0, x19
	bl	_mb_done
	add	x0, x20, #32
	bl	_md_done
	mov	x0, x19
	bl	_mb_init
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _SMB_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMB_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SMB_SIGLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMB_SIGLEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x23, _MB_MSYSTEM@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MB_MSYSTEM@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_mb_put_mem
	mov	x0, x19
	mov	x1, x22
	bl	_mb_put_uint8
	mov	x0, x19
	mov	w1, #0
	bl	_mb_put_uint32le
	ldr	w1, [x24, #4]
	mov	x0, x19
	bl	_mb_put_uint8
	ldr	w8, [x24]
Lloh8:
	adrp	x9, _SMB_COM_TRANSACTION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SMB_COM_TRANSACTION@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SMB_COM_TRANSACTION_SECONDARY@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SMB_COM_TRANSACTION_SECONDARY@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w10, w22
	ccmp	w9, w22, #4, ne
Lloh14:
	adrp	x9, _SMB_FLAGS2_UNICODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SMB_FLAGS2_UNICODE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	mov	w10, #-1
	csinv	w9, w10, w9, ne
	and	w8, w9, w8
Lloh17:
	adrp	x9, _SMB_COM_NEGOTIATE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SMB_COM_NEGOTIATE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x24, _SMB_FLAGS2_SECURITY_SIGNATURE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _SMB_FLAGS2_SECURITY_SIGNATURE@GOTPAGEOFF]
	ldr	w11, [x24]
	cmp	w9, w22
	csinv	w9, w10, w11, ne
	and	w22, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_mb_put_uint16le
	ldr	w8, [x24]
	tst	w22, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_mb_put_uint16le
	mov	x0, x19
	mov	w1, #8
	bl	_mb_reserve
	str	x0, [x20, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_mb_put_uint16le
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x8, _tzero@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tzero@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #12
	bl	_mb_put_mem
	str	xzr, [x20, #24]
LBB0_4:
	mov	x0, x19
	mov	w1, #4
	bl	_mb_reserve
	str	x0, [x20, #16]
	mov	x0, x19
	mov	w1, #1
	bl	_mb_put_uint16le
	mov	x0, x19
	mov	w1, #4
	bl	_mb_reserve
	str	x0, [x20, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mb_put_uint16le
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SMB_SIGNATURE,4,2              ; @SMB_SIGNATURE
	.comm	_SMB_SIGLEN,4,2                 ; @SMB_SIGLEN
	.comm	_MB_MSYSTEM,4,2                 ; @MB_MSYSTEM
	.comm	_SMB_COM_TRANSACTION,4,2        ; @SMB_COM_TRANSACTION
	.comm	_SMB_COM_TRANSACTION_SECONDARY,4,2 ; @SMB_COM_TRANSACTION_SECONDARY
	.comm	_SMB_FLAGS2_UNICODE,4,2         ; @SMB_FLAGS2_UNICODE
	.comm	_SMB_COM_NEGOTIATE,4,2          ; @SMB_COM_NEGOTIATE
	.comm	_SMB_FLAGS2_SECURITY_SIGNATURE,4,2 ; @SMB_FLAGS2_SECURITY_SIGNATURE
	.comm	_tzero,4,2                      ; @tzero
	.no_dead_strip	_smb_rq_new
.subsections_via_symbols
