	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_watchcat_query_hash_impl       ## -- Begin function watchcat_query_hash_impl
	.p2align	4, 0x90
_watchcat_query_hash_impl:              ## @watchcat_query_hash_impl
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r11d
	testl	%r11d, %r11d
	jle	LBB0_1
## %bb.2:
	movabsq	$-8690466094656961759, %rdx     ## imm = 0x8765432187654321
	movabsq	$1311768465173141112, %rax      ## imm = 0x1234567812345678
	movq	8(%rdi), %r12
	movabsq	$1311693406324658740, %r13      ## imm = 0x1234123412341234
	xorl	%esi, %esi
	movq	%rax, %r9
	leaq	1(%rax), %r15
	movl	$1, %r14d
	xorl	%r10d, %r10d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r13
	incq	%rsi
	cmpq	%r11, %rsi
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movabsq	$4837221284911858465, %rax      ## imm = 0x4321432143214321
	imulq	%rax, %r13
	leaq	(%rsi,%rsi,2), %rcx
	movq	16(%r12,%rcx,8), %rdi
	testq	%rdi, %rdi
	cmovel	%r14d, %r10d
	movq	%r15, %rax
	cmoveq	%r9, %rax
	addq	%rdi, %rax
	movl	(%r12,%rcx,8), %ebx
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12,%rcx,8), %rdi
	leaq	-1(%rbx), %r8
	movl	%ebx, %ecx
	andl	$3, %ecx
	cmpq	$3, %r8
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	andl	$-4, %ebx
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%rdx, %rax
	addq	(%rdi,%r8,8), %rax
	imulq	%rdx, %rax
	addq	8(%rdi,%r8,8), %rax
	imulq	%rdx, %rax
	addq	16(%rdi,%r8,8), %rax
	imulq	%rdx, %rax
	addq	24(%rdi,%r8,8), %rax
	addq	$4, %r8
	cmpq	%r8, %rbx
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdi,%r8,8), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imulq	%rdx, %rax
	addq	(%rdi,%rbx,8), %rax
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	cmpl	$1, %r10d
	sbbq	%rax, %rax
	orq	%r13, %rax
	jmp	LBB0_13
LBB0_1:
	movq	$-1, %rax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_watchcat_query_hash_impl       ; -- Begin function watchcat_query_hash_impl
	.p2align	2
_watchcat_query_hash_impl:              ; @watchcat_query_hash_impl
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x10, #0
	mov	w9, #0
	mov	x11, #22136
	movk	x11, #4660, lsl #16
	movk	x11, #22136, lsl #32
	movk	x11, #4660, lsl #48
	ldr	x12, [x0, #8]
	mov	x13, #4660
	movk	x13, #4660, lsl #16
	movk	x13, #4660, lsl #32
	movk	x13, #4660, lsl #48
	mov	x14, #17185
	movk	x14, #17185, lsl #16
	movk	x14, #17185, lsl #32
	movk	x14, #17185, lsl #48
	mov	w15, #24
	mov	x16, #17185
	movk	x16, #34661, lsl #16
	movk	x16, #17185, lsl #32
	movk	x16, #34661, lsl #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	x13, x13, x14
	add	x13, x17, x13
	add	x10, x10, #1
	cmp	x10, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	madd	x0, x10, x15, x12
	ldr	x17, [x0, #16]
	cmp	x17, #0
	csinc	w9, w9, wzr, ne
	cinc	x1, x11, ne
	add	x17, x1, x17
	ldr	w0, [x0]
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x1, x10, x15, x12
	ldr	x1, [x1, #8]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x1], #8
	madd	x17, x17, x16, x2
	subs	x0, x0, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	cmp	w9, #0
	csinv	x0, x13, xzr, ne
	ret
LBB0_7:
	mov	x0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
