	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_get_entry_data            ## -- Begin function phar_get_entry_data
	.p2align	4, 0x90
_phar_get_entry_data:                   ## @phar_get_entry_data
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movb	(%r9), %r14b
	movb	$1, %bl
	cmpb	$114, %r14b
	jne	LBB0_2
## %bb.1:
	cmpb	$43, 1(%r9)
	sete	%bl
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.3:
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r9
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdi)
	testq	%r9, %r9
	je	LBB0_5
## %bb.4:
	movq	$0, (%r9)
LBB0_5:
	movq	_FAILURE@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	leaq	-48(%rbp), %rdi
	movq	%rsi, %r15
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_phar_get_archive
	cmpl	%eax, %r13d
	je	LBB0_37
## %bb.6:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movzbl	%bl, %eax
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_readonly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHAR_G
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_47
LBB0_9:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_38
## %bb.10:
	movb	16(%rbp), %r12b
	movsbl	%r12b, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rbx
	testb	%r12b, %r12b
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$114, %r14b
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	24(%rbp), %r8
	movl	32(%rbp), %r9d
	callq	_phar_get_entry_info_dir
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$114, %r14b
	jne	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rbp), %rcx
	movl	32(%rbp), %r8d
	callq	_phar_get_entry_info
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_28
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_readonly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHAR_G
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_33
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	24(%rbp), %r8
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	32(%rbp), %r9d
	callq	_phar_get_entry_info_dir
	jmp	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_readonly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHAR_G
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_34
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rbp), %rcx
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	32(%rbp), %r8d
	callq	_phar_get_entry_info
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_21
LBB0_28:                                ##   in Loop: Header=BB0_11 Depth=1
	testl	%r13d, %r13d
	je	LBB0_40
## %bb.29:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_43
## %bb.30:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %rdi
	callq	_phar_copy_on_write
	cmpl	%eax, %ebx
	jne	LBB0_11
	jmp	LBB0_31
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	jmp	LBB0_20
LBB0_34:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	jmp	LBB0_26
LBB0_38:
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.39:
	leaq	L_.str.1(%rip), %rdx
	movl	$4096, %esi                     ## imm = 0x1000
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_37
LBB0_40:
	cmpq	$0, 72(%rbx)
	je	LBB0_49
## %bb.41:
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.42:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_46
LBB0_43:
	cmpq	$0, 24(%rbx)
	je	LBB0_49
## %bb.44:
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.45:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_46
LBB0_31:
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.32:
	leaq	L_.str.2(%rip), %rdx
LBB0_46:
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_spprintf
LBB0_36:
	movq	_FAILURE@GOTPCREL(%rip), %r12
LBB0_37:
	movl	(%r12), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	movq	24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.48:
	leaq	L_.str(%rip), %rdx
	movl	$4096, %esi                     ## imm = 0x1000
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_spprintf
	jmp	LBB0_37
LBB0_49:
	cmpq	$0, 64(%rbx)
	je	LBB0_52
## %bb.50:
	cmpb	$114, %r14b
	je	LBB0_36
## %bb.51:
	movq	$0, 64(%rbx)
LBB0_52:
	cmpq	$0, 56(%rbx)
	je	LBB0_55
## %bb.53:
	movl	$64, %edi
	callq	_emalloc
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	$0, 56(%rax)
	movq	$0, 16(%rax)
	movq	-48(%rbp), %rax
	movq	(%rdx), %rcx
	movq	%rax, 48(%rcx)
	movq	(%rdx), %rcx
	movl	%r13d, (%rcx)
	movq	%rbx, 40(%rcx)
	movl	48(%rbx), %ecx
	movq	(%rdx), %rdx
	movl	%ecx, 32(%rdx)
	movq	40(%rbx), %rcx
	movq	%rcx, 24(%rdx)
	movq	_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	$0, (%rax)
	jne	LBB0_37
## %bb.54:
	movq	16(%rbx), %rax
	incl	(%rax)
	incq	24(%rbx)
	jmp	LBB0_37
