	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optimize_query                 ## -- Begin function optimize_query
	.p2align	4, 0x90
_optimize_query:                        ## @optimize_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_optimize_query
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rdi
	callq	_optimize_query
	movq	%rax, %rcx
	movq	%rax, 16(%rbx)
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.2:
	leaq	8(%rbx), %rdx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rdi
	addq	%rsi, %rdi
	movq	%rbx, %rax
	jmpq	*%rdi
LBB0_3:
	movq	(%rdx), %rdx
	movl	(%rdx), %eax
	cmpl	$129, %eax
	je	LBB0_20
## %bb.4:
	cmpl	$132, %eax
	je	LBB0_15
## %bb.17:
	movl	(%rcx), %esi
	movq	%rcx, %rax
	cmpl	$129, %esi
	je	LBB0_7
## %bb.18:
	movq	%rdx, %rax
	cmpl	$132, %esi
	je	LBB0_7
	jmp	LBB0_23
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	xorl	%edi, %edi
	callq	_assert
                                        ## implicit-def: $rax
	jmp	LBB0_7
LBB0_9:
	movq	(%rdx), %rax
	cmpl	$132, (%rax)
	je	LBB0_7
## %bb.10:
	movl	(%rcx), %ecx
	cmpl	$132, %ecx
	je	LBB0_7
## %bb.11:
	cmpl	$129, %ecx
	jne	LBB0_23
## %bb.12:
	movl	$132, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdx)
	movl	$0, 16(%rdx)
	movq	%rbx, %rax
	jmp	LBB0_7
LBB0_13:
	movq	(%rdx), %rdx
	movl	(%rdx), %eax
	cmpl	$132, %eax
	je	LBB0_20
## %bb.14:
	cmpl	$129, %eax
	jne	LBB0_21
LBB0_15:
	movq	%rcx, %rax
	jmp	LBB0_7
LBB0_20:
	movq	%rdx, %rax
	jmp	LBB0_7
LBB0_21:
	movl	(%rcx), %esi
	movq	%rcx, %rax
	cmpl	$132, %esi
	je	LBB0_7
## %bb.22:
	movq	%rdx, %rax
	cmpl	$129, %esi
	je	LBB0_7
LBB0_23:
	movq	%rbx, %rax
	jmp	LBB0_7
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_optimize_query                 ; -- Begin function optimize_query
	.p2align	2
_optimize_query:                        ; @optimize_query
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x20, x0
	ldr	x0, [x20, #8]!
	bl	_optimize_query
	str	x0, [x20]
	ldr	x0, [x19, #16]
	bl	_optimize_query
	str	x0, [x19, #16]
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	mov	x8, x19
	br	x10
LBB0_3:
	ldr	x9, [x20]
	ldr	w8, [x9]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.4:
	cmp	w8, #132
	b.eq	LBB0_16
; %bb.5:
	ldr	w10, [x0]
	mov	x8, x0
	cmp	w10, #129
	b.eq	LBB0_8
; %bb.6:
	mov	x8, x9
	cmp	w10, #132
	b.eq	LBB0_8
	b	LBB0_20
LBB0_7:
	mov	x8, #0
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #0
	bl	_assert
                                        ; implicit-def: $x8
	b	LBB0_8
LBB0_10:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cmp	w9, #132
	b.eq	LBB0_8
; %bb.11:
	ldr	w9, [x0]
	cmp	w9, #132
	b.eq	LBB0_8
; %bb.12:
	cmp	w9, #129
	b.ne	LBB0_20
; %bb.13:
	mov	w8, #132
	str	w8, [x19]
	stp	xzr, xzr, [x20]
	str	wzr, [x20, #16]
	mov	x8, x19
	b	LBB0_8
LBB0_14:
	ldr	x9, [x20]
	ldr	w8, [x9]
	cmp	w8, #132
	b.eq	LBB0_17
; %bb.15:
	cmp	w8, #129
	b.ne	LBB0_18
LBB0_16:
	mov	x8, x0
	b	LBB0_8
LBB0_17:
	mov	x8, x9
	b	LBB0_8
LBB0_18:
	ldr	w10, [x0]
	mov	x8, x0
	cmp	w10, #132
	b.eq	LBB0_8
; %bb.19:
	mov	x8, x9
	cmp	w10, #129
	b.eq	LBB0_8
LBB0_20:
	mov	x8, x19
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
.subsections_via_symbols
