	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_normalized_query
_generate_normalized_query:             ## @generate_normalized_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_fill_in_constant_lengths
	movl	(%r15), %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rbx,%rax,2), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rax,2), %edi
	incl	%edi
	callq	_palloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi,%r13,8), %r14d
	subl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%edx, %ecx
	movl	%r14d, %r15d
	subl	%ecx, %r15d
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movslq	%ebx, %rbx
	movl	%r12d, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%rbx), %rdi
	movslq	%eax, %rsi
	addq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%r15d, %edx
	callq	_memcpy
	addl	%r15d, %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movslq	%ebx, %rbx
	leaq	(%r12,%rbx), %rdi
	incq	%r13
	movl	4(%r15), %edx
	addl	%r13d, %edx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	addl	%eax, %ebx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	(%r14,%rcx), %r12d
	movl	(%r15), %eax
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rsi
	cmpq	%rsi, %r13
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	movl	4(%rsi,%r13,8), %edi
	testl	%edi, %edi
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_7:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	subl	%r12d, %r14d
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movslq	%ebx, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	addq	%rbx, %rdi
	movslq	%r12d, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	addl	%r14d, %ebx
	xorl	%edi, %edi
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	setle	%dil
	callq	_Assert
	movslq	%ebx, %rax
	movb	$0, (%r15,%rax)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rax
	addq	$56, %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	"$%d"

	.no_dead_strip	_generate_normalized_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_normalized_query
_generate_normalized_query:             ; @generate_normalized_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w19, [x3]
	bl	_fill_in_constant_lengths
	ldr	w8, [x23]
	mov	w9, #10
	madd	w8, w8, w9, w19
	stp	w19, w8, [sp]                   ; 8-byte Folded Spill
	add	w0, w8, #1
	bl	_palloc
	mov	x20, x0
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x28, #0
	mov	w10, #0
	mov	w9, #0
	mov	w26, #0
	mov	w19, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x8, x28, #3
	ldr	w8, [x11, x8]
	sub	w24, w8, w22
	add	w8, w10, w9
	sub	w25, w24, w8
	mvn	w8, w25
	lsr	w0, w8, #31
	bl	_Assert
	sxtw	x26, w26
	add	x0, x20, x26
	add	x1, x21, w19, sxtw
	mov	x2, x25
	bl	_memcpy
	add	x19, x26, w25, sxtw
	add	x0, x20, x19
	add	x28, x28, #1
	ldr	w8, [x23, #4]
	add	w2, w8, w28
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	add	w26, w19, w0
	add	w19, w24, w27
	ldr	w8, [x23]
	mov	x9, x24
	mov	x10, x27
	cmp	x28, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x23, #8]
	add	x12, x11, x28, lsl #3
	ldr	w27, [x12, #4]
	tbz	w27, #31, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w19, #0
	mov	w26, #0
LBB0_6:
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	sub	w22, w8, w19
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_Assert
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	sxtw	x23, w26
	add	x0, x20, x23
	add	x1, x21, w19, sxtw
	mov	x2, x22
	bl	_memcpy
	add	x19, x23, w22, sxtw
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w19, w8
	cset	w0, le
	bl	_Assert
	strb	wzr, [x20, x19]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w19, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$%d"

	.no_dead_strip	_generate_normalized_query
.subsections_via_symbols
