	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kdf_scrypt_set_ctx_params
_kdf_scrypt_set_ctx_params:             ## @kdf_scrypt_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, %r15
	movq	%rdi, %r14
	movq	_OSSL_KDF_PARAM_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	28(%r14), %rdi
	leaq	24(%r14), %rsi
	movq	%rax, %rdx
	callq	_scrypt_set_membuf
	testl	%eax, %eax
	je	LBB0_22
LBB0_2:
	movq	_OSSL_KDF_PARAM_SALT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	20(%r14), %rdi
	leaq	16(%r14), %rsi
	movq	%rax, %rdx
	callq	_scrypt_set_membuf
	testl	%eax, %eax
	je	LBB0_22
LBB0_4:
	movq	_OSSL_KDF_PARAM_SCRYPT_N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_uint64
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.6:
	movl	-28(%rbp), %edi
	cmpl	$2, %edi
	jl	LBB0_23
## %bb.7:
	callq	_is_power_of_two
	testl	%eax, %eax
	je	LBB0_23
## %bb.8:
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
LBB0_9:
	movq	_OSSL_KDF_PARAM_SCRYPT_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_uint64
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.11:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.12:
	movl	%eax, 4(%r14)
LBB0_13:
	movq	_OSSL_KDF_PARAM_SCRYPT_P@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_uint64
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.15:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.16:
	movl	%eax, 8(%r14)
LBB0_17:
	movq	_OSSL_KDF_PARAM_SCRYPT_MAXMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OSSL_PARAM_locate_const
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	callq	_OSSL_PARAM_get_uint64
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.20:
	movl	%eax, 12(%r14)
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_KDF_PARAM_PASSWORD,4,2    ## @OSSL_KDF_PARAM_PASSWORD
	.comm	_OSSL_KDF_PARAM_SALT,4,2        ## @OSSL_KDF_PARAM_SALT
	.comm	_OSSL_KDF_PARAM_SCRYPT_N,4,2    ## @OSSL_KDF_PARAM_SCRYPT_N
	.comm	_OSSL_KDF_PARAM_SCRYPT_R,4,2    ## @OSSL_KDF_PARAM_SCRYPT_R
	.comm	_OSSL_KDF_PARAM_SCRYPT_P,4,2    ## @OSSL_KDF_PARAM_SCRYPT_P
	.comm	_OSSL_KDF_PARAM_SCRYPT_MAXMEM,4,2 ## @OSSL_KDF_PARAM_SCRYPT_MAXMEM
	.no_dead_strip	_kdf_scrypt_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_scrypt_set_ctx_params
_kdf_scrypt_set_ctx_params:             ; @kdf_scrypt_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
Lloh0:
	adrp	x8, _OSSL_KDF_PARAM_PASSWORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSSL_KDF_PARAM_PASSWORD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
	add	x0, x19, #28
	add	x1, x19, #24
	bl	_scrypt_set_membuf
	cbz	w0, LBB0_20
LBB0_2:
Lloh3:
	adrp	x8, _OSSL_KDF_PARAM_SALT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SALT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_4
; %bb.3:
	mov	x2, x0
	add	x0, x19, #20
	add	x1, x19, #16
	bl	_scrypt_set_membuf
	cbz	w0, LBB0_20
LBB0_4:
Lloh6:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_N@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_N@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_8
; %bb.5:
	add	x1, sp, #12
	bl	_OSSL_PARAM_get_uint64
	mov	x8, x0
	ldr	w0, [sp, #12]
	cmp	w8, #0
	ccmp	w0, #2, #8, ne
	b.lt	LBB0_13
; %bb.6:
	bl	_is_power_of_two
	cbz	w0, LBB0_20
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_8:
Lloh9:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_R@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_R@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_11
; %bb.9:
	add	x1, sp, #12
	bl	_OSSL_PARAM_get_uint64
	ldr	w8, [sp, #12]
	cmp	w0, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_13
; %bb.10:
	str	w8, [x19, #4]
LBB0_11:
Lloh12:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_P@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_P@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_15
; %bb.12:
	add	x1, sp, #12
	bl	_OSSL_PARAM_get_uint64
	ldr	w8, [sp, #12]
	cmp	w0, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_20
LBB0_14:
	str	w8, [x19, #8]
LBB0_15:
Lloh15:
	adrp	x8, _OSSL_KDF_PARAM_SCRYPT_MAXMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OSSL_KDF_PARAM_SCRYPT_MAXMEM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OSSL_PARAM_locate_const
	cbz	x0, LBB0_19
; %bb.16:
	add	x1, sp, #12
	bl	_OSSL_PARAM_get_uint64
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_20
; %bb.17:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:
	str	w8, [x19, #12]
LBB0_19:
	mov	w0, #1
LBB0_20:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_KDF_PARAM_PASSWORD,4,2    ; @OSSL_KDF_PARAM_PASSWORD
	.comm	_OSSL_KDF_PARAM_SALT,4,2        ; @OSSL_KDF_PARAM_SALT
	.comm	_OSSL_KDF_PARAM_SCRYPT_N,4,2    ; @OSSL_KDF_PARAM_SCRYPT_N
	.comm	_OSSL_KDF_PARAM_SCRYPT_R,4,2    ; @OSSL_KDF_PARAM_SCRYPT_R
	.comm	_OSSL_KDF_PARAM_SCRYPT_P,4,2    ; @OSSL_KDF_PARAM_SCRYPT_P
	.comm	_OSSL_KDF_PARAM_SCRYPT_MAXMEM,4,2 ; @OSSL_KDF_PARAM_SCRYPT_MAXMEM
	.no_dead_strip	_kdf_scrypt_set_ctx_params
.subsections_via_symbols
