	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_kdf_scrypt
_test_kdf_scrypt:                       ## @test_kdf_scrypt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	$64, -168(%rbp)
	movq	_EVP_PKEY_SCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new_id
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_EVP_PKEY_derive_init
	testq	%rax, %rax
	jle	LBB0_3
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_EVP_PKEY_CTX_set1_pbe_pass
	testq	%rax, %rax
	jle	LBB0_6
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_EVP_PKEY_CTX_set1_scrypt_salt
	testq	%rax, %rax
	jle	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_EVP_PKEY_CTX_set_scrypt_N
	testq	%rax, %rax
	jle	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_EVP_PKEY_CTX_set_scrypt_r
	testq	%rax, %rax
	jle	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_EVP_PKEY_CTX_set_scrypt_p
	testq	%rax, %rax
	jle	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_EVP_PKEY_CTX_set_scrypt_maxmem_bytes
	testq	%rax, %rax
	jle	LBB0_16
## %bb.17:
	leaq	-96(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	movq	%r14, %rdi
	callq	_EVP_PKEY_derive
	testq	%rax, %rax
	jle	LBB0_19
## %bb.18:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_TEST_error
	jmp	LBB0_23
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_4
LBB0_10:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_4
LBB0_12:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_4
LBB0_14:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_4
LBB0_19:
	movq	%r14, %rdi
	movl	$10485760, %esi                 ## imm = 0xA00000
	callq	_EVP_PKEY_CTX_set_scrypt_maxmem_bytes
	testq	%rax, %rax
	jle	LBB0_16
## %bb.20:
	leaq	-96(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	movq	%r14, %rdi
	callq	_EVP_PKEY_derive
	testq	%rax, %rax
	jle	LBB0_21
## %bb.22:
	movaps	l___const.test_kdf_scrypt.expected+48(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	l___const.test_kdf_scrypt.expected+32(%rip), %xmm0
	movaps	%xmm0, -128(%rbp)
	movaps	l___const.test_kdf_scrypt.expected+16(%rip), %xmm0
	movaps	%xmm0, -144(%rbp)
	movaps	l___const.test_kdf_scrypt.expected(%rip), %xmm0
	movaps	%xmm0, -160(%rbp)
	leaq	-96(%rbp), %rdi
	leaq	-160(%rbp), %rdx
	movl	$64, %esi
	movl	$64, %ecx
	callq	_TEST_mem_eq
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_23
LBB0_16:
	leaq	L_.str.9(%rip), %rdi
LBB0_4:
	callq	_TEST_error
	xorl	%ebx, %ebx
LBB0_23:
	movq	%r14, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%ebx, %eax
	addq	$160, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_4
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_SCRYPT,4,2            ## @EVP_PKEY_SCRYPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVP_PKEY_SCRYPT"

L_.str.1:                               ## @.str.1
	.asciz	"EVP_PKEY_derive_init"

L_.str.2:                               ## @.str.2
	.asciz	"password"

L_.str.3:                               ## @.str.3
	.asciz	"EVP_PKEY_CTX_set1_pbe_pass"

L_.str.4:                               ## @.str.4
	.asciz	"NaCl"

L_.str.5:                               ## @.str.5
	.asciz	"EVP_PKEY_CTX_set1_scrypt_salt"

L_.str.6:                               ## @.str.6
	.asciz	"EVP_PKEY_CTX_set_scrypt_N"

L_.str.7:                               ## @.str.7
	.asciz	"EVP_PKEY_CTX_set_scrypt_r"

L_.str.8:                               ## @.str.8
	.asciz	"EVP_PKEY_CTX_set_scrypt_p"

L_.str.9:                               ## @.str.9
	.asciz	"EVP_PKEY_CTX_set_maxmem_bytes"

L_.str.10:                              ## @.str.10
	.asciz	"EVP_PKEY_derive should have failed"

L_.str.11:                              ## @.str.11
	.asciz	"EVP_PKEY_derive"

	.section	__TEXT,__const
	.p2align	4                               ## @__const.test_kdf_scrypt.expected
l___const.test_kdf_scrypt.expected:
	.ascii	"\375\272\276\034\2354r\000xV\347\031\r\001\351\376|j\327\313\310#x0\347svcK71b.\2570\331.\"\243\210o\361\t'\235\2300\332\307'\257\271J\203\356m\203`\313\337\242\314\006@"

	.no_dead_strip	_test_kdf_scrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_kdf_scrypt
_test_kdf_scrypt:                       ; @test_kdf_scrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #64
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _EVP_PKEY_SCRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_PKEY_SCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new_id
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_EVP_PKEY_derive_init
	cmp	x0, #0
	b.le	LBB0_11
; %bb.2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #8
	bl	_EVP_PKEY_CTX_set1_pbe_pass
	cmp	x0, #0
	b.le	LBB0_12
; %bb.3:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_EVP_PKEY_CTX_set1_scrypt_salt
	cmp	x0, #0
	b.le	LBB0_13
; %bb.4:
	mov	x0, x19
	mov	w1, #1024
	bl	_EVP_PKEY_CTX_set_scrypt_N
	cmp	x0, #0
	b.le	LBB0_14
; %bb.5:
	mov	x0, x19
	mov	w1, #8
	bl	_EVP_PKEY_CTX_set_scrypt_r
	cmp	x0, #0
	b.le	LBB0_15
; %bb.6:
	mov	x0, x19
	mov	w1, #16
	bl	_EVP_PKEY_CTX_set_scrypt_p
	cmp	x0, #0
	b.le	LBB0_16
; %bb.7:
	mov	x0, x19
	mov	w1, #16
	bl	_EVP_PKEY_CTX_set_scrypt_maxmem_bytes
	cmp	x0, #0
	b.le	LBB0_20
; %bb.8:
	add	x1, sp, #88
	add	x2, sp, #8
	mov	x0, x19
	bl	_EVP_PKEY_derive
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.9:
Lloh10:
	adrp	x0, l_.str.10@PAGE
Lloh11:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_21
LBB0_10:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_21
LBB0_11:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_12:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_13:
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_14:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_15:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_21
LBB0_16:
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_21
LBB0_17:
	mov	x0, x19
	mov	w1, #10485760
	bl	_EVP_PKEY_CTX_set_scrypt_maxmem_bytes
	cmp	x0, #0
	b.le	LBB0_20
; %bb.18:
	add	x1, sp, #88
	add	x2, sp, #8
	mov	x0, x19
	bl	_EVP_PKEY_derive
	cmp	x0, #0
	b.le	LBB0_24
; %bb.19:
Lloh26:
	adrp	x8, l___const.test_kdf_scrypt.expected@PAGE
Lloh27:
	add	x8, x8, l___const.test_kdf_scrypt.expected@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #48]
	add	x0, sp, #88
	add	x2, sp, #16
	mov	w1, #64
	mov	w3, #64
	bl	_TEST_mem_eq
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_22
LBB0_20:
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_21:
	bl	_TEST_error
	mov	w20, #0
LBB0_22:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
	ldur	x8, [x29, #-24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.23:
	mov	x0, x20
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_24:
Lloh33:
	adrp	x0, l_.str.11@PAGE
Lloh34:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_21
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_SCRYPT,4,2            ; @EVP_PKEY_SCRYPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVP_PKEY_SCRYPT"

l_.str.1:                               ; @.str.1
	.asciz	"EVP_PKEY_derive_init"

l_.str.2:                               ; @.str.2
	.asciz	"password"

l_.str.3:                               ; @.str.3
	.asciz	"EVP_PKEY_CTX_set1_pbe_pass"

l_.str.4:                               ; @.str.4
	.asciz	"NaCl"

l_.str.5:                               ; @.str.5
	.asciz	"EVP_PKEY_CTX_set1_scrypt_salt"

l_.str.6:                               ; @.str.6
	.asciz	"EVP_PKEY_CTX_set_scrypt_N"

l_.str.7:                               ; @.str.7
	.asciz	"EVP_PKEY_CTX_set_scrypt_r"

l_.str.8:                               ; @.str.8
	.asciz	"EVP_PKEY_CTX_set_scrypt_p"

l_.str.9:                               ; @.str.9
	.asciz	"EVP_PKEY_CTX_set_maxmem_bytes"

l_.str.10:                              ; @.str.10
	.asciz	"EVP_PKEY_derive should have failed"

l_.str.11:                              ; @.str.11
	.asciz	"EVP_PKEY_derive"

	.section	__TEXT,__const
l___const.test_kdf_scrypt.expected:     ; @__const.test_kdf_scrypt.expected
	.ascii	"\375\272\276\034\2354r\000xV\347\031\r\001\351\376|j\327\313\310#x0\347svcK71b.\2570\331.\"\243\210o\361\t'\235\2300\332\307'\257\271J\203\356m\203`\313\337\242\314\006@"

	.no_dead_strip	_test_kdf_scrypt
.subsections_via_symbols
