	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kitten_php_forward             ## -- Begin function kitten_php_forward
	.p2align	4, 0x90
_kitten_php_forward:                    ## @kitten_php_forward
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_vkprintf
	xorl	%eax, %eax
	callq	_tl_fetch_error
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_CQ@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.4:
	xorl	%edi, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kitten_php_delay               ## TAILCALL
LBB0_2:
	movl	$1, %edi
	callq	_kitten_php_get_connection
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_vkprintf
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	callq	_get_free_rpc_qid
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kphp_query_forward_conn        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"forward: CC = %p\n"

	.comm	_CC,8,3                         ## @CC
	.comm	_CQ,8,3                         ## @CQ
L_.str.1:                               ## @.str.1
	.asciz	"Forwarding: connect = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kitten_php_forward             ; -- Begin function kitten_php_forward
	.p2align	2
_kitten_php_forward:                    ; @kitten_php_forward
	.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
Lloh0:
	adrp	x20, _CC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CC@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	bl	_tl_fetch_error
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	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
LBB0_2:
Lloh4:
	adrp	x21, _CQ@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CQ@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w1, #0
	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
	b	_kitten_php_delay
LBB0_4:
	mov	w0, #1
	bl	_kitten_php_get_connection
	cbz	x0, LBB0_1
; %bb.5:
	mov	x19, x0
	ldr	x2, [x0]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_vkprintf
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	bl	_get_free_rpc_qid
	mov	x2, x0
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #1
	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
	b	_kphp_query_forward_conn
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"forward: CC = %p\n"

	.comm	_CC,8,3                         ; @CC
	.comm	_CQ,8,3                         ; @CQ
l_.str.1:                               ; @.str.1
	.asciz	"Forwarding: connect = %d\n"

.subsections_via_symbols
