	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_stream_input_read
_php_stream_input_read:                 ## @php_stream_input_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_post_read@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SG
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_read_post_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SG
	movq	(%rbx), %rcx
	addq	%r13, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_sapi_read_post_block
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movq	8(%rbx), %rdi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_php_stream_seek
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_php_stream_write
LBB0_4:
	movq	8(%rbx), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_php_stream_seek
	movq	8(%rbx), %rdi
LBB0_6:
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_php_stream_read
	movq	%rax, %rcx
	incq	%rcx
	cmpq	$1, %rcx
	ja	LBB0_8
## %bb.7:
	movl	$1, (%r14)
	jmp	LBB0_9
LBB0_8:
	addq	%rax, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_post_read,4,2                  ## @post_read
	.comm	_read_post_bytes,4,2            ## @read_post_bytes
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_php_stream_input_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_stream_input_read
_php_stream_input_read:                 ; @php_stream_input_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _post_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _post_read@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SG
	cbnz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _read_post_bytes@GOTPAGE
Lloh4:
	ldr	x8, [x8, _read_post_bytes@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SG
	ldr	x8, [x23]
	add	x8, x8, x20
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_sapi_read_post_block
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	x0, [x23, #8]
Lloh6:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_php_stream_seek
	ldr	x0, [x23, #8]
	mov	x1, x21
	mov	x2, x22
	bl	_php_stream_write
LBB0_4:
	ldr	x0, [x23, #8]
	ldr	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	x1, [x23]
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_php_stream_seek
	ldr	x0, [x23, #8]
LBB0_6:
	mov	x1, x21
	mov	x2, x20
	bl	_php_stream_read
	add	x8, x0, #1
	cmp	x8, #1
	b.hi	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x23]
	add	x8, x8, x0
	str	x8, [x23]
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_post_read,4,2                  ; @post_read
	.comm	_read_post_bytes,4,2            ; @read_post_bytes
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_php_stream_input_read
.subsections_via_symbols
