	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcx_execute                   ## -- Begin function rpcx_execute
	.p2align	4, 0x90
_rpcx_execute:                          ## @rpcx_execute
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_RPCS_DATA
	movq	%rax, %r14
	movslq	12(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_sigterm_on@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_sigterm_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_precise_now@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
LBB0_2:
	leal	-129(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.6:
	cmpl	$126214401, %r12d               ## imm = 0x785E101
	jge	LBB0_5
## %bb.7:
	leaq	8(%r15), %rdi
	leaq	_rpcx_execute.buf(%rip), %rsi
	movl	%r12d, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	testb	$3, %r12b
	sete	%dil
	callq	_assert
	cmpl	$23, %r12d
	jle	LBB0_5
## %bb.8:
	cmpl	$129, %ebx
	jne	LBB0_11
## %bb.9:
	cmpl	$31, %r12d
	jbe	LBB0_5
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_assert
	movl	_rpcx_execute.buf+12(%rip), %edi
	movslq	_rpcx_execute.buf+24(%rip), %rsi
	movq	_precise_now@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_do_rpc_start_lease
	jmp	LBB0_19
LBB0_3:
	cmpl	$128, %ebx
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_do_rpc_stop_lease
LBB0_5:
	movq	_SKIP_ALL_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	shrl	$2, %r12d
	movq	_rpcx_execute.buf+12(%rip), %rbx
	addl	$-6, %r12d
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_script_timeout@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_set_connection_timeout
	movl	20(%r14), %ecx
	movl	16(%r14), %r8d
	movl	8(%r14), %eax
	movl	12(%r14), %r9d
	movl	%eax, (%rsp)
	leaq	_rpcx_execute.buf+20(%rip), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_rpc_query_data_create
	movq	_run_once@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_12
## %bb.13:
	movq	_rpc_worker@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_once_worker@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %edi
	movl	(%r13), %r8d
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movq	%rbx, %r9
	callq	_php_worker_create
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_php_worker_main
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_rpcx_at_query_end
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_16:
	xorl	%ebx, %ebx
	cmpl	$0, 4(%r15)
	movl	$0, %edi
	js	LBB0_18
## %bb.17:
	movl	(%r15), %eax
	movq	_conn_wait_net@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
LBB0_18:
	callq	_assert
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpcs_execute: fd=%d, op=%d, len=%d\n"

.zerofill __DATA,__bss,_rpcx_execute.buf,126214400,4 ## @rpcx_execute.buf
	.comm	_sigterm_on,8,3                 ## @sigterm_on
	.comm	_sigterm_time,8,3               ## @sigterm_time
	.comm	_precise_now,8,3                ## @precise_now
	.comm	_SKIP_ALL_BYTES,4,2             ## @SKIP_ALL_BYTES
L_.str.1:                               ## @.str.1
	.asciz	"got RPC_INVOKE_KPHP_REQ [req_id = %016llx]\n"

	.comm	_script_timeout,4,2             ## @script_timeout
	.comm	_run_once,4,2                   ## @run_once
	.comm	_once_worker,4,2                ## @once_worker
	.comm	_rpc_worker,4,2                 ## @rpc_worker
	.comm	_conn_wait_net,4,2              ## @conn_wait_net
	.comm	_MAX_RPC_QUERY_LEN,4,2          ## @MAX_RPC_QUERY_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpcx_execute                   ; -- Begin function rpcx_execute
	.p2align	2
_rpcx_execute:                          ; @rpcx_execute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_RPCS_DATA
	mov	x20, x0
	ldrsw	x2, [x19, #12]
	stp	x22, x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
Lloh2:
	adrp	x8, _sigterm_on@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sigterm_on@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _sigterm_time@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sigterm_time@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _precise_now@GOTPAGE
Lloh9:
	ldr	x9, [x9, _precise_now@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
LBB0_2:
	sub	w8, w22, #129
	cmp	w8, #3
	b.hs	LBB0_8
; %bb.3:
	mov	w8, #57601
	movk	w8, #1925, lsl #16
	cmp	w21, w8
	b.ge	LBB0_10
; %bb.4:
	add	x0, x19, #8
Lloh11:
	adrp	x1, _rpcx_execute.buf@PAGE
Lloh12:
	add	x1, x1, _rpcx_execute.buf@PAGEOFF
	mov	x2, x21
	bl	_read_in
	cmp	w0, w21
	cset	w0, eq
	bl	_assert
	tst	w21, #0x3
	cset	w0, eq
	bl	_assert
	cmp	w21, #23
	b.le	LBB0_10
; %bb.5:
	cmp	w22, #129
	b.ne	LBB0_12
; %bb.6:
	cmp	w21, #31
	b.ls	LBB0_10
; %bb.7:
	mov	w0, #0
	bl	_assert
Lloh13:
	adrp	x8, _rpcx_execute.buf@PAGE+12
Lloh14:
	add	x8, x8, _rpcx_execute.buf@PAGEOFF+12
	ldr	w0, [x8]
	ldrsw	x8, [x8, #12]
Lloh15:
	adrp	x9, _precise_now@GOTPAGE
Lloh16:
	ldr	x9, [x9, _precise_now@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_do_rpc_start_lease
	b	LBB0_18
LBB0_8:
	cmp	w22, #128
	b.ne	LBB0_10
; %bb.9:
	bl	_do_rpc_stop_lease
LBB0_10:
Lloh18:
	adrp	x8, _SKIP_ALL_BYTES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SKIP_ALL_BYTES@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	lsr	w8, w21, #2
Lloh21:
	adrp	x21, _rpcx_execute.buf@PAGE+12
Lloh22:
	add	x21, x21, _rpcx_execute.buf@PAGEOFF+12
	ldr	x22, [x21], #8
	sub	w23, w8, #6
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x2, x22
	bl	_vkprintf
Lloh25:
	adrp	x24, _script_timeout@GOTPAGE
Lloh26:
	ldr	x24, [x24, _script_timeout@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_set_connection_timeout
	ldp	w4, w3, [x20, #16]
	ldp	w6, w5, [x20, #8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_rpc_query_data_create
	mov	x3, x0
Lloh27:
	adrp	x8, _run_once@GOTPAGE
Lloh28:
	ldr	x8, [x8, _run_once@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _once_worker@GOTPAGE
Lloh31:
	ldr	x9, [x9, _once_worker@GOTPAGEOFF]
Lloh32:
	adrp	x10, _rpc_worker@GOTPAGE
Lloh33:
	ldr	x10, [x10, _rpc_worker@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ldr	w4, [x24]
	mov	x1, x19
	mov	x2, #0
	mov	x5, x22
	bl	_php_worker_create
	str	x0, [x20]
	bl	_php_worker_main
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_rpcx_at_query_end
	b	LBB0_18
LBB0_14:
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_16
; %bb.15:
	ldr	w8, [x19]
Lloh34:
	adrp	x9, _conn_wait_net@GOTPAGE
Lloh35:
	ldr	x9, [x9, _conn_wait_net@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	bl	_assert
LBB0_18:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpcs_execute: fd=%d, op=%d, len=%d\n"

.zerofill __DATA,__bss,_rpcx_execute.buf,126214400,0 ; @rpcx_execute.buf
	.comm	_sigterm_on,8,3                 ; @sigterm_on
	.comm	_sigterm_time,8,3               ; @sigterm_time
	.comm	_precise_now,8,3                ; @precise_now
	.comm	_SKIP_ALL_BYTES,4,2             ; @SKIP_ALL_BYTES
l_.str.1:                               ; @.str.1
	.asciz	"got RPC_INVOKE_KPHP_REQ [req_id = %016llx]\n"

	.comm	_script_timeout,4,2             ; @script_timeout
	.comm	_run_once,4,2                   ; @run_once
	.comm	_once_worker,4,2                ; @once_worker
	.comm	_rpc_worker,4,2                 ; @rpc_worker
	.comm	_conn_wait_net,4,2              ; @conn_wait_net
	.comm	_MAX_RPC_QUERY_LEN,4,2          ; @MAX_RPC_QUERY_LEN
.subsections_via_symbols
