	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function download_trust_roots
_download_trust_roots:                  ## @download_trust_roots
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_os_strdup
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_os_strrchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movb	$0, (%rax)
	leaq	L_.str(%rip), %rdx
	leaq	-352(%rbp), %r13
	movq	%r13, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	movq	%r14, %rcx
	callq	_snprintf
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_cmd_dl_osu_ca
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	movq	%r14, %rcx
	callq	_snprintf
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_cmd_dl_polupd_ca
	notl	%eax
	orl	%ebx, %eax
	movl	$-1, %eax
	cmovel	%eax, %ebx
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	movq	%r14, %rcx
	callq	_snprintf
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_cmd_dl_aaa_ca
	notl	%eax
	orl	%ebx, %eax
	movl	$-1, %eax
	cmovel	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_os_free
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/ca.pem"

L_.str.1:                               ## @.str.1
	.asciz	"%s/polupd-ca.pem"

L_.str.2:                               ## @.str.2
	.asciz	"%s/aaa-ca.pem"

	.no_dead_strip	_download_trust_roots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function download_trust_roots
_download_trust_roots:                  ; @download_trust_roots
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_os_strdup
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #47
	bl	_os_strrchr
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	w1, #300
	mov	x3, x19
	bl	_snprintf
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_cmd_dl_osu_ca
	mov	x22, x0
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #12
	mov	w1, #300
	mov	x3, x19
	bl	_snprintf
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_cmd_dl_polupd_ca
	cmn	w0, #1
	ccmp	w22, #0, #0, eq
	csinv	w22, w22, wzr, ne
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #12
	mov	w1, #300
	mov	x3, x19
	bl	_snprintf
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_cmd_dl_aaa_ca
	cmn	w0, #1
	ccmp	w22, #0, #0, eq
	csinv	w20, w22, wzr, ne
	mov	x0, x19
	bl	_os_free
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_os_free
LBB0_4:
	mov	w20, #-1
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/ca.pem"

l_.str.1:                               ; @.str.1
	.asciz	"%s/polupd-ca.pem"

l_.str.2:                               ; @.str.2
	.asciz	"%s/aaa-ca.pem"

	.no_dead_strip	_download_trust_roots
.subsections_via_symbols
