	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bootstrap_pkg_local
_bootstrap_pkg_local:                   ## @bootstrap_pkg_local
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_2:
	movq	_SIGNATURE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_config_string
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_4:
	movl	$-1, %ebx
	movl	%r14d, %r13d
LBB0_20:
	movl	%r13d, %edi
	callq	_close
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	-80(%rbp), %rbx
	movl	$-1, %r13d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.4(%rip), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_snprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_verify_signature
	testl	%eax, %eax
	je	LBB0_19
LBB0_12:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_extract_pkg_static
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_install_pkg_static
	movl	%eax, %ebx
LBB0_14:
	movl	%r14d, %edi
	callq	_close
	cmpl	$-1, %r13d
	jne	LBB0_20
	jmp	LBB0_21
LBB0_16:
	leaq	L_.str.7(%rip), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_snprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.17:
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_verify_pubsignature
	testl	%eax, %eax
	jne	LBB0_12
LBB0_19:
	movl	%r14d, %edi
	callq	_close
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_4
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to open %s"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"%s.sig"

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

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

L_.str.7:                               ## @.str.7
	.asciz	"%s.pubkeysig"

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

	.no_dead_strip	_bootstrap_pkg_local
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bootstrap_pkg_local
_bootstrap_pkg_local:                   ; @bootstrap_pkg_local
	.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, #16
	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, #-88]
Lloh3:
	adrp	x26, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w24, [x26]
	mov	x9, x24
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x12, x9, #0x1fffffff0
	sub	x23, x8, x12
	mov	sp, x23
	mov	x9, x24
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh9:
	adrp	x27, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x27, [x27, _O_RDONLY@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_err
LBB0_2:
Lloh16:
	adrp	x8, _SIGNATURE_TYPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIGNATURE_TYPE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	sub	x1, x29, #96
	bl	_config_string
	cbz	x0, LBB0_8
; %bb.3:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
LBB0_4:
	mov	w24, #-1
	mov	x23, x19
LBB0_5:
	mov	x0, x23
	bl	_close
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.7:
	mov	x0, x24
	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	x25, [x29, #-96]
	cbz	x25, LBB0_13
; %bb.9:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	bl	_strcasecmp
	cbz	x0, LBB0_13
; %bb.10:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x25
	bl	_strcasecmp
	cbz	x0, LBB0_17
; %bb.11:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x25
	bl	_strcasecmp
	cbz	x0, LBB0_19
; %bb.12:
	str	x25, [sp, #-16]!
Lloh30:
	adrp	x0, l_.str.8@PAGE
Lloh31:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	b	LBB0_4
LBB0_13:
	mov	w23, #-1
LBB0_14:
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x22
	bl	_extract_pkg_static
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_install_pkg_static
	mov	x24, x0
LBB0_16:
	mov	x0, x19
	bl	_close
	cmn	w23, #1
	b.ne	LBB0_5
	b	LBB0_6
LBB0_17:
Lloh32:
	adrp	x2, l_.str.4@PAGE
Lloh33:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	mov	x3, x21
	bl	_snprintf
	ldr	w1, [x27]
	mov	x0, x23
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.18:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_verify_signature
	cbnz	w0, LBB0_14
	b	LBB0_21
LBB0_19:
Lloh34:
	adrp	x2, l_.str.7@PAGE
Lloh35:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	mov	x3, x21
	bl	_snprintf
	ldr	w1, [x27]
	mov	x0, x23
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.20:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_verify_pubsignature
	cbnz	w0, LBB0_14
LBB0_21:
	mov	x0, x19
	bl	_close
	mov	w24, #-1
	b	LBB0_5
LBB0_22:
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	b	LBB0_4
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to open %s"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"%s.sig"

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

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

l_.str.7:                               ; @.str.7
	.asciz	"%s.pubkeysig"

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

	.no_dead_strip	_bootstrap_pkg_local
.subsections_via_symbols
