	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function certBag_parser
_certBag_parser:                        ## @certBag_parser
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %rax
	movq	%rsi, %r12
	movl	%edi, %r15d
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rcx, %rsi
	xorl	%ecx, %ecx
	callq	_decode_PKCS12_CertBag
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	leaq	-40(%rbp), %rsi
	movq	_asn1_oid_id_pkcs_9_at_certTypes_x509@GOTPCREL(%rip), %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_free_PKCS12_CertBag
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_3:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_decode_PKCS12_OctetString
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_free_PKCS12_CertBag
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.4:
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %esi
	leaq	-36(%rbp), %rcx
	movl	%r15d, %edi
	callq	_hx509_cert_init_data
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_der_free_octet_string
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.5:
	movl	-36(%rbp), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	__hx509_collector_certs_add
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_hx509_cert_free
LBB0_12:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_asn1_oid_id_pkcs_9_at_localKeyId@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_find_attribute
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	-36(%rbp), %esi
	movq	_asn1_oid_id_pkcs_9_at_localKeyId@GOTPCREL(%rip), %rdx
	movl	%r15d, %edi
	movq	%rax, %rcx
	callq	__hx509_set_cert_attribute
LBB0_8:
	movq	_asn1_oid_id_pkcs_9_at_friendlyName@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_find_attribute
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	-36(%rbp), %esi
	movq	_asn1_oid_id_pkcs_9_at_friendlyName@GOTPCREL(%rip), %rdx
	movl	%r15d, %edi
	movq	%rax, %rcx
	callq	__hx509_set_cert_attribute
LBB0_10:
	movl	-36(%rbp), %edi
	callq	_hx509_cert_free
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_asn1_oid_id_pkcs_9_at_certTypes_x509,4,2 ## @asn1_oid_id_pkcs_9_at_certTypes_x509
	.comm	_asn1_oid_id_pkcs_9_at_localKeyId,4,2 ## @asn1_oid_id_pkcs_9_at_localKeyId
	.comm	_asn1_oid_id_pkcs_9_at_friendlyName,4,2 ## @asn1_oid_id_pkcs_9_at_friendlyName
	.no_dead_strip	_certBag_parser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function certBag_parser
_certBag_parser:                        ; @certBag_parser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x8, x2
	mov	x21, x1
	mov	x19, x0
	add	x23, sp, #8
	add	x2, sp, #8
	mov	x0, x8
	mov	x1, x3
	mov	x3, #0
	bl	_decode_PKCS12_CertBag
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.1:
	add	x1, x23, #8
Lloh0:
	adrp	x0, _asn1_oid_id_pkcs_9_at_certTypes_x509@GOTPAGE
Lloh1:
	ldr	x0, [x0, _asn1_oid_id_pkcs_9_at_certTypes_x509@GOTPAGEOFF]
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #8
	bl	_free_PKCS12_CertBag
LBB0_3:
	mov	w22, #0
	b	LBB0_8
LBB0_4:
	ldp	w1, w0, [sp, #8]
	add	x2, sp, #24
	mov	x3, #0
	bl	_decode_PKCS12_OctetString
	mov	x22, x0
	add	x0, sp, #8
	bl	_free_PKCS12_CertBag
	cbnz	w22, LBB0_8
; %bb.5:
	ldp	w2, w1, [sp, #24]
	add	x3, sp, #20
	mov	x0, x19
	bl	_hx509_cert_init_data
	mov	x22, x0
	add	x0, sp, #24
	bl	_der_free_octet_string
	cbnz	w22, LBB0_8
; %bb.6:
	ldr	w2, [sp, #20]
	mov	x0, x19
	mov	x1, x21
	bl	__hx509_collector_certs_add
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
	ldr	w0, [sp, #20]
	bl	_hx509_cert_free
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh2:
	adrp	x1, _asn1_oid_id_pkcs_9_at_localKeyId@GOTPAGE
Lloh3:
	ldr	x1, [x1, _asn1_oid_id_pkcs_9_at_localKeyId@GOTPAGEOFF]
	mov	x0, x20
	bl	_find_attribute
	cbz	x0, LBB0_11
; %bb.10:
	mov	x3, x0
	ldr	w1, [sp, #20]
Lloh4:
	adrp	x2, _asn1_oid_id_pkcs_9_at_localKeyId@GOTPAGE
Lloh5:
	ldr	x2, [x2, _asn1_oid_id_pkcs_9_at_localKeyId@GOTPAGEOFF]
	mov	x0, x19
	bl	__hx509_set_cert_attribute
LBB0_11:
Lloh6:
	adrp	x1, _asn1_oid_id_pkcs_9_at_friendlyName@GOTPAGE
Lloh7:
	ldr	x1, [x1, _asn1_oid_id_pkcs_9_at_friendlyName@GOTPAGEOFF]
	mov	x0, x20
	bl	_find_attribute
	cbz	x0, LBB0_13
; %bb.12:
	mov	x3, x0
	ldr	w1, [sp, #20]
Lloh8:
	adrp	x2, _asn1_oid_id_pkcs_9_at_friendlyName@GOTPAGE
Lloh9:
	ldr	x2, [x2, _asn1_oid_id_pkcs_9_at_friendlyName@GOTPAGEOFF]
	mov	x0, x19
	bl	__hx509_set_cert_attribute
LBB0_13:
	ldr	w0, [sp, #20]
	bl	_hx509_cert_free
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_asn1_oid_id_pkcs_9_at_certTypes_x509,4,2 ; @asn1_oid_id_pkcs_9_at_certTypes_x509
	.comm	_asn1_oid_id_pkcs_9_at_localKeyId,4,2 ; @asn1_oid_id_pkcs_9_at_localKeyId
	.comm	_asn1_oid_id_pkcs_9_at_friendlyName,4,2 ; @asn1_oid_id_pkcs_9_at_friendlyName
	.no_dead_strip	_certBag_parser
.subsections_via_symbols
