	.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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$1024, -144(%rbp)               ## imm = 0x400
	movl	$8, -140(%rbp)
	movl	$16, -136(%rbp)
	movl	$16, -132(%rbp)
	movq	_OSSL_KDF_PARAM_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_OSSL_PARAM_construct_octet_string
	movl	%eax, -64(%rbp)
	movq	_OSSL_KDF_PARAM_SALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_OSSL_PARAM_construct_octet_string
	movl	%eax, -60(%rbp)
	movq	_OSSL_KDF_PARAM_SCRYPT_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-144(%rbp), %rsi
	callq	_OSSL_PARAM_construct_uint
	movl	%eax, -56(%rbp)
	movq	_OSSL_KDF_PARAM_SCRYPT_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-140(%rbp), %rsi
	callq	_OSSL_PARAM_construct_uint
	movl	%eax, -52(%rbp)
	movq	_OSSL_KDF_PARAM_SCRYPT_P@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-136(%rbp), %rsi
	callq	_OSSL_PARAM_construct_uint
	movl	%eax, -48(%rbp)
	movq	_OSSL_KDF_PARAM_SCRYPT_MAXMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-132(%rbp), %rsi
	callq	_OSSL_PARAM_construct_uint
	movl	%eax, -44(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_OSSL_PARAM_construct_end
	movl	%eax, -40(%rbp)
	movq	_OSSL_KDF_NAME_SCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_kdfbyname
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_EVP_KDF_CTX_set_params
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	$10485760, %esi                 ## imm = 0xA00000
	callq	_OSSL_PARAM_set_uint
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_EVP_KDF_CTX_set_params
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$64, %edx
	callq	_EVP_KDF_derive
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	_test_kdf_scrypt.expected(%rip), %rdx
	leaq	-128(%rbp), %rdi
	movl	$64, %esi
	movl	$64, %ecx
	callq	_TEST_mem_eq
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_6:
	movq	%rbx, %rdi
	callq	_EVP_KDF_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @test_kdf_scrypt.expected
_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@"

	.comm	_OSSL_KDF_PARAM_PASSWORD,4,2    ## @OSSL_KDF_PARAM_PASSWORD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"password"

	.comm	_OSSL_KDF_PARAM_SALT,4,2        ## @OSSL_KDF_PARAM_SALT
L_.str.1:                               ## @.str.1
	.asciz	"NaCl"

	.comm	_OSSL_KDF_PARAM_SCRYPT_N,4,2    ## @OSSL_KDF_PARAM_SCRYPT_N
	.comm	_OSSL_KDF_PARAM_SCRYPT_R,4,2    ## @OSSL_KDF_PARAM_SCRYPT_R
	.comm	_OSSL_KDF_PARAM_SCRYPT_P,4,2    ## @OSSL_KDF_PARAM_SCRYPT_P
	.comm	_OSSL_KDF_PARAM_SCRYPT_MAXMEM,4,2 ## @OSSL_KDF_PARAM_SCRYPT_MAXMEM
	.comm	_OSSL_KDF_NAME_SCRYPT,4,2       ## @OSSL_KDF_NAME_SCRYPT
	.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, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	w9, #1024
	mov	w8, #8
	stp	w8, w9, [sp, #20]
	mov	w8, #16
	stp	w8, w8, [sp, #12]
Lloh3:
	adrp	x8, _OSSL_KDF_PARAM_PASSWORD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_KDF_PARAM_PASSWORD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_OSSL_PARAM_construct_octet_string
	stur	w0, [x29, #-52]
Lloh8:
	adrp	x8, _OSSL_KDF_PARAM_SALT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SALT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_OSSL_PARAM_construct_octet_string
	stur	w0, [x29, #-48]
Lloh13:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_N@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_N@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_OSSL_PARAM_construct_uint
	stur	w0, [x29, #-44]
Lloh16:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_R@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_R@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #20
	bl	_OSSL_PARAM_construct_uint
	stur	w0, [x29, #-40]
Lloh19:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_P@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_P@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_OSSL_PARAM_construct_uint
	stur	w0, [x29, #-36]
Lloh22:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_MAXMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_MAXMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_OSSL_PARAM_construct_uint
	stur	w0, [x29, #-32]
	bl	_OSSL_PARAM_construct_end
	stur	w0, [x29, #-28]
Lloh25:
	adrp	x8, _OSSL_KDF_NAME_SCRYPT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OSSL_KDF_NAME_SCRYPT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_get_kdfbyname
	mov	x19, x0
	bl	_TEST_ptr
	cbz	x0, LBB0_6
; %bb.1:
	sub	x1, x29, #52
	mov	x0, x19
	bl	_EVP_KDF_CTX_set_params
	bl	_TEST_true
	cbz	x0, LBB0_6
; %bb.2:
	sub	x8, x29, #52
	add	x20, x8, #20
	mov	x0, x20
	mov	w1, #10485760
	bl	_OSSL_PARAM_set_uint
	bl	_TEST_true
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_EVP_KDF_CTX_set_params
	bl	_TEST_true
	cbz	x0, LBB0_6
; %bb.4:
	add	x1, sp, #28
	mov	x0, x19
	mov	w2, #64
	bl	_EVP_KDF_derive
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	x0, LBB0_6
; %bb.5:
Lloh28:
	adrp	x2, _test_kdf_scrypt.expected@PAGE
Lloh29:
	add	x2, x2, _test_kdf_scrypt.expected@PAGEOFF
	add	x0, sp, #28
	mov	w1, #64
	mov	w3, #64
	bl	_TEST_mem_eq
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_EVP_KDF_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_9
; %bb.8:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_test_kdf_scrypt.expected:              ; @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@"

	.comm	_OSSL_KDF_PARAM_PASSWORD,4,2    ; @OSSL_KDF_PARAM_PASSWORD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"password"

	.comm	_OSSL_KDF_PARAM_SALT,4,2        ; @OSSL_KDF_PARAM_SALT
l_.str.1:                               ; @.str.1
	.asciz	"NaCl"

	.comm	_OSSL_KDF_PARAM_SCRYPT_N,4,2    ; @OSSL_KDF_PARAM_SCRYPT_N
	.comm	_OSSL_KDF_PARAM_SCRYPT_R,4,2    ; @OSSL_KDF_PARAM_SCRYPT_R
	.comm	_OSSL_KDF_PARAM_SCRYPT_P,4,2    ; @OSSL_KDF_PARAM_SCRYPT_P
	.comm	_OSSL_KDF_PARAM_SCRYPT_MAXMEM,4,2 ; @OSSL_KDF_PARAM_SCRYPT_MAXMEM
	.comm	_OSSL_KDF_NAME_SCRYPT,4,2       ; @OSSL_KDF_NAME_SCRYPT
	.no_dead_strip	_test_kdf_scrypt
.subsections_via_symbols
