	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkg_readdir
_pkg_readdir:                           ## @pkg_readdir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EBADF@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	movq	%rsi, %rbx
	movq	_package@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_scan_tarfile
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
	movl	$24, (%rbx)
	movq	_DT_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	4(%rbx), %edi
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_package,4,2                    ## @package
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DT_REG,4,2                     ## @DT_REG
	.no_dead_strip	_pkg_readdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkg_readdir
_pkg_readdir:                           ; @pkg_readdir
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBADF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	mov	x19, x1
Lloh2:
	adrp	x8, _package@GOTPAGE
Lloh3:
	ldr	x8, [x8, _package@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_scan_tarfile
	cbz	x0, LBB0_6
; %bb.4:
	str	xzr, [x19, #16]
	mov	w8, #24
	str	w8, [x19]
Lloh5:
	adrp	x8, _DT_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DT_REG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x19, #4]
	ldr	w1, [x0]
	mov	x0, x8
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_package,4,2                    ; @package
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DT_REG,4,2                     ; @DT_REG
	.no_dead_strip	_pkg_readdir
.subsections_via_symbols
