	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_open_or_create_tar        ## -- Begin function phar_open_or_create_tar
	.p2align	4, 0x90
_phar_open_or_create_tar:               ## @phar_open_or_create_tar
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdi, %r15
	movq	24(%rbp), %r14
	leaq	-40(%rbp), %rax
	pushq	%r14
	pushq	%rax
	callq	_phar_create_or_parse_filename
	addq	$16, %rsp
	movq	_FAILURE@GOTPCREL(%rip), %r12
	cmpl	%eax, (%r12)
	je	LBB0_9
## %bb.1:
	movq	16(%rbp), %rdx
	movq	-40(%rbp), %rcx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	%rcx, (%rdx)
LBB0_3:
	movl	%ebx, (%rcx)
	cmpl	$0, 4(%rcx)
	jne	LBB0_9
## %bb.4:
	cmpq	$0, 24(%rcx)
	je	LBB0_6
## %bb.5:
	movl	$1, 4(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rcx)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%r15, %rcx
	callq	_spprintf
LBB0_8:
	movl	(%r12), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phar tar error: \"%s\" already exists as a regular phar and must be deleted from disk prior to creating as a tar-based phar"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_open_or_create_tar        ; -- Begin function phar_open_or_create_tar
	.p2align	2
_phar_open_or_create_tar:               ; @phar_open_or_create_tar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x7
	mov	x22, x6
	mov	x21, x4
	mov	x20, x0
	add	x6, sp, #8
	bl	_phar_create_or_parse_filename
Lloh0:
	adrp	x23, _FAILURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FAILURE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w0
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x22, LBB0_3
; %bb.2:
	str	x8, [x22]
LBB0_3:
	str	w21, [x8]
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_9
; %bb.4:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_6
; %bb.5:
	mov	w9, #1
	str	w9, [x8, #4]
	stp	xzr, xzr, [x8, #8]
Lloh2:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #4096
	mov	x3, x20
	bl	_spprintf
LBB0_8:
	ldr	w0, [x23]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phar tar error: \"%s\" already exists as a regular phar and must be deleted from disk prior to creating as a tar-based phar"

.subsections_via_symbols
