	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function download
_download:                              ## @download
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	cmpb	$0, (%rax)
	je	LBB0_23
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_checkCurl
	testl	%eax, %eax
	je	LBB0_23
## %bb.3:
	movq	(%r13), %rdi
	callq	_strlen
	movslq	%eax, %rbx
	leaq	1(%rbx), %r15
	movq	%r15, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.4:
	movq	%rax, %r12
	movq	(%r13), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	$95, -1(%rbx,%r12)
	movq	8(%r13), %rdi
	callq	_r_str_escape
	movq	%rax, %rbx
	movq	(%r13), %rdi
	callq	_r_str_escape
	movq	%rax, %r14
	movq	16(%r13), %rdi
	callq	_r_str_escape
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_r_str_escape
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rdi
	callq	_r_str_escape
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	32(%r13), %rdi
	callq	_r_str_escape
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_checkExtract
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_5
LBB0_9:
	movq	_R_SYS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movl	%edx, %r8d
	movq	%r15, %r9
	xorl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	%rdx
	callq	_r_str_newf
	addq	$16, %rsp
	movq	%rax, %r12
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	movq	%rbx, %r9
	xorl	%eax, %eax
	pushq	%r12
	callq	_r_str_newf
	addq	$16, %rsp
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_r_file_dirname
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_r_str_newf
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_R_FREE
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_eprintf
	movq	%r14, %rdi
	callq	_r_sys_cmd
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rbx
	leaq	L_.str.5(%rip), %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_eprintf
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	cmpq	$0, 40(%r13)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jg	LBB0_17
	jmp	LBB0_18
LBB0_5:
	cmpq	$0, 40(%r13)
	je	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
	cmpq	$0, 40(%r13)
	jle	LBB0_12
## %bb.13:
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_r_sys_cmd
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_16
LBB0_12:
	movq	%r15, %rbx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_14:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_17:
	movq	%r12, %rdi
	callq	_r_file_rm
LBB0_18:
	movq	%r14, %rdi
	callq	_R_FREE
	movq	%r12, %rdi
	callq	_R_FREE
	movl	$1, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
