	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function php_worker_http_load_post_impl
LCPI0_0:
	.quad	0x3f847ae147ae147b              ## double 0.01
LCPI0_1:
	.quad	0x413e848000000000              ## double 2.0E+6
LCPI0_2:
	.quad	0x408f400000000000              ## double 1000
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_php_worker_http_load_post_impl
	.p2align	4, 0x90
_php_worker_http_load_post_impl:        ## @php_worker_http_load_post_impl
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	movq	8(%r13), %r14
	xorl	%eax, %eax
	callq	_get_utime_monotonic
	addsd	LCPI0_0(%rip), %xmm0
	ucomisd	(%r13), %xmm0
	movl	$-1, %ebx
	ja	LBB0_19
## %bb.1:
	testq	%r14, %r14
	je	LBB0_19
## %bb.2:
	cmpq	$0, 24(%r14)
	jne	LBB0_19
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, 16(%r14)
	sete	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_ct_pipe@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	%r15d, %r12d
	setle	%dil
	callq	_assert
	leaq	12(%r14), %rbx
	movq	%rbx, %rdi
	callq	_get_total_ready_bytes
	movl	%r15d, %ecx
	testl	%eax, %eax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	cmpl	%ecx, %eax
	cmovgel	%ecx, %r15d
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	sete	%dil
	callq	_assert
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movl	8(%r14), %eax
	movl	%eax, -60(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLPRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -64(%rbp)
	cmpl	%r12d, %r15d
	jl	LBB0_8
## %bb.7:
	movl	%r15d, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%eax, %r15d
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %ebx
	cmpl	%r12d, %r15d
	jge	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_get_utime_monotonic
	movsd	(%r13), %xmm1                   ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -72(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	seta	%dil
	callq	_assert
	movl	$-1, %ebx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	ja	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movapd	%xmm1, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %edx
	leaq	-64(%rbp), %rdi
	movl	$1, %esi
	callq	_poll
	testl	%eax, %eax
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_assert
	movl	8(%r14), %edi
	movslq	%r15d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	subl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	jg	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ct_pipe,8,3                    ## @ct_pipe
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLPRI,4,2                    ## @POLLPRI
	.comm	_errno,4,2                      ## @errno
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_worker_http_load_post_impl ; -- Begin function php_worker_http_load_post_impl
	.p2align	2
_php_worker_http_load_post_impl:        ; @php_worker_http_load_post_impl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x25, [x22, #8]
	bl	_get_utime_monotonic
	ldr	d1, [x22]
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d2, x8
	fadd	d0, d0, d2
	fcmp	d1, d0
	ccmp	x25, #0, #4, pl
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w23, #-1
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	w8, [x25, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _ct_pipe@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ct_pipe@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	cmp	w20, w19
	cset	w0, le
	bl	_assert
	add	x24, x25, #12
	mov	x0, x24
	bl	_get_total_ready_bytes
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:
	cmp	w0, w19
	csel	w23, w0, w19, lt
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	bl	_read_in
	cmp	w0, w23
	cset	w0, eq
	bl	_assert
	b	LBB0_7
LBB0_6:
	mov	w23, #0
LBB0_7:
	ldr	w8, [x25, #8]
Lloh3:
	adrp	x9, _POLLIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh5:
	adrp	x10, _POLLPRI@GOTPAGE
Lloh6:
	ldr	x10, [x10, _POLLPRI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [sp, #8]
	cmp	w23, w20
	b.ge	LBB0_3
; %bb.8:
	mov	x24, #145685290680320
	movk	x24, #16702, lsl #48
	mov	x26, #5243
	movk	x26, #18350, lsl #16
	movk	x26, #31457, lsl #32
	movk	x26, #16260, lsl #48
	mov	x27, #70368744177664
	movk	x27, #16527, lsl #48
	fmov	d8, #1.00000000
Lloh9:
	adrp	x28, _EINTR@GOTPAGE
Lloh10:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x28]
	cmp	w0, #0
	ccmp	w8, w9, #0, ne
	b.ne	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w23, w20
	b.ge	LBB0_3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_get_utime_monotonic
	ldr	d1, [x22]
	fsub	d9, d1, d0
	fmov	d0, x24
	fcmp	d9, d0
	cset	w0, mi
	bl	_assert
	fmov	d0, x26
	fcmp	d9, d0
	b.mi	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	fmov	d0, x27
	fmadd	d0, d9, d0, d8
	fcvtzs	w2, d0
	add	x0, sp, #8
	mov	w1, #1
	bl	_poll
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cset	w0, eq
	bl	_assert
	ldr	w0, [x25, #8]
	add	x1, x21, w23, sxtw
	sub	w2, w19, w23
	mov	w3, #0
	bl	_recv
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w0, w23
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _EWOULDBLOCK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _EWOULDBLOCK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	ldr	w11, [x28]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.eq	LBB0_10
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ct_pipe,8,3                    ; @ct_pipe
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLPRI,4,2                    ; @POLLPRI
	.comm	_errno,4,2                      ; @errno
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
