	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x942kdf_set_ctx_params
_x942kdf_set_ctx_params:                ## @x942kdf_set_ctx_params
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	32(%rdi), %edi
	callq	_PROV_LIBRARY_CONTEXT_OF
	leaq	28(%r12), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ossl_prov_digest_load_from_params
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	_OSSL_KDF_PARAM_SECRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_OSSL_KDF_PARAM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	24(%r12), %rdi
	leaq	20(%r12), %rsi
	movq	%rax, %rdx
	callq	_x942kdf_set_buffer
	testl	%eax, %eax
	je	LBB0_15
LBB0_4:
	movq	_OSSL_KDF_PARAM_UKM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	16(%r12), %rdi
	leaq	12(%r12), %rsi
	movq	%rax, %rdx
	callq	_x942kdf_set_buffer
	testl	%eax, %eax
	je	LBB0_15
LBB0_6:
	movq	_OSSL_KDF_PARAM_CEK_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_UTF8_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.8:
	movl	8(%rax), %edi
	callq	_OBJ_sn2nid
	movq	%rax, (%r12)
	movq	_kek_algs@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_OSSL_NELEM
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	-8(%rdi,%r13), %rax
	cmpq	(%r12), %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	callq	_OSSL_NELEM
	addq	$16, %r13
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_12:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_UNSUPPORTED_CEK_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
	jmp	LBB0_15
LBB0_13:
	movl	(%rdi,%r13), %eax
	movl	%eax, 8(%r12)
LBB0_14:
	movl	$1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_KDF_PARAM_SECRET,4,2      ## @OSSL_KDF_PARAM_SECRET
	.comm	_OSSL_KDF_PARAM_KEY,4,2         ## @OSSL_KDF_PARAM_KEY
	.comm	_OSSL_KDF_PARAM_UKM,4,2         ## @OSSL_KDF_PARAM_UKM
	.comm	_OSSL_KDF_PARAM_CEK_ALG,4,2     ## @OSSL_KDF_PARAM_CEK_ALG
	.comm	_OSSL_PARAM_UTF8_STRING,8,3     ## @OSSL_PARAM_UTF8_STRING
	.comm	_kek_algs,8,3                   ## @kek_algs
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_UNSUPPORTED_CEK_ALG,4,2 ## @PROV_R_UNSUPPORTED_CEK_ALG
	.no_dead_strip	_x942kdf_set_ctx_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x942kdf_set_ctx_params
_x942kdf_set_ctx_params:                ; @x942kdf_set_ctx_params
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_PROV_LIBRARY_CONTEXT_OF
	mov	x2, x0
	add	x0, x19, #28
	mov	x1, x20
	bl	_ossl_prov_digest_load_from_params
	cbz	w0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _OSSL_KDF_PARAM_SECRET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SECRET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	mov	x2, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _OSSL_KDF_PARAM_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_KDF_PARAM_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	mov	x2, x0
	cbz	x0, LBB0_4
LBB0_3:
	add	x0, x19, #24
	add	x1, x19, #20
	bl	_x942kdf_set_buffer
	cbz	w0, LBB0_16
LBB0_4:
Lloh6:
	adrp	x8, _OSSL_KDF_PARAM_UKM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_KDF_PARAM_UKM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_6
; %bb.5:
	mov	x2, x0
	add	x0, x19, #16
	add	x1, x19, #12
	bl	_x942kdf_set_buffer
	cbz	w0, LBB0_16
LBB0_6:
Lloh9:
	adrp	x8, _OSSL_KDF_PARAM_CEK_ALG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSSL_KDF_PARAM_CEK_ALG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_15
; %bb.7:
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _OSSL_PARAM_UTF8_STRING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OSSL_PARAM_UTF8_STRING@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	ldr	w0, [x0, #8]
	bl	_OBJ_sn2nid
	str	x0, [x19]
Lloh15:
	adrp	x20, _kek_algs@GOTPAGE
Lloh16:
	ldr	x20, [x20, _kek_algs@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_OSSL_NELEM
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, #0
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	bl	_OSSL_NELEM
	add	x21, x21, #16
	cmp	x22, x0
	b.lo	LBB0_10
LBB0_12:
Lloh17:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _PROV_R_UNSUPPORTED_CEK_ALG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PROV_R_UNSUPPORTED_CEK_ALG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_ERR_raise
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	add	x8, x0, x21
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
LBB0_15:
	mov	w0, #1
LBB0_16:
	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 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	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_KDF_PARAM_SECRET,4,2      ; @OSSL_KDF_PARAM_SECRET
	.comm	_OSSL_KDF_PARAM_KEY,4,2         ; @OSSL_KDF_PARAM_KEY
	.comm	_OSSL_KDF_PARAM_UKM,4,2         ; @OSSL_KDF_PARAM_UKM
	.comm	_OSSL_KDF_PARAM_CEK_ALG,4,2     ; @OSSL_KDF_PARAM_CEK_ALG
	.comm	_OSSL_PARAM_UTF8_STRING,8,3     ; @OSSL_PARAM_UTF8_STRING
	.comm	_kek_algs,8,3                   ; @kek_algs
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_UNSUPPORTED_CEK_ALG,4,2 ; @PROV_R_UNSUPPORTED_CEK_ALG
	.no_dead_strip	_x942kdf_set_ctx_params
.subsections_via_symbols
