	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function import_base64_certs_from_fp
_import_base64_certs_from_fp:           ## @import_base64_certs_from_fp
	.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	$1112, %rsp                     ## imm = 0x458
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -1092(%rbp)               ## 4-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1120(%rbp)
	movaps	%xmm0, -1136(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	_import_base64_certs_from_fp.header(%rip), %r13
	leaq	-1072(%rbp), %rbx
	xorl	%eax, %eax
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-1136(%rbp), %rdi
	callq	_reset_buffer
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	_import_base64_certs_from_fp.trailer(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1136(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_add_line_to_buffer
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-1136(%rbp), %rdi
	movl	-1128(%rbp), %esi
	movq	_CRYPT_STRING_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	xorl	%ecx, %ecx
	leaq	-1076(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_CryptStringToBinaryA
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-1076(%rbp), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	-1136(%rbp), %rdi
	movl	-1128(%rbp), %esi
	movq	_CRYPT_STRING_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	movq	%r14, %rcx
	leaq	-1076(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_CryptStringToBinaryA
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-1076(%rbp), %ecx
	movq	_CERT_STORE_ADD_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-1092(%rbp), %edi               ## 4-byte Reload
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	callq	_CertAddEncodedCertificateToStore
	cmpq	$1, %rax
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	sbbl	$-1, %eax
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
	movq	%r14, %rdi
	callq	_CryptMemFree
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_13:
	movq	-1136(%rbp), %rdi
	movq	-1088(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	xorl	%edi, %edi
LBB0_14:
	callq	_CryptMemFree
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_TRACE
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setg	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_16
## %bb.15:
	movb	%cl, %al
	addq	$1112, %rsp                     ## imm = 0x458
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.section	__TEXT,__const
	.p2align	4                               ## @import_base64_certs_from_fp.header
_import_base64_certs_from_fp.header:
	.asciz	"-----BEGIN CERTIFICATE-----"

	.p2align	4                               ## @import_base64_certs_from_fp.trailer
_import_base64_certs_from_fp.trailer:
	.asciz	"-----END CERTIFICATE-----"

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"begin new certificate\n"

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"end of certificate, adding cert\n"

	.comm	_CRYPT_STRING_BASE64,4,2        ## @CRYPT_STRING_BASE64
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_CERT_STORE_ADD_NEW,4,2         ## @CERT_STORE_ADD_NEW
L_.str.3:                               ## @.str.3
	.asciz	"Read %d certs\n"

	.no_dead_strip	_import_base64_certs_from_fp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function import_base64_certs_from_fp
_import_base64_certs_from_fp:           ; @import_base64_certs_from_fp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1088
	str	w1, [sp, #8]                    ; 4-byte Folded Spill
	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, #-96]
Lloh3:
	adrp	x27, _FALSE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	ldr	w28, [x27]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x0, sp, #48
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	mov	w26, #0
	cbz	x0, LBB0_12
; %bb.1:
Lloh7:
	adrp	x21, _import_base64_certs_from_fp.header@PAGE
Lloh8:
	add	x21, x21, _import_base64_certs_from_fp.header@PAGEOFF
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh11:
	adrp	x19, _TRUE@GOTPAGE
Lloh12:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
Lloh13:
	adrp	x23, _import_base64_certs_from_fp.trailer@PAGE
Lloh14:
	add	x23, x23, _import_base64_certs_from_fp.trailer@PAGEOFF
Lloh15:
	adrp	x24, _CRYPT_STRING_BASE64@GOTPAGE
Lloh16:
	ldr	x24, [x24, _CRYPT_STRING_BASE64@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_TRACE
	ldr	w28, [x19]
	add	x0, sp, #16
	bl	_reset_buffer
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #48
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #48
	mov	x1, x21
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #48
	mov	x1, x23
	bl	_strncmp
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w28, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	add	x1, sp, #48
	bl	_add_line_to_buffer
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w28, [x27]
	ldr	x0, [sp, #16]
	ldr	w1, [sp, #24]
	ldr	w2, [x24]
	add	x4, sp, #12
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	bl	_CryptStringToBinaryA
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #12]
	bl	_CryptMemAlloc
	cbz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	x0, [sp, #16]
	ldr	w1, [sp, #24]
	ldr	w2, [x24]
	add	x4, sp, #12
	mov	x3, x25
	mov	x5, #0
	mov	x6, #0
	bl	_CryptStringToBinaryA
Lloh19:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldp	w0, w3, [sp, #8]                ; 4-byte Folded Reload
Lloh22:
	adrp	x8, _CERT_STORE_ADD_NEW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CERT_STORE_ADD_NEW@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x2, x25
	mov	x5, #0
	bl	_CertAddEncodedCertificateToStore
	cmp	x0, #0
	cinc	w26, w26, ne
	mov	x0, x25
	bl	_CryptMemFree
	b	LBB0_3
LBB0_11:
	ldr	x0, [sp, #16]
LBB0_12:
	bl	_CryptMemFree
	str	x26, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	cmp	w26, #0
	cset	w0, gt
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1088
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.section	__TEXT,__const
_import_base64_certs_from_fp.header:    ; @import_base64_certs_from_fp.header
	.asciz	"-----BEGIN CERTIFICATE-----"

_import_base64_certs_from_fp.trailer:   ; @import_base64_certs_from_fp.trailer
	.asciz	"-----END CERTIFICATE-----"

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"begin new certificate\n"

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"end of certificate, adding cert\n"

	.comm	_CRYPT_STRING_BASE64,4,2        ; @CRYPT_STRING_BASE64
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_CERT_STORE_ADD_NEW,4,2         ; @CERT_STORE_ADD_NEW
l_.str.3:                               ; @.str.3
	.asciz	"Read %d certs\n"

	.no_dead_strip	_import_base64_certs_from_fp
.subsections_via_symbols
