	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_item_pack_safebag       ## -- Begin function PKCS12_item_pack_safebag
	.p2align	4, 0x90
_PKCS12_item_pack_safebag:              ## @PKCS12_item_pack_safebag
	.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	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_PKCS12_BAGS_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_OBJ_nid2obj
	movq	%rax, 8(%r15)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ASN1_item_pack
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_PKCS12_SAFEBAG_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movl	%r14d, %edi
	callq	_OBJ_nid2obj
	movq	%rax, (%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	_PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	jmp	LBB0_6
LBB0_5:
	movq	_PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	movq	%r15, %rdi
	callq	_PKCS12_BAGS_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG,4,2 ## @PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS12_item_pack_safebag       ; -- Begin function PKCS12_item_pack_safebag
	.p2align	2
_PKCS12_item_pack_safebag:              ; @PKCS12_item_pack_safebag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	bl	_PKCS12_BAGS_new
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	bl	_OBJ_nid2obj
	str	x0, [x19, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_ASN1_item_pack
	cbz	w0, LBB0_5
; %bb.2:
	bl	_PKCS12_SAFEBAG_new
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	str	x19, [x0, #8]
	mov	x0, x20
	bl	_OBJ_nid2obj
	str	x0, [x21]
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG@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	_PKCS12err
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_PKCS12err
	mov	x0, x19
	bl	_PKCS12_BAGS_free
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG,4,2 ; @PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
