	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_watchcat_query          ## -- Begin function create_watchcat_query
	.p2align	4, 0x90
_create_watchcat_query:                 ## @create_watchcat_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	leaq	_create_watchcat_query.Q(%rip), %r14
	movq	%r14, %rdi
	callq	_searchy_query_parse
	movl	$24, %edi
	callq	_dl_malloc0
	movq	%rax, %r15
	movslq	_create_watchcat_query.Q(%rip), %rbx
	movl	%ebx, (%rax)
	shlq	$2, %rbx
	movl	%ebx, %edi
	callq	_dl_malloc
	movq	%rax, 16(%r15)
	movl	_create_watchcat_query.Q+4(%rip), %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	_create_watchcat_query.Q+8(%rip), %rax
	movl	(%rax), %edi
	callq	_searchy_phrases_length
	movl	%eax, %ebx
	movq	_create_watchcat_query.Q+8(%rip), %rax
	movl	4(%rax), %edi
	callq	_searchy_phrases_length
	addl	%eax, %ebx
	movl	%ebx, 4(%r15)
	shll	$2, %ebx
	movl	%ebx, %edi
	callq	_dl_malloc
	movq	%rax, 8(%r15)
	movq	_create_watchcat_query.Q+8(%rip), %rcx
	movl	(%rcx), %esi
	movq	16(%r15), %rcx
	movl	_create_watchcat_query.Q+4(%rip), %r8d
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_searchy_phrases_dump
	movq	_create_watchcat_query.Q+8(%rip), %rcx
	movl	4(%rcx), %esi
	movq	16(%r15), %rcx
	movl	_create_watchcat_query.Q+4(%rip), %r8d
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_searchy_phrases_dump
	movslq	4(%r15), %rcx
	shlq	$2, %rcx
	addq	8(%r15), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_assert
	movq	8(%r15), %rdi
	movl	4(%r15), %esi
	movq	_cmp_watchcat_query_phrase@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_qsort
	movq	%r14, %rdi
	callq	_searchy_query_free
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_create_watchcat_query.Q,16,3 ## @create_watchcat_query.Q
	.comm	_cmp_watchcat_query_phrase,4,2  ## @cmp_watchcat_query_phrase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_watchcat_query          ; -- Begin function create_watchcat_query
	.p2align	2
_create_watchcat_query:                 ; @create_watchcat_query
	.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
	mov	x1, x0
Lloh0:
	adrp	x19, _create_watchcat_query.Q@PAGE
Lloh1:
	add	x19, x19, _create_watchcat_query.Q@PAGEOFF
	mov	x0, x19
	bl	_searchy_query_parse
	mov	w0, #24
	bl	_dl_malloc0
	mov	x20, x0
	ldrsw	x8, [x19]
	str	w8, [x0]
	lsl	x21, x8, #2
	mov	x0, x21
	bl	_dl_malloc
	str	x0, [x20, #16]
	ldr	w1, [x19, #4]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_searchy_phrases_length
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_searchy_phrases_length
	add	w8, w0, w21
	str	w8, [x20, #4]
	lsl	w0, w8, #2
	bl	_dl_malloc
	str	x0, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	x3, [x20, #16]
	ldr	w4, [x19, #4]
	mov	w2, #0
	bl	_searchy_phrases_dump
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	ldr	x3, [x20, #16]
	ldr	w4, [x19, #4]
	mov	w2, #1
	bl	_searchy_phrases_dump
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #4]
	add	x8, x8, x9, lsl #2
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x0, [x20, #8]
	ldr	w1, [x20, #4]
Lloh2:
	adrp	x8, _cmp_watchcat_query_phrase@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cmp_watchcat_query_phrase@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	w2, #4
	bl	_qsort
	mov	x0, x19
	bl	_searchy_query_free
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_create_watchcat_query.Q,16,3 ; @create_watchcat_query.Q
	.comm	_cmp_watchcat_query_phrase,4,2  ; @cmp_watchcat_query_phrase
.subsections_via_symbols
