	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bootstrap_pkg
_bootstrap_pkg:                         ## @bootstrap_pkg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_PACKAGESITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_config_string
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	_SIGNATURE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	callq	_config_string
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_warnx
LBB0_5:
	movl	$-1, %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	movq	-64(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
	movq	_URL_SCHEME_PREFIX@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	-64(%rbp), %r15
	movl	%ebx, %edi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rcx
	jmp	LBB0_11
LBB0_10:
	movl	(%r12), %edi
	callq	_strlen
	movslq	%eax, %rcx
	addq	-64(%rbp), %rcx
	movq	%rcx, -64(%rbp)
LBB0_11:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movl	(%r12), %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	movq	__PATH_TMP@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	(%rcx), %rax
LBB0_13:
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_fetch_to_fd
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.14:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r15
	movl	$-1, %r12d
	testq	%r15, %r15
	je	LBB0_29
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_30
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r12
	je	LBB0_25
## %bb.18:
	leaq	L_.str.14(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_35
LBB0_19:
	movq	_fetchLastErrString@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.15(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.16(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.17(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_5
LBB0_20:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	__PATH_TMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_22:
	leaq	L_.str.8(%rip), %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	(%r12), %esi
	movq	-64(%rbp), %rcx
	leaq	L_.str.9(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_fetch_to_fd
	cmpl	$-1, %eax
	je	LBB0_34
## %bb.23:
	movl	%eax, %r12d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_verify_signature
	testl	%eax, %eax
	je	LBB0_24
LBB0_29:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_30:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_extract_pkg_static
	movq	%rbx, %rdi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.31:
	movq	%r13, %rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_install_pkg_static
	movl	%eax, %ebx
LBB0_32:
	cmpl	$-1, %r12d
	je	LBB0_36
LBB0_33:
	movl	%r12d, %edi
	callq	_close
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_unlink
	jmp	LBB0_36
LBB0_25:
	movl	(%r12), %r15d
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:
	movq	__PATH_TMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_27:
	leaq	L_.str.12(%rip), %rdx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	(%r12), %esi
	movq	-64(%rbp), %rcx
	leaq	L_.str.13(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_fetch_to_fd
	cmpl	$-1, %eax
	je	LBB0_34
## %bb.28:
	movl	%eax, %r12d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_verify_pubsignature
	testl	%eax, %eax
	jne	LBB0_29
LBB0_24:
	movl	$-1, %ebx
	jmp	LBB0_33
LBB0_34:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	callq	_fprintf
	movq	_fetchLastErrString@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.15(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movl	(%rbx), %edi
	leaq	L_.str.16(%rip), %rsi
	callq	_fprintf
	movl	(%rbx), %edi
	leaq	L_.str.17(%rip), %rsi
	callq	_fprintf
LBB0_35:
	movl	$-1, %ebx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_36:
	movl	%r14d, %edi
	callq	_close
	movq	%r13, %rdi
	callq	_unlink
	jmp	LBB0_6
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_PACKAGESITE,4,2                ## @PACKAGESITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No PACKAGESITE defined"

	.comm	_SIGNATURE_TYPE,4,2             ## @SIGNATURE_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"Error looking up SIGNATURE_TYPE"

L_.str.2:                               ## @.str.2
	.asciz	"Bootstrapping pkg from %s, please wait...\n"

	.comm	_URL_SCHEME_PREFIX,4,2          ## @URL_SCHEME_PREFIX
L_.str.3:                               ## @.str.3
	.asciz	"%s/Latest/pkg.txz"

L_.str.4:                               ## @.str.4
	.asciz	"%s/pkg.txz.XXXXXX"

L_.str.5:                               ## @.str.5
	.asciz	"TMPDIR"

	.comm	__PATH_TMP,8,3                  ## @_PATH_TMP
L_.str.6:                               ## @.str.6
	.asciz	"NONE"

L_.str.7:                               ## @.str.7
	.asciz	"FINGERPRINTS"

L_.str.8:                               ## @.str.8
	.asciz	"%s/pkg.txz.sig.XXXXXX"

L_.str.9:                               ## @.str.9
	.asciz	"%s/Latest/pkg.txz.sig"

	.comm	_stderr,4,2                     ## @stderr
L_.str.10:                              ## @.str.10
	.asciz	"Signature for pkg not available.\n"

L_.str.11:                              ## @.str.11
	.asciz	"PUBKEY"

L_.str.12:                              ## @.str.12
	.asciz	"%s/pkg.txz.pubkeysig.XXXXXX"

L_.str.13:                              ## @.str.13
	.asciz	"%s/Latest/pkg.txz.pubkeysig"

L_.str.14:                              ## @.str.14
	.asciz	"Signature type %s is not supported for bootstrapping."

L_.str.15:                              ## @.str.15
	.asciz	"Error fetching %s: %s"

	.comm	_fetchLastErrString,4,2         ## @fetchLastErrString
L_.str.16:                              ## @.str.16
	.asciz	"A pre-built version of pkg could not be found for your system.\n"

L_.str.17:                              ## @.str.17
	.asciz	"Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.\n"

	.no_dead_strip	_bootstrap_pkg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bootstrap_pkg
_bootstrap_pkg:                         ; @bootstrap_pkg
	.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, #32
	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, #-88]
Lloh3:
	adrp	x26, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh13:
	adrp	x8, _PACKAGESITE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PACKAGESITE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	sub	x1, x29, #96
	bl	_config_string
	cbz	x0, LBB0_2
; %bb.1:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh18:
	adrp	x8, _SIGNATURE_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGNATURE_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	sub	x1, x29, #104
	bl	_config_string
	cbz	x0, LBB0_8
; %bb.3:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_warnx
LBB0_5:
	mov	w23, #-1
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.7:
	mov	x0, x23
	sub	sp, x29, #80
	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_8:
	ldur	x1, [x29, #-96]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh28:
	adrp	x27, _URL_SCHEME_PREFIX@GOTPAGE
Lloh29:
	ldr	x27, [x27, _URL_SCHEME_PREFIX@GOTPAGEOFF]
	ldr	w24, [x27]
	ldur	x25, [x29, #-96]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.9:
	ldur	x3, [x29, #-96]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x27]
	bl	_strlen
	ldur	x8, [x29, #-96]
	add	x3, x8, w0, sxtw
	stur	x3, [x29, #-96]
LBB0_11:
	ldr	w1, [x26]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_snprintf
	ldr	w24, [x26]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
Lloh34:
	adrp	x27, __PATH_TMP@GOTPAGE
Lloh35:
	ldr	x27, [x27, __PATH_TMP@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, #0
	csel	x3, x8, x0, eq
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	bl	_snprintf
	mov	x0, x23
	mov	x1, x19
	bl	_fetch_to_fd
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.12:
	mov	x24, x0
	ldur	x25, [x29, #-104]
	cbz	x25, LBB0_17
; %bb.13:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x25
	bl	_strcasecmp
	cbz	x0, LBB0_17
; %bb.14:
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x25
	bl	_strcasecmp
	cbz	x0, LBB0_23
; %bb.15:
Lloh42:
	adrp	x1, l_.str.11@PAGE
Lloh43:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x25
	bl	_strcasecmp
	cbz	x0, LBB0_25
; %bb.16:
	str	x25, [sp, #-16]!
Lloh44:
	adrp	x0, l_.str.14@PAGE
Lloh45:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	b	LBB0_29
LBB0_17:
	mov	w25, #-1
LBB0_18:
	ldr	w2, [x26]
	mov	x0, x24
	mov	x1, x22
	bl	_extract_pkg_static
	mov	x23, x0
	cbnz	w0, LBB0_20
; %bb.19:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_install_pkg_static
	mov	x23, x0
LBB0_20:
	cmn	w25, #1
	b.eq	LBB0_30
LBB0_21:
	mov	x0, x25
	bl	_close
	mov	x0, x20
	bl	_unlink
	b	LBB0_30
LBB0_22:
Lloh46:
	adrp	x8, _fetchLastErrString@GOTPAGE
Lloh47:
	ldr	x8, [x8, _fetchLastErrString@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	stp	x23, x8, [sp, #-16]!
Lloh49:
	adrp	x0, l_.str.15@PAGE
Lloh50:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
Lloh51:
	adrp	x19, _stderr@GOTPAGE
Lloh52:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh53:
	adrp	x1, l_.str.16@PAGE
Lloh54:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
Lloh55:
	adrp	x1, l_.str.17@PAGE
Lloh56:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_fprintf
	b	LBB0_5
LBB0_23:
	ldr	w25, [x26]
Lloh57:
	adrp	x0, l_.str.5@PAGE
Lloh58:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	ldr	x8, [x27]
	cmp	x0, #0
	csel	x3, x8, x0, eq
Lloh59:
	adrp	x2, l_.str.8@PAGE
Lloh60:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	bl	_snprintf
	ldr	w1, [x26]
	ldur	x3, [x29, #-96]
Lloh61:
	adrp	x2, l_.str.9@PAGE
Lloh62:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x23
	bl	_snprintf
	mov	x0, x23
	mov	x1, x20
	bl	_fetch_to_fd
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.24:
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	bl	_verify_signature
	cbnz	w0, LBB0_18
	b	LBB0_27
LBB0_25:
	ldr	w25, [x26]
Lloh63:
	adrp	x0, l_.str.5@PAGE
Lloh64:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	ldr	x8, [x27]
	cmp	x0, #0
	csel	x3, x8, x0, eq
Lloh65:
	adrp	x2, l_.str.12@PAGE
Lloh66:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	bl	_snprintf
	ldr	w1, [x26]
	ldur	x3, [x29, #-96]
Lloh67:
	adrp	x2, l_.str.13@PAGE
Lloh68:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x0, x23
	bl	_snprintf
	mov	x0, x23
	mov	x1, x20
	bl	_fetch_to_fd
	cmn	w0, #1
	b.eq	LBB0_28
; %bb.26:
	mov	x25, x0
	mov	x0, x24
	mov	x1, x25
	bl	_verify_pubsignature
	cbnz	w0, LBB0_18
LBB0_27:
	mov	w23, #-1
	b	LBB0_21
LBB0_28:
Lloh69:
	adrp	x20, _stderr@GOTPAGE
Lloh70:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh71:
	adrp	x1, l_.str.10@PAGE
Lloh72:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
Lloh73:
	adrp	x8, _fetchLastErrString@GOTPAGE
Lloh74:
	ldr	x8, [x8, _fetchLastErrString@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	stp	x23, x8, [sp, #-16]!
Lloh76:
	adrp	x0, l_.str.15@PAGE
Lloh77:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	ldr	w0, [x20]
Lloh78:
	adrp	x1, l_.str.16@PAGE
Lloh79:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
Lloh80:
	adrp	x1, l_.str.17@PAGE
Lloh81:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_fprintf
LBB0_29:
	mov	w23, #-1
LBB0_30:
	mov	x0, x24
	bl	_close
	mov	x0, x19
	bl	_unlink
	b	LBB0_6
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_PACKAGESITE,4,2                ; @PACKAGESITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PACKAGESITE defined"

	.comm	_SIGNATURE_TYPE,4,2             ; @SIGNATURE_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"Error looking up SIGNATURE_TYPE"

l_.str.2:                               ; @.str.2
	.asciz	"Bootstrapping pkg from %s, please wait...\n"

	.comm	_URL_SCHEME_PREFIX,4,2          ; @URL_SCHEME_PREFIX
l_.str.3:                               ; @.str.3
	.asciz	"%s/Latest/pkg.txz"

l_.str.4:                               ; @.str.4
	.asciz	"%s/pkg.txz.XXXXXX"

l_.str.5:                               ; @.str.5
	.asciz	"TMPDIR"

	.comm	__PATH_TMP,8,3                  ; @_PATH_TMP
l_.str.6:                               ; @.str.6
	.asciz	"NONE"

l_.str.7:                               ; @.str.7
	.asciz	"FINGERPRINTS"

l_.str.8:                               ; @.str.8
	.asciz	"%s/pkg.txz.sig.XXXXXX"

l_.str.9:                               ; @.str.9
	.asciz	"%s/Latest/pkg.txz.sig"

	.comm	_stderr,4,2                     ; @stderr
l_.str.10:                              ; @.str.10
	.asciz	"Signature for pkg not available.\n"

l_.str.11:                              ; @.str.11
	.asciz	"PUBKEY"

l_.str.12:                              ; @.str.12
	.asciz	"%s/pkg.txz.pubkeysig.XXXXXX"

l_.str.13:                              ; @.str.13
	.asciz	"%s/Latest/pkg.txz.pubkeysig"

l_.str.14:                              ; @.str.14
	.asciz	"Signature type %s is not supported for bootstrapping."

l_.str.15:                              ; @.str.15
	.asciz	"Error fetching %s: %s"

	.comm	_fetchLastErrString,4,2         ; @fetchLastErrString
l_.str.16:                              ; @.str.16
	.asciz	"A pre-built version of pkg could not be found for your system.\n"

l_.str.17:                              ; @.str.17
	.asciz	"Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.\n"

	.no_dead_strip	_bootstrap_pkg
.subsections_via_symbols
