	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kdf_test_ctrl
_kdf_test_ctrl:                         ## @kdf_test_ctrl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	movq	%rsi, %rdi
	callq	_EVP_KDF_CTX_kdf
	movl	%eax, %edi
	callq	_EVP_KDF_settable_ctx_params
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_OPENSSL_strdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	1(%r12), %rbx
	movb	$0, (%r12)
	movq	(%r13), %r14
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r8d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_3:
	movq	(%r13), %r14
	xorl	%ebx, %ebx
	xorl	%r8d, %r8d
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_OSSL_PARAM_allocate_from_text
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_OSSL_PARAM_construct_end
	movq	(%r13), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, (%r13)
	movl	%eax, 4(%rcx)
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movl	$1, %r15d
	testq	%r12, %r12
	je	LBB0_20
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_OBJ_sn2nid
	movq	_NID_undef@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_OBJ_ln2nid
	movl	(%rbx), %ecx
LBB0_11:
	cmpl	%ecx, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %edi
	callq	_EVP_get_digestbynid
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%rax)
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	callq	_OBJ_sn2nid
	movq	%rbx, %rdi
	movq	_NID_undef@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_17
## %bb.16:
	callq	_OBJ_ln2nid
	movl	(%rbx), %ecx
LBB0_17:
	cmpl	%ecx, %eax
	je	LBB0_20
## %bb.18:
	movl	%eax, %edi
	callq	_EVP_get_cipherbynid
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 8(%rax)
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_20:
	movq	%r14, %rdi
	callq	_OPENSSL_free
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KDF_PARAM_ERROR"

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

	.comm	_NID_undef,4,2                  ## @NID_undef
L_.str.2:                               ## @.str.2
	.asciz	"cipher"

	.no_dead_strip	_kdf_test_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kdf_test_ctrl
_kdf_test_ctrl:                         ; @kdf_test_ctrl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x25, [x0, #16]
	mov	x0, x1
	bl	_EVP_KDF_CTX_kdf
	bl	_EVP_KDF_settable_ctx_params
	mov	x22, x0
	mov	x0, x19
	bl	_OPENSSL_strdup
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	mov	x23, x0
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x23
	strb	wzr, [x21], #1
	ldr	x24, [x25]
	mov	x0, x21
	bl	_strlen
	mov	x4, x0
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_20
LBB0_4:
	mov	x21, #0
	mov	w4, #0
	ldr	x24, [x25]
LBB0_5:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_OSSL_PARAM_allocate_from_text
	mov	x22, x0
	bl	_OSSL_PARAM_construct_end
	ldr	x8, [x25]
	str	w0, [x8, #4]!
	str	x8, [x25]
	cbz	w22, LBB0_18
; %bb.6:
	cbz	x23, LBB0_17
; %bb.7:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_13
; %bb.8:
	mov	x0, x21
	bl	_OBJ_sn2nid
Lloh2:
	adrp	x22, _NID_undef@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NID_undef@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_OBJ_ln2nid
	ldr	w8, [x22]
LBB0_10:
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.11:
	bl	_EVP_get_digestbynid
	cbnz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_13:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_17
; %bb.14:
	mov	x0, x21
	bl	_OBJ_sn2nid
Lloh6:
	adrp	x22, _NID_undef@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NID_undef@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_OBJ_ln2nid
	ldr	w8, [x22]
LBB0_16:
	cmp	w0, w8
	b.ne	LBB0_21
LBB0_17:
	mov	w21, #1
	b	LBB0_19
LBB0_18:
	mov	w21, #0
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
LBB0_19:
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	_EVP_get_cipherbynid
	mov	w21, #1
	cbnz	x0, LBB0_19
; %bb.22:
	str	w21, [x20, #8]
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KDF_PARAM_ERROR"

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

	.comm	_NID_undef,4,2                  ; @NID_undef
l_.str.2:                               ; @.str.2
	.asciz	"cipher"

	.no_dead_strip	_kdf_test_ctrl
.subsections_via_symbols
