	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kdf_pbkdf2_set_ctx_params
_kdf_pbkdf2_set_ctx_params:             ## @kdf_pbkdf2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	28(%rdi), %edi
	callq	_PROV_LIBRARY_CONTEXT_OF
	leaq	24(%r15), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_ossl_prov_digest_load_from_params
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	_OSSL_KDF_PARAM_PKCS5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_int
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:
	xorl	%eax, %eax
	cmpl	$0, -32(%rbp)
	sete	%al
	movl	%eax, (%r15)
LBB0_4:
	movq	_OSSL_KDF_PARAM_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	20(%r15), %rdi
	leaq	16(%r15), %rsi
	movq	%rax, %rdx
	callq	_pbkdf2_set_membuf
	testl	%eax, %eax
	je	LBB0_20
LBB0_6:
	movq	_OSSL_KDF_PARAM_SALT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	cmpl	$0, (%r15)
	je	LBB0_11
## %bb.8:
	movq	(%rax), %rcx
	movq	_KDF_PBKDF2_MIN_SALT_LEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_11
## %bb.9:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_SALT_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	leaq	12(%r15), %rdi
	leaq	8(%r15), %rsi
	movq	%rax, %rdx
	callq	_pbkdf2_set_membuf
	testl	%eax, %eax
	je	LBB0_20
LBB0_12:
	movq	_OSSL_KDF_PARAM_ITER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_uint64
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	cmpl	$0, (%r15)
	movl	$1, %eax
	je	LBB0_16
## %bb.15:
	movq	_KDF_PBKDF2_MIN_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	movl	-28(%rbp), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_18
## %bb.17:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_INVALID_ITERATION_COUNT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	callq	_ERR_raise
	jmp	LBB0_20
LBB0_18:
	movl	%ecx, 4(%r15)
LBB0_19:
	movl	$1, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_KDF_PARAM_PKCS5,4,2       ## @OSSL_KDF_PARAM_PKCS5
	.comm	_OSSL_KDF_PARAM_PASSWORD,4,2    ## @OSSL_KDF_PARAM_PASSWORD
	.comm	_OSSL_KDF_PARAM_SALT,4,2        ## @OSSL_KDF_PARAM_SALT
	.comm	_KDF_PBKDF2_MIN_SALT_LEN,8,3    ## @KDF_PBKDF2_MIN_SALT_LEN
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_SALT_LENGTH,4,2 ## @PROV_R_INVALID_SALT_LENGTH
	.comm	_OSSL_KDF_PARAM_ITER,4,2        ## @OSSL_KDF_PARAM_ITER
	.comm	_KDF_PBKDF2_MIN_ITERATIONS,4,2  ## @KDF_PBKDF2_MIN_ITERATIONS
	.comm	_PROV_R_INVALID_ITERATION_COUNT,4,2 ## @PROV_R_INVALID_ITERATION_COUNT
	.no_dead_strip	_kdf_pbkdf2_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_pbkdf2_set_ctx_params
_kdf_pbkdf2_set_ctx_params:             ; @kdf_pbkdf2_set_ctx_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_PROV_LIBRARY_CONTEXT_OF
	mov	x2, x0
	add	x0, x19, #24
	mov	x1, x20
	bl	_ossl_prov_digest_load_from_params
	cbz	w0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x8, _OSSL_KDF_PARAM_PKCS5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_KDF_PARAM_PKCS5@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_4
; %bb.2:
	add	x1, sp, #12
	bl	_OSSL_PARAM_get_int
	cbz	w0, LBB0_18
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
LBB0_4:
Lloh3:
	adrp	x8, _OSSL_KDF_PARAM_PASSWORD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_KDF_PARAM_PASSWORD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_6
; %bb.5:
	mov	x2, x0
	add	x0, x19, #20
	add	x1, x19, #16
	bl	_pbkdf2_set_membuf
	cbz	w0, LBB0_18
LBB0_6:
Lloh6:
	adrp	x8, _OSSL_KDF_PARAM_SALT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SALT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_11
; %bb.7:
	mov	x2, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.8:
	ldr	x8, [x2]
Lloh9:
	adrp	x9, _KDF_PBKDF2_MIN_SALT_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KDF_PBKDF2_MIN_SALT_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _PROV_R_INVALID_SALT_LENGTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PROV_R_INVALID_SALT_LENGTH@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	add	x0, x19, #12
	add	x1, x19, #8
	bl	_pbkdf2_set_membuf
	cbz	w0, LBB0_18
LBB0_11:
Lloh17:
	adrp	x8, _OSSL_KDF_PARAM_ITER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OSSL_KDF_PARAM_ITER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_17
; %bb.12:
	add	x1, sp, #8
	bl	_OSSL_PARAM_get_uint64
	cbz	w0, LBB0_18
; %bb.13:
Lloh20:
	adrp	x8, _KDF_PBKDF2_MIN_ITERATIONS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KDF_PBKDF2_MIN_ITERATIONS@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh22:
	ldr	w8, [x8]
	cmp	w9, #0
	csinc	w9, w8, wzr, ne
	ldr	w8, [sp, #8]
	cmp	w8, w9
	b.ge	LBB0_16
; %bb.14:
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_ITERATION_COUNT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PROV_R_INVALID_ITERATION_COUNT@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	str	w8, [x19, #4]
LBB0_17:
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_KDF_PARAM_PKCS5,4,2       ; @OSSL_KDF_PARAM_PKCS5
	.comm	_OSSL_KDF_PARAM_PASSWORD,4,2    ; @OSSL_KDF_PARAM_PASSWORD
	.comm	_OSSL_KDF_PARAM_SALT,4,2        ; @OSSL_KDF_PARAM_SALT
	.comm	_KDF_PBKDF2_MIN_SALT_LEN,8,3    ; @KDF_PBKDF2_MIN_SALT_LEN
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_INVALID_SALT_LENGTH,4,2 ; @PROV_R_INVALID_SALT_LENGTH
	.comm	_OSSL_KDF_PARAM_ITER,4,2        ; @OSSL_KDF_PARAM_ITER
	.comm	_KDF_PBKDF2_MIN_ITERATIONS,4,2  ; @KDF_PBKDF2_MIN_ITERATIONS
	.comm	_PROV_R_INVALID_ITERATION_COUNT,4,2 ; @PROV_R_INVALID_ITERATION_COUNT
	.no_dead_strip	_kdf_pbkdf2_set_ctx_params
.subsections_via_symbols
