	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_get_link_location
_phar_get_link_location:                ## @phar_get_link_location
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpb	$47, (%rdi)
	jne	LBB0_3
## %bb.7:
	incl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_estrdup                        ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movl	8(%rbx), %edi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movb	$0, (%rax)
	movl	8(%rbx), %ecx
	movq	(%rbx), %r8
	leaq	L_.str(%rip), %rdx
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	callq	_spprintf
	movq	-16(%rbp), %rax
	jmp	LBB0_6
LBB0_5:
	movq	(%rbx), %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.no_dead_strip	_phar_get_link_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_get_link_location
_phar_get_link_location:                ; @phar_get_link_location
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldrb	w9, [x8]
	cmp	w9, #47
	b.ne	LBB0_4
; %bb.2:
	add	w0, w8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_estrdup
LBB0_3:
	mov	x0, #0
	b	LBB0_7
LBB0_4:
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_6
; %bb.5:
	strb	wzr, [x0]
	ldr	w3, [x19, #8]
	ldr	x4, [x19]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #0
	bl	_spprintf
	ldr	x0, [sp, #8]
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.no_dead_strip	_phar_get_link_location
.subsections_via_symbols
