	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_worker_run                 ## -- Begin function php_worker_run
	.p2align	4, 0x90
_php_worker_run:                        ## @php_worker_run
	.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	%rdi, %rbx
	movq	_php_script@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	movq	_phpq_free_script@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_epoll_fetch_events
	testl	%eax, %eax
	jg	LBB0_21
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	%r14b, %r14b
	jne	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	44(%rbx), %esi
	callq	_php_script_terminate
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_get_utime_monotonic
	movl	(%r12), %edi
	callq	_php_script_get_state
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	callq	_vkprintf
	movq	_immediate_stats@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	(%r12), %edi
	callq	_php_script_iterate
	movl	16(%rbx), %edx
	movl	$2, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_vkprintf
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_assert
	cmpq	$0, 24(%rbx)
	jne	LBB0_1
	jmp	LBB0_20
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	$2, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_vkprintf
	movl	$1, (%rbx)
	movq	_immediate_stats@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	$2, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_vkprintf
	movq	%rbx, %rdi
	callq	_php_worker_run_query
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	cmpq	$0, 24(%rbx)
	jne	LBB0_1
	jmp	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	$2, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_vkprintf
	movl	(%r12), %edi
	callq	_php_script_get_res
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_php_worker_set_result
	movl	(%r12), %edi
	callq	_php_script_finish
	jmp	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edx
	movl	$2, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_vkprintf
	movl	(%r12), %edi
	callq	_php_script_finish
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %eax
	movq	_http_worker@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.5(%rip), %rsi
	movl	$5, %edx
	callq	_http_return
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_rpc_worker@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_rpc_stored@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_php_script_get_error
	movq	%rbx, %rdi
	movl	$-504, %esi                     ## imm = 0xFE08
	movl	%eax, %edx
	callq	_rpc_error
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	%rax, 32(%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %r14b
	cmpq	$0, 24(%rbx)
	jne	LBB0_1
	jmp	LBB0_20
LBB0_21:
	movl	16(%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	movl	$2, %edi
	callq	_vkprintf
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	movl	$1, %esi
	callq	_put_event_into_heap_tail
	movq	_conn_wait_net@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, (%rbx)
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_php_script,4,2                 ## @php_script
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"before php_script_iterate [req_id = %016llx] (before swap context)\n"

	.comm	_immediate_stats,4,2            ## @immediate_stats
L_.str.1:                               ## @.str.1
	.asciz	"after php_script_iterate [req_id = %016llx] (after swap context)\n"

L_.str.2:                               ## @.str.2
	.asciz	"got query [req_id = %016llx]\n"

L_.str.3:                               ## @.str.3
	.asciz	"paused due to query [req_id = %016llx]\n"

L_.str.4:                               ## @.str.4
	.asciz	"php script [req_id = %016llx]: ERROR (probably timeout)\n"

	.comm	_http_worker,4,2                ## @http_worker
L_.str.5:                               ## @.str.5
	.asciz	"ERROR"

	.comm	_rpc_worker,4,2                 ## @rpc_worker
	.comm	_rpc_stored,4,2                 ## @rpc_stored
	.comm	_phpq_free_script,8,3           ## @phpq_free_script
L_.str.6:                               ## @.str.6
	.asciz	"php script [req_id = %016llx]: OK (still can return RPC_ERROR)\n"

L_.str.8:                               ## @.str.8
	.asciz	"paused for some net activity [req_id = %016llx]\n"

	.comm	_conn_wait_net,4,2              ## @conn_wait_net
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_php_worker_run                 ; -- Begin function php_worker_run
	.p2align	2
_php_worker_run:                        ; @php_worker_run
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x27, _php_script@GOTPAGE
Lloh1:
	ldr	x27, [x27, _php_script@GOTPAGEOFF]
Lloh2:
	adrp	x28, lJTI0_0@PAGE
Lloh3:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x26, _immediate_stats@GOTPAGE
Lloh5:
	ldr	x26, [x26, _immediate_stats@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh10:
	adrp	x24, l_.str.6@PAGE
Lloh11:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh12:
	adrp	x20, _phpq_free_script@GOTPAGE
Lloh13:
	ldr	x20, [x20, _phpq_free_script@GOTPAGEOFF]
Lloh14:
	adrp	x25, l_.str.4@PAGE
Lloh15:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w21, LBB0_20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	ldr	w1, [x19, #44]
	bl	_php_script_terminate
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_get_utime_monotonic
	ldr	w0, [x27]
	bl	_php_script_get_state
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_6
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19, #16]
	mov	w0, #2
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vkprintf
	str	wzr, [x26]
	ldr	w0, [x27]
	bl	_php_script_iterate
	ldr	w2, [x19, #16]
	mov	w0, #2
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vkprintf
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	bl	_assert
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19, #16]
	mov	w0, #2
	mov	x1, x22
	bl	_vkprintf
	mov	w21, #1
	str	w21, [x19]
	str	w21, [x26]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
	b	LBB0_18
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19, #16]
	mov	w0, #2
	mov	x1, x23
	bl	_vkprintf
	mov	x0, x19
	bl	_php_worker_run_query
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19, #16]
	mov	w0, #2
	mov	x1, x24
	bl	_vkprintf
	ldr	w0, [x27]
	bl	_php_script_get_res
	mov	x1, x0
	mov	x0, x19
	bl	_php_worker_set_result
	ldr	w0, [x27]
	bl	_php_script_finish
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x19, #16]
	mov	w0, #2
	mov	x1, x25
	bl	_vkprintf
	ldr	w0, [x27]
	bl	_php_script_finish
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #40]
Lloh20:
	adrp	x9, _http_worker@GOTPAGE
Lloh21:
	ldr	x9, [x9, _http_worker@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #5
	bl	_http_return
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh25:
	adrp	x9, _rpc_worker@GOTPAGE
Lloh26:
	ldr	x9, [x9, _rpc_worker@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _rpc_stored@GOTPAGE
Lloh29:
	ldr	x10, [x10, _rpc_stored@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w10, #0, #0, eq
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27]
	bl	_php_script_get_error
	mov	x2, x0
	mov	x0, x19
	mov	w1, #-504
	bl	_rpc_error
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	str	x8, [x19, #32]
	mov	w21, #1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_1
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	bl	_epoll_fetch_events
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.19:
	ldr	w2, [x19, #16]
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	mov	w20, #1
	mov	w1, #1
	bl	_put_event_into_heap_tail
Lloh33:
	adrp	x8, _conn_wait_net@GOTPAGE
Lloh34:
	ldr	x8, [x8, _conn_wait_net@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	str	w20, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.comm	_php_script,4,2                 ; @php_script
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"before php_script_iterate [req_id = %016llx] (before swap context)\n"

	.comm	_immediate_stats,4,2            ; @immediate_stats
l_.str.1:                               ; @.str.1
	.asciz	"after php_script_iterate [req_id = %016llx] (after swap context)\n"

l_.str.2:                               ; @.str.2
	.asciz	"got query [req_id = %016llx]\n"

l_.str.3:                               ; @.str.3
	.asciz	"paused due to query [req_id = %016llx]\n"

l_.str.4:                               ; @.str.4
	.asciz	"php script [req_id = %016llx]: ERROR (probably timeout)\n"

	.comm	_http_worker,4,2                ; @http_worker
l_.str.5:                               ; @.str.5
	.asciz	"ERROR"

	.comm	_rpc_worker,4,2                 ; @rpc_worker
	.comm	_rpc_stored,4,2                 ; @rpc_stored
	.comm	_phpq_free_script,8,3           ; @phpq_free_script
l_.str.6:                               ; @.str.6
	.asciz	"php script [req_id = %016llx]: OK (still can return RPC_ERROR)\n"

l_.str.8:                               ; @.str.8
	.asciz	"paused for some net activity [req_id = %016llx]\n"

	.comm	_conn_wait_net,4,2              ; @conn_wait_net
.subsections_via_symbols