LBB0_21:
	movq	_readonly@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHAR_G
	movq	_SUCCESS@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_37
## %bb.22:
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_37
	jmp	LBB0_36
LBB0_55:
	movq	(%rbx), %rax
	movq	_PHAR_MOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_58
## %bb.56:
	cmpb	$119, %r14b
	jne	LBB0_63
## %bb.57:
	movq	_FAILURE@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	24(%rbp), %rdx
	callq	_phar_create_writeable_entry
	jmp	LBB0_66
LBB0_58:
	testl	%r13d, %r13d
	je	LBB0_65
## %bb.59:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_61
## %bb.60:
	callq	_efree
	movq	$0, 32(%rbx)
	xorl	%eax, %eax
	cmpq	$0, 40(%rbx)
	movq	_TAR_FILE@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovel	%eax, %ecx
	movb	%cl, 8(%rbx)
LBB0_61:
	movq	_FAILURE@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	cmpb	$119, %r14b
	jne	LBB0_67
## %bb.62:
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	movq	24(%rbp), %rdx
	callq	_phar_create_writeable_entry
	jmp	LBB0_68
LBB0_63:
	cmpb	$97, %r14b
	jne	LBB0_69
## %bb.64:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_phar_seek_efp
	jmp	LBB0_69
LBB0_65:
	movq	_FAILURE@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	%rbx, %rdi
	movq	24(%rbp), %rsi
	movl	$1, %edx
	callq	_phar_open_entry_fp
LBB0_66:
	cmpl	%eax, %r14d
	je	LBB0_37
	jmp	LBB0_69
LBB0_67:
	movq	%rbx, %rdi
	movq	24(%rbp), %rsi
	callq	_phar_separate_entry_fp
LBB0_68:
	cmpl	%eax, %r15d
	je	LBB0_37
LBB0_69:
	movl	$64, %edi
	callq	_emalloc
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	$0, 56(%rax)
	movq	-48(%rbp), %rcx
	movq	%rcx, 48(%rax)
	movq	(%r14), %rax
	movl	%r13d, (%rax)
	movq	%rbx, 40(%rax)
	movl	48(%rbx), %eax
	movq	(%r14), %rcx
	movl	%eax, 32(%rcx)
	movq	40(%rbx), %rax
	movq	%rax, 24(%rcx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_phar_get_efp
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	cmpq	$0, 32(%rbx)
	movq	%rbx, %rdi
	je	LBB0_71
## %bb.70:
	movq	%rbx, %rdi
	callq	_phar_get_link_source
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_35
LBB0_71:
	callq	_phar_get_fp_offset
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	-48(%rbp), %rax
	movq	_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	$0, (%rax)
	jne	LBB0_37
## %bb.72:
	incq	24(%rbx)
	movq	16(%rbx), %rax
	incl	(%rax)
	jmp	LBB0_37
LBB0_35:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_efree
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_readonly,4,2                   ## @readonly
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting"

L_.str.1:                               ## @.str.1
	.asciz	"phar error: file \"\" in phar \"%s\" cannot be empty"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable"

L_.str.3:                               ## @.str.3
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open"

L_.str.4:                               ## @.str.4
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open"

	.comm	_PHAR_MOD,8,3                   ## @PHAR_MOD
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_TAR_FILE,1,0                   ## @TAR_FILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_get_entry_data            ; -- Begin function phar_get_entry_data
	.p2align	2
_phar_get_entry_data:                   ; @phar_get_entry_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x7
	mov	x24, x6
	mov	x25, x4
	mov	x21, x3
	mov	x22, x1
	mov	x26, x0
	ldrb	w19, [x5]
	cmp	w19, #114
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x5, #1]
	cmp	w8, #43
	cset	w28, eq
	b	LBB0_3
LBB0_2:
	mov	w28, #1
LBB0_3:
Lloh0:
	adrp	x27, _FAILURE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FAILURE@GOTPAGEOFF]
	cbz	x26, LBB0_45
; %bb.4:
	str	xzr, [x26]
	cbz	x20, LBB0_6
; %bb.5:
	str	xzr, [x20]
