	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkgfs_init                     ## -- Begin function pkgfs_init
	.p2align	4, 0x90
_pkgfs_init:                            ## @pkgfs_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	cmpq	_pkgfs_fsops@GOTPCREL(%rip), %rsi
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_pkgfs_cleanup
LBB0_2:
	movq	_exclusive_file_system@GOTPCREL(%rip), %r15
	movq	%rbx, (%r15)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movq	$0, (%r15)
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_new_package
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_10
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_package@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	-32(%rbp), %rax
	movq	%rax, (%rcx)
	movq	_pkgfs_fsops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_8:
	movq	_EDOOFUS@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pkgfs_fsops,4,2                ## @pkgfs_fsops
	.comm	_exclusive_file_system,8,3      ## @exclusive_file_system
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,4,2                      ## @errno
	.comm	_EDOOFUS,4,2                    ## @EDOOFUS
	.comm	_package,8,3                    ## @package
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkgfs_init                     ; -- Begin function pkgfs_init
	.p2align	2
_pkgfs_init:                            ; @pkgfs_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x21, _pkgfs_fsops@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pkgfs_fsops@GOTPAGEOFF]
	cmp	x1, x21
	b.eq	LBB0_2
; %bb.1:
	bl	_pkgfs_cleanup
LBB0_2:
Lloh2:
	adrp	x22, _exclusive_file_system@GOTPAGE
Lloh3:
	ldr	x22, [x22, _exclusive_file_system@GOTPAGEOFF]
	str	x20, [x22]
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	str	xzr, [x22]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x20, x0
	add	x1, sp, #8
	bl	_new_package
	cbz	w0, LBB0_6
; %bb.4:
	mov	x19, x0
	mov	x0, x20
	bl	_close
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w19, #0
Lloh9:
	adrp	x9, _package@GOTPAGE
Lloh10:
	ldr	x9, [x9, _package@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x10, [x8]
	ldr	x8, [sp, #8]
	str	x8, [x9]
	str	x21, [x22]
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _EDOOFUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDOOFUS@GOTPAGEOFF]
LBB0_9:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_pkgfs_fsops,4,2                ; @pkgfs_fsops
	.comm	_exclusive_file_system,8,3      ; @exclusive_file_system
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,4,2                      ; @errno
	.comm	_EDOOFUS,4,2                    ; @EDOOFUS
	.comm	_package,8,3                    ; @package
.subsections_via_symbols
