	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phar_stream_seek
_phar_stream_seek:                      ## @phar_stream_seek
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	(%rdi), %r12
	movq	24(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_phar_get_link_source
LBB0_2:
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.3:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$130, %ebx
	jne	LBB0_5
## %bb.7:
	movq	(%r12), %rcx
	addq	%rcx, %r15
	addq	8(%r12), %r15
	jmp	LBB0_9
LBB0_8:
	movq	(%r12), %rcx
	addq	%rcx, %r15
	jmp	LBB0_9
LBB0_6:
	movq	(%r12), %rcx
	addq	%rcx, %r15
	addq	(%rax), %r15
	jmp	LBB0_9
LBB0_5:
	movq	(%r12), %rcx
	xorl	%r15d, %r15d
LBB0_9:
	movq	(%rax), %rax
	addq	%rcx, %rax
	cmpq	%rax, %r15
	jg	LBB0_11
## %bb.10:
	cmpq	%rcx, %r15
	jge	LBB0_13
LBB0_11:
	movq	$-1, (%r14)
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_13:
	movl	16(%r12), %edi
	movq	%r15, %rsi
	movl	$128, %edx
	callq	_php_stream_seek
	movl	%eax, %ebx
	movl	16(%r12), %edi
	callq	_php_stream_tell
	subq	(%r12), %rax
	movq	%rax, (%r14)
	movq	%rax, 8(%r12)
	movl	%ebx, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_phar_stream_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phar_stream_seek
_phar_stream_seek:                      ; @phar_stream_seek
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	ldr	x22, [x0]
	ldr	x0, [x22, #24]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_phar_get_link_source
LBB0_2:
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w21, #130
	b.ne	LBB0_9
; %bb.5:
	ldp	x8, x9, [x22]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x22]
	add	x1, x8, x20
	b	LBB0_10
LBB0_7:
	ldr	x8, [x22]
	ldr	x9, [x0]
LBB0_8:
	add	x10, x8, x20
	add	x1, x10, x9
	b	LBB0_10
LBB0_9:
	mov	x1, #0
	ldr	x8, [x22]
LBB0_10:
	ldr	x9, [x0]
	add	x9, x9, x8
	cmp	x1, x9
	b.gt	LBB0_12
; %bb.11:
	cmp	x1, x8
	b.ge	LBB0_13
LBB0_12:
	mov	x8, #-1
	str	x8, [x19]
	mov	w0, #-1
	b	LBB0_14
LBB0_13:
	ldr	w0, [x22, #16]
	mov	w2, #128
	bl	_php_stream_seek
	mov	x20, x0
	ldr	w0, [x22, #16]
	bl	_php_stream_tell
	ldr	x8, [x22]
	sub	x8, x0, x8
	str	x8, [x19]
	str	x8, [x22, #8]
	mov	x0, x20
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_phar_stream_seek
.subsections_via_symbols
