	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scrypt_alg
_scrypt_alg:                            ## @scrypt_alg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	leal	-1(%rbx), %eax
	xorl	%r15d, %r15d
	testl	%eax, %r8d
	jne	LBB0_24
## %bb.1:
	cmpl	$2, %ebx
	jl	LBB0_24
## %bb.2:
	movl	%r9d, %r12d
	testl	%r9d, %r9d
	je	LBB0_24
## %bb.3:
	movl	16(%rbp), %r8d
	testl	%r8d, %r8d
	je	LBB0_24
## %bb.4:
	movq	%rdx, %r14
	movq	_SCRYPT_PR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r12d
	cmpl	%r8d, %eax
	jl	LBB0_5
## %bb.7:
	movq	%rcx, %r13
	movl	%r12d, %ecx
	shll	$4, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movq	_LOG2_UINT64_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_9
## %bb.8:
	cmpl	%ebx, %eax
	jle	LBB0_5
LBB0_9:
	movl	%r8d, %ecx
	imull	%r12d, %ecx
	shll	$7, %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_5
## %bb.10:
	movq	_UINT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, %eax
	sarl	$7, %eax
	leal	2(%rbx), %r9d
	cltd
	idivl	%r12d
	cmpl	%eax, %r9d
	jg	LBB0_5
## %bb.11:
	movl	%r12d, %eax
	shll	$5, %eax
	imull	%eax, %r9d
	shll	$2, %r9d
	subl	%r9d, %r8d
	cmpl	%r8d, %ecx
	jg	LBB0_5
## %bb.12:
	movl	24(%rbp), %r8d
	movq	_SIZE_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%r8d, %edx
	cmovll	%edx, %r8d
	addl	%ecx, %r9d
	cmpl	%r8d, %r9d
	jle	LBB0_13
LBB0_5:
	movq	_EVP_F_SCRYPT_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_MEMORY_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_EVPerr
LBB0_24:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpq	$0, 32(%rbp)
	je	LBB0_14
## %bb.15:
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movslq	%r9d, %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	48(%rbp), %r9
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movl	$1, %r8d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	pushq	%rax
	pushq	%r15
	callq	_PKCS5_PBKDF2_HMAC
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movl	16(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.19:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	addq	%r15, %rdx
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax,4), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	shll	$7, %eax
	movslq	%eax, %r14
	movl	%ecx, %r15d
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	callq	_scryptROMix
	addq	%r14, %r13
	decq	%r15
	jne	LBB0_20
LBB0_21:
	movl	$1, %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	movq	48(%rbp), %r9
	pushq	32(%rbp)
	pushq	40(%rbp)
	callq	_PKCS5_PBKDF2_HMAC
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_23
LBB0_22:
	movq	_EVP_F_SCRYPT_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_PBKDF2_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%r15d, %r15d
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_OPENSSL_clear_free
	jmp	LBB0_24
LBB0_14:
	movl	$1, %r15d
	jmp	LBB0_24
LBB0_16:
	movq	_EVP_F_SCRYPT_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SCRYPT_PR_MAX,4,2              ## @SCRYPT_PR_MAX
	.comm	_EVP_F_SCRYPT_ALG,4,2           ## @EVP_F_SCRYPT_ALG
	.comm	_EVP_R_MEMORY_LIMIT_EXCEEDED,4,2 ## @EVP_R_MEMORY_LIMIT_EXCEEDED
	.comm	_LOG2_UINT64_MAX,4,2            ## @LOG2_UINT64_MAX
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_UINT64_MAX,4,2                 ## @UINT64_MAX
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_EVP_R_PBKDF2_ERROR,4,2         ## @EVP_R_PBKDF2_ERROR
	.no_dead_strip	_scrypt_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scrypt_alg
_scrypt_alg:                            ; @scrypt_alg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	sub	w8, w4, #1
	and	w8, w4, w8
	cmp	w8, #0
	ccmp	w4, #2, #8, eq
	ccmp	w5, #0, #4, ge
	ccmp	w6, #0, #4, ne
	b.eq	LBB0_9
; %bb.1:
	mov	x23, x6
	mov	x20, x5
Lloh0:
	adrp	x8, _SCRYPT_PR_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCRYPT_PR_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w8, w8, w5
	cmp	w8, w6
	b.lt	LBB0_7
