	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p12_init
_p12_init:                              ## @p12_init
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r12
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movl	%edi, %r13d
	movq	$0, (%rdx)
	testq	%r9, %r9
	jne	LBB0_2
## %bb.1:
	movq	__hx509_empty_lock@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	leaq	-72(%rbp), %rdx
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	__hx509_collector_alloc
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strdup
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_HX509_CERTS_CREATE@GOTPCREL(%rip), %rax
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_hx509_certs_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.7:
	movq	%r14, (%rbx)
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rcx
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	movq	%r12, %r14
	jmp	LBB0_18
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rcx
LBB0_11:
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_hx509_set_error_string
	jmp	LBB0_17
LBB0_12:
	leaq	-104(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rk_undumpdata
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %r15d
LBB0_14:
	movl	%r13d, %edi
	callq	_hx509_clear_error_string
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %r12
	movq	-104(%rbp), %rdi
	movq	-128(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_decode_PKCS12_PFX
	movl	%eax, %r15d
	movq	-104(%rbp), %rdi
	callq	_rk_xfree
	testl	%r15d, %r15d
	je	LBB0_26
## %bb.16:
	leaq	L_.str.2(%rip), %rcx
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_hx509_set_error_string
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movq	-72(%rbp), %rdi
	callq	__hx509_collector_free
	testq	%r14, %r14
	je	LBB0_25
## %bb.19:
	testl	%r15d, %r15d
	je	LBB0_25
## %bb.20:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_free
LBB0_22:
	cmpq	$0, (%r14)
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_hx509_certs_free
LBB0_24:
	movq	%r14, %rdi
	callq	_free
LBB0_25:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	-88(%rbp), %rdi
	movq	_asn1_oid_id_pkcs7_data@GOTPCREL(%rip), %rsi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	-96(%rbp), %rdi
	callq	_free_PKCS12_PFX
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.3(%rip), %rcx
	jmp	LBB0_11
LBB0_28:
	movq	-96(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.29:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_decode_PKCS12_OctetString
	movl	%eax, %r15d
	leaq	-96(%rbp), %rdi
	callq	_free_PKCS12_PFX
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.30:
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	leaq	-120(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_decode_PKCS12_AuthenticatedSafe
	movl	%eax, %r15d
	leaq	-64(%rbp), %rdi
	callq	_der_free_octet_string
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.31:
	cmpq	$0, -120(%rbp)
	je	LBB0_34
## %bb.32:
	movl	$8, %ebx
	xorl	%r14d, %r14d
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rsi
	movq	-112(%rbp), %rdx
	movq	-8(%rdx,%rbx), %rax
	addq	%rbx, %rdx
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movl	%r13d, %edi
	xorl	%r9d, %r9d
	callq	_parse_pkcs12_type
	incq	%r14
	addq	$16, %rbx
	cmpq	-120(%rbp), %r14
	jb	LBB0_33
LBB0_34:
	leaq	-120(%rbp), %rdi
	callq	_free_PKCS12_AuthenticatedSafe
	movq	-72(%rbp), %rsi
	movl	%r13d, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	__hx509_collector_collect_certs
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.35:
	movq	%r14, (%r12)
	jmp	LBB0_8
LBB0_36:
	leaq	-96(%rbp), %rdi
	callq	_free_PKCS12_PFX
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	__hx509_empty_lock,8,3          ## @_hx509_empty_lock
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_HX509_CERTS_CREATE,4,2         ## @HX509_CERTS_CREATE
L_.str.1:                               ## @.str.1
	.asciz	"MEMORY:ks-file-create"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to decode the PFX in %s"

	.comm	_asn1_oid_id_pkcs7_data,4,2     ## @asn1_oid_id_pkcs7_data
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"PKCS PFX isn't a pkcs7-data container"

L_.str.4:                               ## @.str.4
	.asciz	"PKCS PFX missing data"

	.no_dead_strip	_p12_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p12_init
_p12_init:                              ; @p12_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x25, x3
	mov	x21, x2
	mov	x20, x0
	str	xzr, [x2]
Lloh0:
	adrp	x8, __hx509_empty_lock@GOTPAGE
Lloh1:
	ldr	x8, [x8, __hx509_empty_lock@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x5, #0
	csel	x24, x8, x5, eq
	add	x2, sp, #24
	mov	x1, x24
	bl	__hx509_collector_alloc
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.1:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x23
	bl	_strdup
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _HX509_CERTS_CREATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HX509_CERTS_CREATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_16
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	mov	x3, x24
	mov	x4, x19
	bl	_hx509_certs_init
	mov	x22, x0
	cbnz	w0, LBB0_8
LBB0_5:
	str	x19, [x21]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_hx509_set_error_string
LBB0_8:
	ldr	x0, [sp, #24]
	bl	__hx509_collector_free
	cbz	x19, LBB0_15
; %bb.9:
	cbz	w22, LBB0_15
; %bb.10:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_free
LBB0_12:
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_hx509_certs_free
LBB0_14:
	mov	x0, x19
	bl	_free
LBB0_15:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	add	x1, sp, #64
	add	x2, sp, #72
	mov	x0, x23
	bl	_rk_undumpdata
	cbz	w0, LBB0_19
; %bb.17:
	mov	x22, x0
LBB0_18:
	mov	x0, x20
	bl	_hx509_clear_error_string
	b	LBB0_8
LBB0_19:
	ldp	x0, x1, [sp, #64]
	add	x24, sp, #48
	add	x2, sp, #48
	mov	x3, #0
	bl	_decode_PKCS12_PFX
	mov	x22, x0
	ldr	x0, [sp, #64]
	bl	_rk_xfree
	cbz	w22, LBB0_21
; %bb.20:
	str	x23, [sp]
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_21:
	add	x0, x24, #8
Lloh15:
	adrp	x1, _asn1_oid_id_pkcs7_data@GOTPAGE
Lloh16:
	ldr	x1, [x1, _asn1_oid_id_pkcs7_data@GOTPAGEOFF]
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_23
; %bb.22:
	add	x0, sp, #48
	bl	_free_PKCS12_PFX
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w22, [x8]
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_23:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_30
; %bb.24:
	ldp	w1, w0, [x8]
	add	x2, sp, #16
	mov	x3, #0
	bl	_decode_PKCS12_OctetString
	mov	x22, x0
	add	x0, sp, #48
	bl	_free_PKCS12_PFX
	cbnz	w22, LBB0_18
; %bb.25:
	ldp	w1, w0, [sp, #16]
	add	x2, sp, #32
	mov	x3, #0
	bl	_decode_PKCS12_AuthenticatedSafe
	mov	x22, x0
	add	x0, sp, #16
	bl	_der_free_octet_string
	cbnz	w22, LBB0_18
; %bb.26:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_29
; %bb.27:
	mov	x22, #0
	mov	x23, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [sp, #24]
	ldr	x8, [sp, #40]
	add	x2, x8, x22
	ldr	x8, [x2], #8
	ldp	w4, w3, [x8]
	mov	x0, x20
	mov	x5, #0
	bl	_parse_pkcs12_type
	add	x23, x23, #1
	ldr	x8, [sp, #32]
	add	x22, x22, #16
	cmp	x23, x8
	b.lo	LBB0_28
LBB0_29:
	add	x0, sp, #32
	bl	_free_PKCS12_AuthenticatedSafe
	ldr	x1, [sp, #24]
	mov	x0, x20
	mov	x2, x19
	bl	__hx509_collector_collect_certs
	mov	x22, x0
	cbnz	w0, LBB0_8
	b	LBB0_5
LBB0_30:
	add	x0, sp, #48
	bl	_free_PKCS12_PFX
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
Lloh25:
	adrp	x3, l_.str.4@PAGE
Lloh26:
	add	x3, x3, l_.str.4@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	__hx509_empty_lock,8,3          ; @_hx509_empty_lock
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_HX509_CERTS_CREATE,4,2         ; @HX509_CERTS_CREATE
l_.str.1:                               ; @.str.1
	.asciz	"MEMORY:ks-file-create"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to decode the PFX in %s"

	.comm	_asn1_oid_id_pkcs7_data,4,2     ; @asn1_oid_id_pkcs7_data
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"PKCS PFX isn't a pkcs7-data container"

l_.str.4:                               ; @.str.4
	.asciz	"PKCS PFX missing data"

	.no_dead_strip	_p12_init
.subsections_via_symbols