LBB0_6:
	ldr	w23, [x27]
	add	x0, sp, #24
	mov	x1, x22
	mov	x3, #0
	mov	w4, #0
	mov	x5, x20
	bl	_phar_get_archive
	cmp	w23, w0
	b.eq	LBB0_45
; %bb.7:
	cbz	w28, LBB0_10
; %bb.8:
Lloh2:
	adrp	x8, _readonly@GOTPAGE
Lloh3:
	ldr	x8, [x8, _readonly@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_PHAR_G
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_40
LBB0_10:
	cbz	x25, LBB0_30
; %bb.11:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w26, [x29, #16]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [sp, #24]
	cmp	w19, #114
	cbz	w24, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x4, x20
	mov	x5, x26
	bl	_phar_get_entry_info_dir
	mov	x23, x0
	cbnz	x0, LBB0_25
	b	LBB0_44
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, x20
	mov	x4, x26
	bl	_phar_get_entry_info
	mov	x23, x0
	cbnz	x0, LBB0_25
	b	LBB0_44
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh5:
	adrp	x8, _readonly@GOTPAGE
Lloh6:
	ldr	x8, [x8, _readonly@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_PHAR_G
	cbnz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_28
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x4, x20
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x5, x26
	bl	_phar_get_entry_info_dir
	mov	x23, x0
	cbnz	x0, LBB0_25
	b	LBB0_52
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh8:
	adrp	x8, _readonly@GOTPAGE
Lloh9:
	ldr	x8, [x8, _readonly@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_PHAR_G
	cbnz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, x20
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x4, x26
	bl	_phar_get_entry_info
	mov	x23, x0
	cbz	x0, LBB0_52
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w28, LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_35
; %bb.27:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w23, [x27]
	add	x0, sp, #24
	bl	_phar_copy_on_write
	cmp	w23, w0
	b.ne	LBB0_12
	b	LBB0_38
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x4, #0
	b	LBB0_20
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x25
	mov	x3, #0
	b	LBB0_24
LBB0_30:
	cbz	x20, LBB0_44
; %bb.31:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #4096
	mov	x3, x22
	b	LBB0_43
LBB0_32:
	ldr	x8, [x23, #72]
	cbz	x8, LBB0_46
; %bb.33:
	cbz	x20, LBB0_44
; %bb.34:
	str	x22, [sp]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_42
LBB0_35:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_46
; %bb.36:
	cbz	x20, LBB0_44
; %bb.37:
	str	x22, [sp]
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_42
LBB0_38:
	cbz	x20, LBB0_44
; %bb.39:
	str	x22, [sp]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_42
LBB0_40:
	cbz	x20, LBB0_44
; %bb.41:
	str	x22, [sp]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
LBB0_42:
	mov	x0, x20
	mov	w1, #4096
	mov	x3, x21
LBB0_43:
	bl	_spprintf
LBB0_44:
Lloh21:
	adrp	x27, _FAILURE@GOTPAGE
Lloh22:
	ldr	x27, [x27, _FAILURE@GOTPAGEOFF]
LBB0_45:
	ldr	w0, [x27]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_46:
	ldr	x8, [x23, #64]
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_49
; %bb.47:
	cmp	w19, #114
	b.eq	LBB0_44
; %bb.48:
	str	xzr, [x23, #64]
LBB0_49:
	ldr	x8, [x23, #56]
	cbz	x8, LBB0_54
; %bb.50:
	mov	w0, #64
	bl	_emalloc
	str	x0, [x22]
	str	xzr, [x0, #56]
	str	xzr, [x0, #16]
	ldr	x8, [sp, #24]
	ldr	x9, [x22]
	str	x8, [x9, #48]
	ldr	x9, [x22]
	str	w28, [x9]
	str	x23, [x9, #40]
	ldr	w9, [x23, #48]
	ldr	x10, [x22]
	str	w9, [x10, #32]
	ldr	x9, [x23, #40]
	str	x9, [x10, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_71
; %bb.51:
	ldp	x8, x9, [x23, #16]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	add	x8, x9, #1
	str	x8, [x23, #24]
	b	LBB0_71
LBB0_52:
Lloh23:
	adrp	x8, _readonly@GOTPAGE
Lloh24:
	ldr	x8, [x8, _readonly@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_PHAR_G
	cbz	x0, LBB0_71
; %bb.53:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_71
	b	LBB0_44
LBB0_54:
	ldr	x8, [x23]
Lloh26:
	adrp	x9, _PHAR_MOD@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PHAR_MOD@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_57
; %bb.55:
	cmp	w19, #119
	b.ne	LBB0_62
; %bb.56:
	ldr	w19, [x27]
	ldr	x0, [sp, #24]
	mov	x1, x23
	mov	x2, x20
	bl	_phar_create_writeable_entry
	b	LBB0_65
LBB0_57:
	cbz	w28, LBB0_64
; %bb.58:
	ldr	x0, [x23, #32]
	cbz	x0, LBB0_60
; %bb.59:
	bl	_efree
	str	xzr, [x23, #32]
	ldr	x8, [x23, #40]
Lloh29:
	adrp	x9, _TAR_FILE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TAR_FILE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	strb	w8, [x23, #8]
LBB0_60:
	ldr	w21, [x27]
	cmp	w19, #119
	b.ne	LBB0_66
; %bb.61:
	ldr	x0, [sp, #24]
	mov	x1, x23
	mov	x2, x20
	bl	_phar_create_writeable_entry
	cmp	w21, w0
	b.eq	LBB0_44
	b	LBB0_67
LBB0_62:
	cmp	w19, #97
	b.ne	LBB0_67
; %bb.63:
Lloh31:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_phar_seek_efp
	b	LBB0_67
LBB0_64:
	ldr	w19, [x27]
	mov	x0, x23
	mov	x1, x20
	mov	w2, #1
	bl	_phar_open_entry_fp
LBB0_65:
	cmp	w19, w0
	b.eq	LBB0_45
	b	LBB0_67
LBB0_66:
	mov	x0, x23
	mov	x1, x20
	bl	_phar_separate_entry_fp
	cmp	w21, w0
	b.eq	LBB0_44
LBB0_67:
	mov	w0, #64
	bl	_emalloc
	str	x0, [x22]
	ldr	x8, [sp, #24]
	stp	x8, xzr, [x0, #48]
	ldr	x8, [x22]
	str	w28, [x8]
	str	x23, [x8, #40]
	ldr	w8, [x23, #48]
	ldr	x9, [x22]
	str	w8, [x9, #32]
	ldr	x8, [x23, #40]
	str	x8, [x9, #24]
	mov	x0, x23
	mov	w1, #1
	bl	_phar_get_efp
	ldr	x8, [x22]
	str	x0, [x8, #16]
	ldr	x8, [x23, #32]
	mov	x0, x23
	cbz	x8, LBB0_69
; %bb.68:
	mov	x0, x23
	bl	_phar_get_link_source
	cbz	x0, LBB0_72
LBB0_69:
	bl	_phar_get_fp_offset
	ldr	x8, [x22]
	str	x0, [x8, #8]
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_71
; %bb.70:
	ldp	x9, x8, [x23, #16]
	add	x8, x8, #1
	str	x8, [x23, #24]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_71:
Lloh34:
	adrp	x27, _SUCCESS@GOTPAGE
Lloh35:
	ldr	x27, [x27, _SUCCESS@GOTPAGEOFF]
	b	LBB0_45
LBB0_72:
	ldr	x0, [x22]
	bl	_efree
	b	LBB0_44
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_readonly,4,2                   ; @readonly
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting"

l_.str.1:                               ; @.str.1
	.asciz	"phar error: file \"\" in phar \"%s\" cannot be empty"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable"

l_.str.3:                               ; @.str.3
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open"

l_.str.4:                               ; @.str.4
	.asciz	"phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open"

	.comm	_PHAR_MOD,8,3                   ; @PHAR_MOD
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_TAR_FILE,1,0                   ; @TAR_FILE
.subsections_via_symbols
