	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_scrypt_set_membuf
_pkey_scrypt_set_membuf:                ## @pkey_scrypt_set_membuf
	.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
	movl	$1, %r15d
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movl	%ecx, %r13d
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	js	LBB0_10
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rsi
	callq	_OPENSSL_clear_free
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_OPENSSL_memdup
	jmp	LBB0_7
LBB0_6:
	movl	$1, %edi
	callq	_OPENSSL_malloc
LBB0_7:
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	%r13d, %eax
	movq	%rax, (%r14)
	movl	$1, %r15d
	jmp	LBB0_10
LBB0_8:
	movq	_KDF_F_PKEY_SCRYPT_SET_MEMBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_KDFerr
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KDF_F_PKEY_SCRYPT_SET_MEMBUF,4,2 ## @KDF_F_PKEY_SCRYPT_SET_MEMBUF
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_pkey_scrypt_set_membuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_scrypt_set_membuf
_pkey_scrypt_set_membuf:                ; @pkey_scrypt_set_membuf
	.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
	cbz	x2, LBB0_7
; %bb.1:
	mov	x20, x3
	tbnz	w3, #31, LBB0_10
; %bb.2:
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [x19]
	bl	_OPENSSL_clear_free
LBB0_4:
	cbz	w20, LBB0_8
; %bb.5:
	mov	x0, x22
	mov	x1, x20
	bl	_OPENSSL_memdup
	str	x0, [x21]
	cbz	x0, LBB0_9
LBB0_6:
	mov	w8, w20
	str	x8, [x19]
LBB0_7:
	mov	w0, #1
	b	LBB0_11
LBB0_8:
	mov	w0, #1
	bl	_OPENSSL_malloc
	str	x0, [x21]
	cbnz	x0, LBB0_6
LBB0_9:
Lloh0:
	adrp	x8, _KDF_F_PKEY_SCRYPT_SET_MEMBUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KDF_F_PKEY_SCRYPT_SET_MEMBUF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_KDFerr
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KDF_F_PKEY_SCRYPT_SET_MEMBUF,4,2 ; @KDF_F_PKEY_SCRYPT_SET_MEMBUF
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_pkey_scrypt_set_membuf
.subsections_via_symbols