## %bb.19:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_7:
	leaq	L_.str.8(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_eprintf
	movb	$98, -1(%r12,%r15)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_R_FREE
	movq	%r12, %rdi
	callq	_r_str_escape
	movq	%rax, %r12
	movq	_R_SYS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, %r8d
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r12
	pushq	%rdx
	callq	_r_str_newf
	addq	$16, %rsp
	movq	%rax, %r15
	movq	24(%r13), %rsi
	movq	32(%r13), %rdx
	movq	(%r13), %rcx
	movq	16(%r13), %r8
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %r9
	xorl	%eax, %eax
	pushq	%r15
	callq	_r_str_newf
	addq	$16, %rsp
	movq	%rax, %r12
	leaq	L_.str.9(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_eprintf
	movq	%r12, %rdi
	callq	_r_sys_cmd
	testq	%rax, %rax
	je	LBB0_8
## %bb.20:
	leaq	L_.str.5(%rip), %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_21
LBB0_8:
	movl	$1, %r14d
LBB0_21:
	movq	%r12, %rdi
	callq	_R_FREE
	movq	%r15, %rdi
	callq	_R_FREE
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_22:
	movq	%r12, %rdi
	callq	_R_FREE
	movq	%rbx, %rdi
	callq	_R_FREE
	movq	%r15, %rdi
	callq	_R_FREE
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_R_FREE
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_R_FREE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_R_FREE
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_R_FREE
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_R_FREE
LBB0_23:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s%s%s%s%s%s"

	.comm	_R_SYS_DIR,4,2                  ## @R_SYS_DIR
L_.str.1:                               ## @.str.1
	.asciz	"curl -sfLA \"%s\" \"%s/%s/%s/%s\" --create-dirs -o \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"cabextract"

L_.str.3:                               ## @.str.3
	.asciz	"%s -d \"%s\" \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"Attempting to download compressed pdb in %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"curl exited with error %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Attempting to decompress pdb\n"

L_.str.7:                               ## @.str.7
	.asciz	"cab extractor exited with error %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Falling back to uncompressed pdb\n"

L_.str.9:                               ## @.str.9
	.asciz	"Attempting to download uncompressed pdb in %s\n"

	.no_dead_strip	_download
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function download
_download:                              ; @download
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x24, [x0]
	ldr	x8, [x24]
	cbz	x8, LBB0_7
; %bb.1:
	ldrb	w8, [x8]
	cbz	w8, LBB0_7
; %bb.2:
	bl	_checkCurl
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x24]
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	add	x20, x21, #1
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x19, x0
	ldr	x1, [x24]
	mov	x2, x20
	bl	_memcpy
	sub	x26, x21, #1
	mov	w8, #95
	strb	w8, [x19, x26]
	ldr	x0, [x24, #8]
	bl	_r_str_escape
	mov	x20, x0
	ldr	x0, [x24]
	bl	_r_str_escape
	mov	x21, x0
	ldr	x0, [x24, #16]
	bl	_r_str_escape
	mov	x22, x0
	mov	x0, x19
	bl	_r_str_escape
	mov	x25, x0
	ldr	x0, [x24, #24]
	bl	_r_str_escape
	mov	x23, x0
	ldr	x0, [x24, #32]
	bl	_r_str_escape
	mov	x28, x0
	bl	_checkExtract
Lloh0:
	adrp	x27, _R_SYS_DIR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _R_SYS_DIR@GOTPAGEOFF]
	stp	x28, x23, [sp, #40]             ; 16-byte Folded Spill
	cbz	x0, LBB0_9
LBB0_5:
	ldrsw	x2, [x27]
	stp	x2, x25, [sp, #16]
	stp	x2, x22, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x21
	bl	_r_str_newf
	mov	x27, x0
	stp	x25, x0, [sp, #8]
	str	x22, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x28
	mov	x3, x21
	bl	_r_str_newf
	mov	x28, x0
	mov	x0, x27
	bl	_r_file_dirname
	mov	x23, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x3, x27
	bl	_r_str_newf
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x23
	bl	_R_FREE
	str	x27, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_eprintf
	mov	x0, x28
	bl	_r_sys_cmd
	cbz	x0, LBB0_11
; %bb.6:
	mov	w8, #1
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintf
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintf
	mov	w23, #0
	ldr	x8, [x24, #40]
	cmp	x8, #0
	b.gt	LBB0_16
	b	LBB0_17
LBB0_7:
	mov	w27, #0
LBB0_8:
	mov	x0, x27
	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
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_5
; %bb.10:
	str	xzr, [sp, #56]                  ; 8-byte Folded Spill
	b	LBB0_20
LBB0_11:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_eprintf
	ldr	x8, [x24, #40]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.12:
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_r_sys_cmd
	cbz	w0, LBB0_15
; %bb.13:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_eprintf
	mov	w23, #0
	b	LBB0_16
LBB0_14:
	mov	w23, #1
	b	LBB0_17
LBB0_15:
	mov	w23, #1
LBB0_16:
	mov	x0, x27
	bl	_r_file_rm
LBB0_17:
	mov	x0, x28
	bl	_R_FREE
	mov	x0, x27
	bl	_R_FREE
	cbz	w23, LBB0_19
; %bb.18:
	mov	w27, #1
	b	LBB0_24
LBB0_19:
Lloh20:
	adrp	x27, _R_SYS_DIR@GOTPAGE
Lloh21:
	ldr	x27, [x27, _R_SYS_DIR@GOTPAGEOFF]
LBB0_20:
Lloh22:
	adrp	x0, l_.str.8@PAGE
Lloh23:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_eprintf
	mov	w8, #98
	strb	w8, [x19, x26]
	mov	x0, x25
	bl	_R_FREE
	mov	x0, x19
	bl	_r_str_escape
	mov	x25, x0
	ldrsw	x2, [x27]
	stp	x2, x0, [sp, #16]
	stp	x2, x22, [sp]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x21
	bl	_r_str_newf
	mov	x28, x0
	ldp	x1, x2, [x24, #24]
	ldr	x3, [x24]
	ldr	x8, [x24, #16]
	stp	x25, x0, [sp, #8]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_str_newf
	mov	x23, x0
	str	x28, [sp]
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_eprintf
	mov	x0, x23
	bl	_r_sys_cmd
	cbz	x0, LBB0_22
; %bb.21:
	mov	w8, #1
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintf
	mov	w27, #0
	b	LBB0_23
LBB0_22:
	mov	w27, #1
LBB0_23:
	mov	x0, x23
	bl	_R_FREE
	mov	x0, x28
	bl	_R_FREE
LBB0_24:
	ldp	x24, x23, [sp, #40]             ; 16-byte Folded Reload
	mov	x0, x19
	bl	_R_FREE
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_R_FREE
	mov	x0, x20
	bl	_R_FREE
	mov	x0, x21
	bl	_R_FREE
	mov	x0, x22
	bl	_R_FREE
	mov	x0, x25
	bl	_R_FREE
	mov	x0, x23
	bl	_R_FREE
	mov	x0, x24
	bl	_R_FREE
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s%s%s%s%s%s"

	.comm	_R_SYS_DIR,4,2                  ; @R_SYS_DIR
l_.str.1:                               ; @.str.1
	.asciz	"curl -sfLA \"%s\" \"%s/%s/%s/%s\" --create-dirs -o \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"cabextract"

l_.str.3:                               ; @.str.3
	.asciz	"%s -d \"%s\" \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"Attempting to download compressed pdb in %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"curl exited with error %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Attempting to decompress pdb\n"

l_.str.7:                               ; @.str.7
	.asciz	"cab extractor exited with error %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Falling back to uncompressed pdb\n"

l_.str.9:                               ; @.str.9
	.asciz	"Attempting to download uncompressed pdb in %s\n"

	.no_dead_strip	_download
.subsections_via_symbols