; %bb.2:
	mov	x21, x4
Lloh3:
	adrp	x8, _LOG2_UINT64_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG2_UINT64_MAX@GOTPAGEOFF]
	lsl	w9, w20, #4
Lloh5:
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w10, w10, w9
	cmp	w9, w8
	ccmp	w10, w4, #0, le
	b.le	LBB0_7
; %bb.3:
	smull	x8, w23, w20
	lsl	x24, x8, #7
Lloh6:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _UINT64_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UINT64_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	asr	w10, w8, #7
	add	w9, w21, #2
	sdiv	w10, w10, w20
	cmp	w9, w10
	b.gt	LBB0_7
; %bb.5:
	sxtw	x25, w20
	lsl	x26, x25, #5
	mul	w9, w9, w26
	lsl	w9, w9, #2
	sub	w8, w8, w9
	cmp	w24, w8
	b.gt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w7
	csel	w10, w8, w7, lt
	add	w8, w24, w9
	cmp	w8, w10
	b.le	LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _EVP_F_SCRYPT_ALG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EVP_F_SCRYPT_ALG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _EVP_R_MEMORY_LIMIT_EXCEEDED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVP_R_MEMORY_LIMIT_EXCEEDED@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	ldr	x9, [x29, #16]
	cbz	x9, LBB0_20
; %bb.12:
	mov	x27, x3
	mov	x28, x2
	mov	x19, x1
	mov	x22, x0
	sxtw	x0, w8
	stp	x9, x0, [sp, #16]               ; 16-byte Folded Spill
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_21
; %bb.13:
	mov	x8, x0
	ldr	x5, [x29, #32]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x28
	mov	x3, x27
	mov	w4, #1
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x6, x24
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	mov	x7, x8
	bl	_PKCS5_PBKDF2_HMAC
	cbz	x0, LBB0_18
; %bb.14:
	ldr	x8, [x29, #24]
	str	x8, [sp]                        ; 8-byte Folded Spill
	cmp	w23, #1
	b.lt	LBB0_17
; %bb.15:
	lsl	x8, x26, #2
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x10, x9, x24
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	add	x27, x10, x8
	add	x26, x27, x8
	lsl	x25, x25, #7
	mov	w28, w23
	mov	x23, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	ldr	x3, [sp, #40]                   ; 8-byte Folded Reload
	mov	x4, x27
	mov	x5, x26
	bl	_scryptROMix
	add	x23, x23, x25
	subs	x28, x28, #1
	b.ne	LBB0_16
LBB0_17:
	mov	w20, #1
	mov	x0, x22
	mov	x1, x19
	ldr	x2, [sp, #32]                   ; 8-byte Folded Reload
	mov	x3, x24
	mov	w4, #1
	ldp	x6, x5, [sp]                    ; 16-byte Folded Reload
	ldr	x7, [sp, #16]                   ; 8-byte Folded Reload
	bl	_PKCS5_PBKDF2_HMAC
	cbnz	x0, LBB0_19
LBB0_18:
Lloh20:
	adrp	x8, _EVP_F_SCRYPT_ALG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EVP_F_SCRYPT_ALG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _EVP_R_PBKDF2_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EVP_R_PBKDF2_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w20, #0
LBB0_19:
	ldp	x1, x0, [sp, #24]               ; 16-byte Folded Reload
	bl	_OPENSSL_clear_free
	b	LBB0_10
LBB0_20:
	mov	w20, #1
	b	LBB0_10
LBB0_21:
Lloh26:
	adrp	x8, _EVP_F_SCRYPT_ALG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EVP_F_SCRYPT_ALG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SCRYPT_PR_MAX,4,2              ; @SCRYPT_PR_MAX
	.comm	_EVP_F_SCRYPT_ALG,4,2           ; @EVP_F_SCRYPT_ALG
	.comm	_EVP_R_MEMORY_LIMIT_EXCEEDED,4,2 ; @EVP_R_MEMORY_LIMIT_EXCEEDED
	.comm	_LOG2_UINT64_MAX,4,2            ; @LOG2_UINT64_MAX
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_UINT64_MAX,4,2                 ; @UINT64_MAX
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_EVP_R_PBKDF2_ERROR,4,2         ; @EVP_R_PBKDF2_ERROR
	.no_dead_strip	_scrypt_alg
.subsections_via_symbols
