	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_simpledecrypt              ## -- Begin function smb_simpledecrypt
	.p2align	4, 0x90
_smb_simpledecrypt:                     ## @smb_simpledecrypt
	.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	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	addq	$3, %r13
	movq	%r13, %rdi
	callq	_strlen
	testb	$1, %al
	jne	LBB0_1
## %bb.3:
	movb	$0, -41(%rbp)
	cmpl	$2, %eax
	jb	LBB0_13
## %bb.4:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$27, %r15d
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	$-52, %ebx
	movslq	%ebx, %rbx
	imulq	$1321528399, %rbx, %rax         ## imm = 0x4EC4EC4F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rcx,%rcx,4), %ecx
	addl	%eax, %ecx
	subl	%ecx, %ebx
	addl	$65, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	%r14d, %r15d
	addl	$-243, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movb	%bl, (%r14,%r12)
	incq	%r12
	cmpl	%r12d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%r12,2), %eax
	movb	%al, -43(%rbp)
	movzbl	1(%r13,%r12,2), %eax
	movb	%al, -42(%rbp)
	leaq	-43(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movl	$16, %edx
	callq	_strtoul
	movl	%eax, %ebx
	movq	-72(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %ebx
	xorl	%r14d, %r14d
	cmpl	$244, %r15d
	setl	%r14b
	shll	$8, %r14d
	movl	%ebx, %edi
	callq	_isascii
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_isupper
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_islower
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	$-84, %ebx
	movslq	%ebx, %rbx
	imulq	$1321528399, %rbx, %rax         ## imm = 0x4EC4EC4F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rcx,%rcx,4), %ecx
	addl	%eax, %ecx
	subl	%ecx, %ebx
	addl	$97, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	addq	%r12, %r14
LBB0_13:
	movb	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$$1"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_simpledecrypt              ; -- Begin function smb_simpledecrypt
	.p2align	2
_smb_simpledecrypt:                     ; @smb_simpledecrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_12
; %bb.1:
	add	x20, x20, #3
	mov	x0, x20
	bl	_strlen
	tbnz	w0, #0, LBB0_12
; %bb.2:
	strb	wzr, [sp, #7]
	cmp	w0, #2
	b.hs	LBB0_4
LBB0_3:
	mov	w0, #0
	strb	wzr, [x19]
	b	LBB0_13
LBB0_4:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w22, w8, #1
	mov	w23, #27
	mov	w24, #13
	mov	w25, #-243
	mov	w26, #60495
	movk	w26, #20164, lsl #16
	mov	w27, #26
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w21, #52
	smull	x9, w8, w26
	lsr	x10, x9, #63
	asr	x9, x9, #35
	add	w9, w9, w10
	msub	w8, w9, w27, w8
	add	w21, w8, #65
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w28, w23
	strb	w21, [x19], #1
	add	x20, x20, #2
	cbz	w22, LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x20]
	sturh	w8, [sp, #5]
	add	x0, sp, #5
	add	x1, sp, #8
	mov	w2, #16
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w22, w22, #1
	eor	w21, w0, w23
	cmp	w23, #243
	csel	w28, w25, w24, gt
	mov	x0, x21
	bl	_isascii
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_isupper
	cbnz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_islower
	cbz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w21, #84
	smull	x9, w8, w26
	lsr	x10, x9, #63
	asr	x9, x9, #35
	add	w9, w9, w10
	msub	w8, w9, w27, w8
	add	w21, w8, #97
	b	LBB0_6
LBB0_12:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$$1"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
