	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kdf_test_run
_kdf_test_run:                          ## @kdf_test_run
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	(%rbx), %r15
	movl	12(%rbx), %edi
	movl	16(%rbx), %esi
	callq	_EVP_KDF_CTX_set_params
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_OPENSSL_malloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_EVP_KDF_derive
	testq	%rax, %rax
	jle	LBB0_5
## %bb.6:
	movl	8(%rbx), %edx
	movq	(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_memory_err_compare
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rax
LBB0_8:
	movq	%rax, (%r12)
LBB0_9:
	movq	%r14, %rdi
	callq	_OPENSSL_free
LBB0_10:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KDF_CTRL_ERROR"

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

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

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

	.no_dead_strip	_kdf_test_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kdf_test_run
_kdf_test_run:                          ; @kdf_test_run
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x21, [x22]
	ldp	w0, w1, [x22, #12]
	bl	_EVP_KDF_CTX_set_params
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_OPENSSL_malloc
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x22, #12]
	mov	x1, x20
	mov	x2, x21
	bl	_EVP_KDF_derive
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	w2, [x22, #8]
	ldr	x3, [x22]
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	mov	x5, x21
	bl	_memory_err_compare
	cbz	w0, LBB0_9
; %bb.4:
	mov	x8, #0
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_8:
	str	x8, [x19]
LBB0_9:
	mov	x0, x20
	bl	_OPENSSL_free
LBB0_10:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KDF_CTRL_ERROR"

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

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

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

	.no_dead_strip	_kdf_test_run
.subsections_via_symbols
