	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kdf_hkdf_set_ctx_params
_kdf_hkdf_set_ctx_params:               ## @kdf_hkdf_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
	subq	$24, %rsp
	.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	60(%rdi), %edi
	callq	_PROV_LIBRARY_CONTEXT_OF
	leaq	56(%r12), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ossl_prov_digest_load_from_params
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_34
## %bb.1:
	movq	_OSSL_KDF_PARAM_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	(%rax), %rcx
	movq	_OSSL_PARAM_UTF8_STRING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	movq	16(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	_EVP_KDF_HKDF_MODE_EXPAND_ONLY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	leaq	-44(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_int
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	-44(%rbp), %eax
	movq	_EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.9:
	movq	_EVP_KDF_HKDF_MODE_EXTRACT_ONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.10:
	movq	_EVP_KDF_HKDF_MODE_EXPAND_ONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
LBB0_11:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
	jmp	LBB0_34
LBB0_12:
	movq	_EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_EVP_KDF_HKDF_MODE_EXTRACT_ONLY@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	movl	%eax, (%r12)
LBB0_16:
	movq	_OSSL_KDF_PARAM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rax, %rbx
	leaq	48(%r12), %r13
	movq	8(%r12), %rsi
	movq	48(%r12), %rdi
	leaq	8(%r12), %r14
	callq	_OPENSSL_clear_free
	movq	$0, 48(%r12)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_OSSL_PARAM_get_octet_string
	testl	%eax, %eax
	je	LBB0_34
LBB0_18:
	movq	_OSSL_KDF_PARAM_SALT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_22
## %bb.20:
	cmpq	$0, 16(%rbx)
	je	LBB0_22
## %bb.21:
	leaq	40(%r12), %r14
	movq	40(%r12), %rdi
	callq	_OPENSSL_free
	movq	$0, 40(%r12)
	leaq	16(%r12), %rcx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_OSSL_PARAM_get_octet_string
	testl	%eax, %eax
	je	LBB0_34
LBB0_22:
	movq	_OSSL_KDF_PARAM_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_34
## %bb.23:
	movq	%rax, %rbx
	movl	$0, 24(%r12)
	xorl	%eax, %eax
	leaq	-64(%rbp), %r15
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	addq	32(%r12), %rcx
	movq	%rcx, -64(%rbp)
	movq	$0, -56(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_HKDF_MAXBUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%eax, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rcx
	callq	_OSSL_PARAM_get_octet_string
	testl	%eax, %eax
	je	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-56(%rbp), %rcx
	movl	24(%r12), %eax
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	xorl	%ecx, %ecx
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	addl	%eax, %ecx
	movl	%ecx, 24(%r12)
	addq	$24, %rbx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rax, %rbx
	movl	24(%r12), %eax
	jmp	LBB0_24
LBB0_32:
	movl	$1, %r13d
	jmp	LBB0_34
LBB0_33:
	xorl	%r13d, %r13d
LBB0_34:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_KDF_PARAM_MODE,4,2        ## @OSSL_KDF_PARAM_MODE
	.comm	_OSSL_PARAM_UTF8_STRING,8,3     ## @OSSL_PARAM_UTF8_STRING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EXTRACT_AND_EXPAND"

	.comm	_EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND,4,2 ## @EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND
L_.str.1:                               ## @.str.1
	.asciz	"EXTRACT_ONLY"

	.comm	_EVP_KDF_HKDF_MODE_EXTRACT_ONLY,4,2 ## @EVP_KDF_HKDF_MODE_EXTRACT_ONLY
L_.str.2:                               ## @.str.2
	.asciz	"EXPAND_ONLY"

	.comm	_EVP_KDF_HKDF_MODE_EXPAND_ONLY,4,2 ## @EVP_KDF_HKDF_MODE_EXPAND_ONLY
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_MODE,4,2        ## @PROV_R_INVALID_MODE
	.comm	_OSSL_KDF_PARAM_KEY,4,2         ## @OSSL_KDF_PARAM_KEY
	.comm	_OSSL_KDF_PARAM_SALT,4,2        ## @OSSL_KDF_PARAM_SALT
	.comm	_OSSL_KDF_PARAM_INFO,4,2        ## @OSSL_KDF_PARAM_INFO
	.comm	_HKDF_MAXBUF,4,2                ## @HKDF_MAXBUF
	.no_dead_strip	_kdf_hkdf_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 kdf_hkdf_set_ctx_params
_kdf_hkdf_set_ctx_params:               ; @kdf_hkdf_set_ctx_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #60]
	bl	_PROV_LIBRARY_CONTEXT_OF
	mov	x2, x0
	add	x0, x19, #56
	mov	x1, x20
	bl	_ossl_prov_digest_load_from_params
	cbz	w0, LBB0_29
; %bb.1:
Lloh0:
	adrp	x8, _OSSL_KDF_PARAM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_KDF_PARAM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_14
; %bb.2:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OSSL_PARAM_UTF8_STRING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OSSL_PARAM_UTF8_STRING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x21, [x0, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_10
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbz	x0, LBB0_11
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcasecmp
	cbnz	x0, LBB0_9
; %bb.6:
Lloh12:
	adrp	x8, _EVP_KDF_HKDF_MODE_EXPAND_ONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_KDF_HKDF_MODE_EXPAND_ONLY@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	add	x1, sp, #28
	bl	_OSSL_PARAM_get_int
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [sp, #28]
Lloh14:
	adrp	x9, _EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _EVP_KDF_HKDF_MODE_EXTRACT_ONLY@GOTPAGE
Lloh18:
	ldr	x10, [x10, _EVP_KDF_HKDF_MODE_EXTRACT_ONLY@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _EVP_KDF_HKDF_MODE_EXPAND_ONLY@GOTPAGE
Lloh21:
	ldr	x11, [x11, _EVP_KDF_HKDF_MODE_EXPAND_ONLY@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.eq	LBB0_13
LBB0_9:
Lloh23:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _PROV_R_INVALID_MODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PROV_R_INVALID_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
	b	LBB0_29
LBB0_10:
Lloh29:
	adrp	x8, _EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh31:
	adrp	x8, _EVP_KDF_HKDF_MODE_EXTRACT_ONLY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EVP_KDF_HKDF_MODE_EXTRACT_ONLY@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
LBB0_13:
	str	w8, [x19]
LBB0_14:
Lloh33:
	adrp	x8, _OSSL_KDF_PARAM_KEY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OSSL_KDF_PARAM_KEY@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_16
; %bb.15:
	mov	x21, x0
	mov	x22, x19
	ldr	x0, [x22, #48]!
	mov	x23, x22
	ldr	x1, [x23, #-40]!
	bl	_OPENSSL_clear_free
	str	xzr, [x22]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x3, x23
	bl	_OSSL_PARAM_get_octet_string
	cbz	w0, LBB0_29
LBB0_16:
Lloh36:
	adrp	x8, _OSSL_KDF_PARAM_SALT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SALT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_20
; %bb.17:
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_20
; %bb.18:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x22, x19
	ldr	x0, [x22, #40]!
	bl	_OPENSSL_free
	str	xzr, [x22]
	sub	x3, x22, #24
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_OSSL_PARAM_get_octet_string
	cbz	w0, LBB0_29
LBB0_20:
Lloh39:
	adrp	x21, _OSSL_KDF_PARAM_INFO@GOTPAGE
Lloh40:
	ldr	x21, [x21, _OSSL_KDF_PARAM_INFO@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_28
; %bb.21:
	mov	x20, x0
	mov	w8, #0
	str	wzr, [x19, #24]
Lloh41:
	adrp	x22, _HKDF_MAXBUF@GOTPAGE
Lloh42:
	ldr	x22, [x22, _HKDF_MAXBUF@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	add	x9, x9, w8, sxtw
	stp	xzr, x9, [sp, #8]
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w9, [x22]
	sub	w2, w9, w8
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_OSSL_PARAM_get_octet_string
	cbz	w0, LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [sp, #8]
	ldr	w8, [x19, #24]
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w8, w8, w9
	str	w8, [x19, #24]
	add	x0, x20, #24
	ldr	w1, [x21]
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x20, x0
	ldr	w8, [x19, #24]
	b	LBB0_22
LBB0_28:
	mov	w0, #1
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_KDF_PARAM_MODE,4,2        ; @OSSL_KDF_PARAM_MODE
	.comm	_OSSL_PARAM_UTF8_STRING,8,3     ; @OSSL_PARAM_UTF8_STRING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EXTRACT_AND_EXPAND"

	.comm	_EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND,4,2 ; @EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND
l_.str.1:                               ; @.str.1
	.asciz	"EXTRACT_ONLY"

	.comm	_EVP_KDF_HKDF_MODE_EXTRACT_ONLY,4,2 ; @EVP_KDF_HKDF_MODE_EXTRACT_ONLY
l_.str.2:                               ; @.str.2
	.asciz	"EXPAND_ONLY"

	.comm	_EVP_KDF_HKDF_MODE_EXPAND_ONLY,4,2 ; @EVP_KDF_HKDF_MODE_EXPAND_ONLY
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_MODE,4,2        ; @PROV_R_INVALID_MODE
	.comm	_OSSL_KDF_PARAM_KEY,4,2         ; @OSSL_KDF_PARAM_KEY
	.comm	_OSSL_KDF_PARAM_SALT,4,2        ; @OSSL_KDF_PARAM_SALT
	.comm	_OSSL_KDF_PARAM_INFO,4,2        ; @OSSL_KDF_PARAM_INFO
	.comm	_HKDF_MAXBUF,4,2                ; @HKDF_MAXBUF
	.no_dead_strip	_kdf_hkdf_set_ctx_params
.subsections_via_symbols
