	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkcs12_gen_gost_mac_key
_pkcs12_gen_gost_mac_key:               ## @pkcs12_gen_gost_mac_key
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_TK26_MAC_KEY_LEN@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpl	%r9d, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	24(%rbp), %r9
	leaq	-128(%rbp), %r14
	pushq	%r14
	pushq	$96
	callq	_PKCS5_PBKDF2_HMAC
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	16(%rbp), %rdi
	movslq	(%r15), %rdx
	movq	%r14, %rsi
	subq	%rdx, %rsi
	addq	$96, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r14, %rdi
	movl	$96, %esi
	callq	_OPENSSL_cleanse
	movl	$1, %ebx
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TK26_MAC_KEY_LEN,4,2           ## @TK26_MAC_KEY_LEN
	.no_dead_strip	_pkcs12_gen_gost_mac_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkcs12_gen_gost_mac_key
_pkcs12_gen_gost_mac_key:               ; @pkcs12_gen_gost_mac_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh3:
	adrp	x20, _TK26_MAC_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TK26_MAC_KEY_LEN@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, w5
	b.ne	LBB0_3
; %bb.1:
	mov	x8, x7
	mov	x19, x6
	add	x21, sp, #8
	add	x7, sp, #8
	mov	x5, x8
	mov	w6, #96
	bl	_PKCS5_PBKDF2_HMAC
	cbz	w0, LBB0_4
; %bb.2:
	ldrsw	x2, [x20]
	sub	x8, x21, x2
	add	x1, x8, #96
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	add	x0, sp, #8
	mov	w1, #96
	bl	_OPENSSL_cleanse
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TK26_MAC_KEY_LEN,4,2           ; @TK26_MAC_KEY_LEN
	.no_dead_strip	_pkcs12_gen_gost_mac_key
.subsections_via_symbols
