	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_parse_string
_query_parse_string:                    ## @query_parse_string
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movb	$0, -41(%rbp)
	movb	$0, -42(%rbp)
	leaq	-41(%rbp), %rdx
	callq	_query_get_char
	movl	%eax, %r14d
	movq	%rdx, %r15
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movl	%r14d, %r12d
	movq	%r15, %rbx
	jmp	LBB0_22
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	-41(%rbp), %bl
	cmpb	$98, %bl
	jne	LBB0_3
## %bb.4:
	leaq	-41(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r13, %rcx
	callq	_query_get_char
	movl	%eax, %r14d
	movq	%rdx, %r15
	movb	-41(%rbp), %al
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %eax
LBB0_5:
	cmpb	$34, %al
	movb	%bl, -43(%rbp)                  ## 1-byte Spill
	je	LBB0_8
## %bb.6:
	cmpb	$39, %al
	je	LBB0_8
## %bb.7:
	decl	%r14d
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_query_raise_expected_string
LBB0_8:
	leaq	-42(%rbp), %rdx
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%r13, %rcx
	callq	_query_get_char
	movl	%eax, %r12d
	movq	%rdx, %rbx
	cmpq	$0, (%r13)
	jne	LBB0_22
## %bb.9:
	movslq	%r14d, %rax
	addq	%rax, %r15
	leaq	-42(%rbp), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-42(%rbp), %eax
	cmpb	-41(%rbp), %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_query_get_char
	movl	%eax, %r12d
	movq	%rdx, %rbx
	cmpq	$0, (%r13)
	je	LBB0_10
	jmp	LBB0_22
LBB0_12:
	leal	(%rbx,%r12), %eax
	movl	%r15d, %ecx
	notl	%ecx
	addl	%eax, %ecx
	subl	%r15d, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	cmpb	$98, -43(%rbp)                  ## 1-byte Folded Reload
	movq	_RDT_STRING@GOTPCREL(%rip), %rsi
	cmoveq	_RDT_BINARY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%esi, 16(%r14)
	movl	%ecx, (%r14)
	cmovnel	%eax, %edx
	movslq	%edx, %rdi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	cmpb	$98, -43(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_21
## %bb.15:
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.18:
	movl	$1, %r9d
	movl	$2, %edi
	movl	$208, %r8d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r9), %r10d
	leal	-2(%rdi), %esi
	movzbl	(%r15,%rsi), %ecx
	leal	-1(%rdi), %esi
	movzbl	(%r15,%rsi), %edx
	xorl	%esi, %esi
	cmpb	$58, %cl
	setge	%sil
	leal	(%rsi,%rsi,8), %esi
	addb	%cl, %sil
	cmpb	$58, %dl
	movl	$201, %ecx
	cmovll	%r8d, %ecx
	addb	%dl, %cl
	shlb	$4, %sil
	addb	%cl, %sil
	movb	%sil, (%rax,%r10)
	cmpl	(%r14), %edi
	jae	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%r14), %rax
	incl	%r9d
	addl	$2, %edi
	jmp	LBB0_19
LBB0_13:
	movq	%r13, %rdi
	callq	_query_raise_enomem
	jmp	LBB0_22
LBB0_21:
	movl	(%r14), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	jmp	LBB0_22
LBB0_16:
	xorl	%r9d, %r9d
LBB0_17:
	movl	%r9d, (%r14)
LBB0_22:
	movl	%r12d, %eax
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDT_BINARY,4,2                 ## @RDT_BINARY
	.comm	_RDT_STRING,4,2                 ## @RDT_STRING
	.no_dead_strip	_query_parse_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_parse_string
_query_parse_string:                    ; @query_parse_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x3
	mov	x19, x2
	strh	wzr, [sp, #14]
	add	x2, sp, #15
	bl	_query_get_char
	mov	x20, x0
	mov	x21, x1
	ldr	x8, [x22]
	cbnz	x8, LBB0_20
; %bb.1:
	ldrb	w25, [sp, #15]
	cmp	w25, #98
	b.ne	LBB0_3
; %bb.2:
	add	x2, sp, #15
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_query_get_char
	mov	x20, x0
	mov	x23, x1
	ldrb	w8, [sp, #15]
	b	LBB0_4
LBB0_3:
	mov	x8, x25
	mov	x23, x21
LBB0_4:
	and	x21, x20, #0xffffffff00000000
	mov	x24, x20
	cmp	w8, #34
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #39
	b.eq	LBB0_7
; %bb.6:
	sub	w24, w24, #1
	mov	x0, x24
	mov	x1, x22
	bl	_query_raise_expected_string
LBB0_7:
	mov	w8, w24
	orr	x0, x21, x8
	add	x2, sp, #14
	mov	x1, x23
	mov	x3, x22
	bl	_query_get_char
	mov	x20, x0
	mov	x21, x1
	ldr	x8, [x22]
	cbnz	x8, LBB0_20
; %bb.8:
	add	x23, x23, w24, sxtw
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [sp, #14]
	ldrb	w9, [sp, #15]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x2, sp, #14
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_query_get_char
	mov	x20, x0
	mov	x21, x1
	ldr	x8, [x22]
	cbz	x8, LBB0_9
	b	LBB0_20
LBB0_11:
Lloh0:
	adrp	x8, _RDT_BINARY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDT_BINARY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RDT_STRING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RDT_STRING@GOTPAGEOFF]
	mvn	w10, w23
	add	w11, w21, w20
	add	w10, w11, w10
	sub	w11, w11, w23
	add	w12, w10, #2
	cmp	w11, #0
	csel	w12, w12, w11, lt
	asr	w12, w12, #1
	cmp	w25, #98
	csel	w11, w12, w11, eq
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	w10, [x19]
	sxtw	x0, w11
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.12:
	cmp	w25, #98
	b.ne	LBB0_18
; %bb.13:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.14:
	mov	w8, #1
	mov	w9, #2
	mov	w10, #9
	mov	w11, #-55
	mov	w12, #-48
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	w13, w9, #2
	ldrsb	w13, [x23, w13, uxtw]
	sub	w14, w9, #1
	ldrsb	w14, [x23, w14, uxtw]
	sub	w15, w8, #1
	cmp	w13, #58
	csel	w16, wzr, w10, lt
	add	w13, w16, w13
	cmp	w14, #58
	csel	w16, w12, w11, lt
	add	w14, w16, w14
	add	w13, w14, w13, lsl #4
	strb	w13, [x0, w15, uxtw]
	ldr	w13, [x19]
	cmp	w9, w13
	b.hs	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x19, #8]
	add	w8, w8, #1
	add	w9, w9, #2
	b	LBB0_15
LBB0_17:
	mov	x0, x22
	bl	_query_raise_enomem
	b	LBB0_20
LBB0_18:
	ldr	w2, [x19]
	mov	x1, x23
	bl	_memcpy
	b	LBB0_20
LBB0_19:
	str	w8, [x19]
LBB0_20:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RDT_BINARY,4,2                 ; @RDT_BINARY
	.comm	_RDT_STRING,4,2                 ; @RDT_STRING
	.no_dead_strip	_query_parse_string
.subsections_via_symbols
