	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_setup_mac               ## -- Begin function PKCS12_setup_mac
	.p2align	4, 0x90
_PKCS12_setup_mac:                      ## @PKCS12_setup_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_PKCS12_MAC_DATA_free
	movq	$0, (%rbx)
	xorl	%eax, %eax
	callq	_PKCS12_MAC_DATA_new
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$2, %r14d
	jl	LBB0_6
## %bb.3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_ASN1_INTEGER_new
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_ASN1_INTEGER_set
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_13
LBB0_6:
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.7:
	movq	_PKCS12_SALT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %edi
	callq	_OPENSSL_malloc
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movl	%r15d, (%rcx)
	movq	%rax, %rdi
	testq	%r12, %r12
	je	LBB0_10
## %bb.11:
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_12
LBB0_1:
	movq	_PKCS12_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_15
LBB0_4:
	movq	_PKCS12_F_PKCS12_SETUP_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	jmp	LBB0_15
LBB0_10:
	movl	%r15d, %esi
	callq	_RAND_bytes
	testq	%rax, %rax
	jle	LBB0_14
LBB0_12:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_X509_SIG_getm
	movq	-56(%rbp), %rbx
	movq	%r13, %rdi
	callq	_EVP_MD_type
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	_V_ASN1_NULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_X509_ALGOR_set0
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_13:
	movq	_PKCS12_F_PKCS12_SETUP_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_ERROR,4,2               ## @PKCS12_ERROR
	.comm	_PKCS12_F_PKCS12_SETUP_MAC,4,2  ## @PKCS12_F_PKCS12_SETUP_MAC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_PKCS12_SALT_LEN,4,2            ## @PKCS12_SALT_LEN
	.comm	_V_ASN1_NULL,4,2                ## @V_ASN1_NULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_setup_mac               ; -- Begin function PKCS12_setup_mac
	.p2align	2
_PKCS12_setup_mac:                      ; @PKCS12_setup_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x0, [x0]
	bl	_PKCS12_MAC_DATA_free
	str	xzr, [x20]
	bl	_PKCS12_MAC_DATA_new
	str	x0, [x20]
	cbz	x0, LBB0_7
; %bb.1:
	cmp	w23, #2
	b.lt	LBB0_4
; %bb.2:
	bl	_ASN1_INTEGER_new
	ldr	x8, [x20]
	str	x0, [x8, #16]
	cbz	x0, LBB0_11
; %bb.3:
	mov	x1, x23
	bl	_ASN1_INTEGER_set
	cbz	w0, LBB0_11
LBB0_4:
Lloh0:
	adrp	x8, _PKCS12_SALT_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_SALT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w22, w8, w22, eq
	mov	x0, x22
	bl	_OPENSSL_malloc
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_11
; %bb.5:
	str	w22, [x8]
	cbz	x21, LBB0_8
; %bb.6:
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	b	LBB0_9
LBB0_7:
Lloh3:
	adrp	x8, _PKCS12_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKCS12_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_8:
	mov	x1, x22
	bl	_RAND_bytes
	cmp	x0, #1
	b.lt	LBB0_12
LBB0_9:
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_X509_SIG_getm
	ldr	x20, [sp, #8]
	mov	x0, x19
	bl	_EVP_MD_type
	bl	_OBJ_nid2obj
	mov	x1, x0
Lloh6:
	adrp	x8, _V_ASN1_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_ASN1_NULL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	bl	_X509_ALGOR_set0
	cbz	w0, LBB0_11
; %bb.10:
	mov	w0, #1
	b	LBB0_13
LBB0_11:
Lloh9:
	adrp	x8, _PKCS12_F_PKCS12_SETUP_MAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PKCS12_F_PKCS12_SETUP_MAC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_PKCS12err
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_ERROR,4,2               ; @PKCS12_ERROR
	.comm	_PKCS12_F_PKCS12_SETUP_MAC,4,2  ; @PKCS12_F_PKCS12_SETUP_MAC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_PKCS12_SALT_LEN,4,2            ; @PKCS12_SALT_LEN
	.comm	_V_ASN1_NULL,4,2                ; @V_ASN1_NULL
.subsections_via_symbols
