	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_set_mac                 ## -- Begin function PKCS12_set_mac
	.p2align	4, 0x90
_PKCS12_set_mac:                        ## @PKCS12_set_mac
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r13d
	movq	%rcx, %r12
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rbp), %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_EVP_sha1
	movq	%rax, %r14
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_PKCS12_setup_mac
	movq	_PKCS12_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_PKCS12_F_PKCS12_SET_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_MAC_SETUP_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_PKCS12_key_gen_utf8@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_pkcs12_gen_mac
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rdx
	xorl	%esi, %esi
	callq	_X509_SIG_getm
	movq	-80(%rbp), %rdi
	movl	-56(%rbp), %edx
	movq	%r14, %rsi
	callq	_ASN1_OCTET_STRING_set
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.7:
	movq	_PKCS12_F_PKCS12_SET_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_MAC_STRING_SET_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_PKCS12_F_PKCS12_SET_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS12_R_MAC_GENERATION_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_PKCS12err
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_PKCS12_ERROR,8,3               ## @PKCS12_ERROR
	.comm	_PKCS12_F_PKCS12_SET_MAC,4,2    ## @PKCS12_F_PKCS12_SET_MAC
	.comm	_PKCS12_R_MAC_SETUP_ERROR,4,2   ## @PKCS12_R_MAC_SETUP_ERROR
	.comm	_PKCS12_key_gen_utf8,4,2        ## @PKCS12_key_gen_utf8
	.comm	_PKCS12_R_MAC_GENERATION_ERROR,4,2 ## @PKCS12_R_MAC_GENERATION_ERROR
	.comm	_PKCS12_R_MAC_STRING_SET_ERROR,4,2 ## @PKCS12_R_MAC_STRING_SET_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_set_mac                 ; -- Begin function PKCS12_set_mac
	.p2align	2
_PKCS12_set_mac:                        ; @PKCS12_set_mac
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x24, x5
	mov	x23, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	cbnz	x6, LBB0_2
; %bb.1:
	bl	_EVP_sha1
	mov	x6, x0
LBB0_2:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	mov	x4, x6
	bl	_PKCS12_setup_mac
Lloh8:
	adrp	x8, _PKCS12_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PKCS12_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _PKCS12_F_PKCS12_SET_MAC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PKCS12_F_PKCS12_SET_MAC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PKCS12_R_MAC_SETUP_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PKCS12_R_MAC_SETUP_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh16:
	adrp	x8, _PKCS12_key_gen_utf8@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PKCS12_key_gen_utf8@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
	sub	x4, x29, #76
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_pkcs12_gen_mac
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8]
	sub	x2, x29, #88
	mov	x1, #0
	bl	_X509_SIG_getm
	ldur	x0, [x29, #-88]
	ldur	w2, [x29, #-76]
	mov	x1, x19
	bl	_ASN1_OCTET_STRING_set
	cbz	w0, LBB0_8
; %bb.6:
	mov	w0, #1
	b	LBB0_10
LBB0_7:
Lloh19:
	adrp	x8, _PKCS12_F_PKCS12_SET_MAC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PKCS12_F_PKCS12_SET_MAC@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _PKCS12_R_MAC_GENERATION_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PKCS12_R_MAC_GENERATION_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _PKCS12_F_PKCS12_SET_MAC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PKCS12_F_PKCS12_SET_MAC@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _PKCS12_R_MAC_STRING_SET_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PKCS12_R_MAC_STRING_SET_ERROR@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	bl	_PKCS12err
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_PKCS12_ERROR,8,3               ; @PKCS12_ERROR
	.comm	_PKCS12_F_PKCS12_SET_MAC,4,2    ; @PKCS12_F_PKCS12_SET_MAC
	.comm	_PKCS12_R_MAC_SETUP_ERROR,4,2   ; @PKCS12_R_MAC_SETUP_ERROR
	.comm	_PKCS12_key_gen_utf8,4,2        ; @PKCS12_key_gen_utf8
	.comm	_PKCS12_R_MAC_GENERATION_ERROR,4,2 ; @PKCS12_R_MAC_GENERATION_ERROR
	.comm	_PKCS12_R_MAC_STRING_SET_ERROR,4,2 ; @PKCS12_R_MAC_STRING_SET_ERROR
.subsections_via_symbols
