	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function kphp_query_forward_conn
LCPI0_0:
	.quad	0x3feccccccccccccd              ## double 0.90000000000000002
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_kphp_query_forward_conn
	.p2align	4, 0x90
_kphp_query_forward_conn:               ## @kphp_query_forward_conn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CC@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rdx
	movl	20(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_vkprintf
	movl	%ebx, %edi
	callq	_assert
	xorl	%eax, %eax
	callq	_tl_fetch_error
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%r13), %rax
	incl	16(%rax)
	movq	_forwarded_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_CQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	(%rax), %r14
	movsd	8(%rax), %xmm1                  ## xmm1 = mem[0],zero
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%rax)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_tl_store_init
	movq	_CQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	16(%rbx), %rax
	movq	(%r13), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%r12, (%rbx)
	movq	%r15, 16(%rbx)
	movq	%rbx, %rdi
	callq	_tl_store_header
	movq	%r14, (%rbx)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	callq	_tl_fetch_unread
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_tl_copy_through
	movq	(%r13), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	_CQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edi
	callq	_tl_store_end_ext
	xorl	%eax, %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default_query_forward: CC->id = %lld, CC->timeout = %lf\n"

	.comm	_CC,8,3                         ## @CC
	.comm	_forwarded_queries,4,2          ## @forwarded_queries
	.comm	_CQ,8,3                         ## @CQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kphp_query_forward_conn        ; -- Begin function kphp_query_forward_conn
	.p2align	2
_kphp_query_forward_conn:               ; @kphp_query_forward_conn
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _CC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CC@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x2, [x8]
	ldr	w3, [x8, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	x0, x22
	bl	_assert
	bl	_tl_fetch_error
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x23]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
Lloh4:
	adrp	x8, _forwarded_queries@GOTPAGE
Lloh5:
	ldr	x8, [x8, _forwarded_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh6:
	adrp	x24, _CQ@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CQ@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	x25, [x8]
	ldr	d8, [x8, #8]
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	movk	x9, #16364, lsl #48
	fmov	d0, x9
	fmul	d0, d8, d0
	str	d0, [x8, #8]
	mov	x0, x22
	mov	x1, x19
	bl	_tl_store_init
	ldr	x8, [x24]
	ldr	x22, [x8]
	ldr	x8, [x22, #16]
	ldr	x9, [x23]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	str	x19, [x22]
	str	x21, [x22, #16]
	mov	x0, x22
	bl	_tl_store_header
	str	x25, [x22]
	ldr	x8, [x23]
	ldr	x8, [x8]
	str	x8, [x22, #16]
	str	d8, [x22, #8]
	bl	_tl_fetch_unread
	mov	x1, x20
	bl	_tl_copy_through
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w0, [x8, #24]
	bl	_tl_store_end_ext
	mov	w0, #0
LBB0_3:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default_query_forward: CC->id = %lld, CC->timeout = %lf\n"

	.comm	_CC,8,3                         ; @CC
	.comm	_forwarded_queries,4,2          ; @forwarded_queries
	.comm	_CQ,8,3                         ; @CQ
.subsections_via_symbols
