	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_is_tar                    ## -- Begin function phar_is_tar
	.p2align	4, 0x90
_phar_is_tar:                           ## @phar_is_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	movl	$8, %esi
	callq	_phar_tar_number
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	(%rbx), %rdi
	movl	$32, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_phar_tar_checksum
	movq	%rax, %r13
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
	cmpq	%r13, %r15
	sete	%r15b
	je	LBB0_6
## %bb.3:
	movq	_PHP_DIR_SEPARATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strrchr
	testq	%rax, %rax
	cmovneq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movb	4(%rax), %cl
	movl	$1, %eax
	testb	%cl, %cl
	je	LBB0_7
## %bb.5:
	cmpb	$46, %cl
	je	LBB0_7
LBB0_6:
	movb	%r15b, %bl
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<?php"

	.comm	_PHP_DIR_SEPARATOR,4,2          ## @PHP_DIR_SEPARATOR
L_.str.1:                               ## @.str.1
	.asciz	".tar"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phar_is_tar                    ; -- Begin function phar_is_tar
	.p2align	2
_phar_is_tar:                           ; @phar_is_tar
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x0, [x0]
	mov	w1, #8
	bl	_phar_tar_number
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_strncmp
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x1, [x20]
	mov	x0, sp
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x20]
	mov	w1, #32
	mov	w2, #8
	bl	_memset
	mov	x0, x20
	mov	w1, #512
	bl	_phar_tar_checksum
	mov	x22, x0
	ldr	x0, [x20]
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	cmp	x21, x22
	cset	w20, eq
	b.eq	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _PHP_DIR_SEPARATOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHP_DIR_SEPARATOR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_strrchr
	cmp	x0, #0
	csel	x0, x19, x0, eq
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.3:
	ldrb	w8, [x0, #4]
	mov	w0, #1
	cbz	w8, LBB0_6
; %bb.4:
	cmp	w8, #46
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x20
LBB0_6:
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<?php"

	.comm	_PHP_DIR_SEPARATOR,4,2          ; @PHP_DIR_SEPARATOR
l_.str.1:                               ; @.str.1
	.asciz	".tar"

.subsections_via_symbols
