	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gkc_query
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gkc_query
	.p2align	4, 0x90
_gkc_query:                             ## @gkc_query
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movq	%rdi, %r14
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_list_empty
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.1:
	movapd	-48(%rbp), %xmm0                ## 16-byte Reload
	movsd	-56(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	%xmm2, %xmm1
	movq	(%r14), %rbx
	cvttpd2dq	%xmm0, %xmm0
	cvtdq2pd	%xmm0, %xmm0
	addsd	%xmm1, %xmm0
	movapd	%xmm0, -48(%rbp)                ## 16-byte Spill
	xorpd	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm2, -32(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_list_to_tuple
	movq	%rax, %r15
	movq	(%rbx), %rbx
	cmpq	%r14, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_list_to_tuple
	movsd	-32(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	(%r15), %xmm2
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	addsd	%xmm2, %xmm0
	movsd	8(%rax), %xmm1                  ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	ucomisd	-48(%rbp), %xmm1                ## 16-byte Folded Reload
	jbe	LBB0_2
## %bb.4:
	ucomisd	-48(%rbp), %xmm0                ## 16-byte Folded Reload
	cmovbeq	%rax, %r15
LBB0_5:
	movl	16(%r15), %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gkc_query                      ; -- Begin function gkc_query
	.p2align	2
_gkc_query:                             ; @gkc_query
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	fmov	d8, d0
	ldp	d9, d10, [x0]
	add	x19, x0, #16
	mov	x0, x19
	bl	_list_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	fmov	d0, #0.50000000
	fmadd	d0, d8, d9, d0
	fcvtzs	w8, d0
	fmul	d0, d9, d10
	ldr	x20, [x19]
	scvtf	d1, w8
	fadd	d8, d0, d1
	movi	d9, #0000000000000000
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_list_to_tuple
	mov	x21, x0
	ldr	x20, [x20]
	cmp	x20, x19
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_list_to_tuple
	ldr	d0, [x21]
	fadd	d9, d9, d0
	ldp	d0, d1, [x0]
	fadd	d0, d9, d0
	fadd	d1, d0, d1
	fcmp	d8, d1
	b.pl	LBB0_3
; %bb.5:
	fcmp	d8, d0
	csel	x21, x21, x0, mi
LBB0_6:
	ldr	w0, [x21, #16]
LBB0_7:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
