	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doqueryex                      ## -- Begin function doqueryex
	.p2align	4, 0x90
_doqueryex:                             ## @doqueryex
	.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	_havehost@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r8, %r12
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%edi, %ebx
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	_sequence@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_sendrequest
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	24(%rbp), %r8
	movq	16(%rbp), %rcx
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_getresponse
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_12
## %bb.4:
	movq	_ERR_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	_ERR_INCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%rcx), %r15d
	je	LBB0_6
## %bb.5:
	cmpl	%eax, %r15d
	je	LBB0_6
LBB0_10:
	cmpl	$0, 32(%rbp)
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_show_error_msg
	jmp	LBB0_12
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.7:
	movq	_sequence@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_8:
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_sendrequest
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movq	24(%rbp), %r8
	movl	$1, %r9d
	callq	_getresponse
	movl	%eax, %r15d
	testl	%eax, %eax
	jg	LBB0_10
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_havehost,4,2                   ## @havehost
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"***No host open, use `host' command\n"

	.comm	_sequence,4,2                   ## @sequence
	.comm	_ERR_TIMEOUT,4,2                ## @ERR_TIMEOUT
	.comm	_ERR_INCOMPLETE,4,2             ## @ERR_INCOMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doqueryex                      ; -- Begin function doqueryex
	.p2align	2
_doqueryex:                             ; @doqueryex
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _havehost@GOTPAGE
Lloh1:
	ldr	x8, [x8, _havehost@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x20, x7
	mov	x21, x6
	mov	x22, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x1
	mov	x23, x0
Lloh3:
	adrp	x28, _sequence@GOTPAGE
Lloh4:
	ldr	x28, [x28, _sequence@GOTPAGEOFF]
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	bl	_sendrequest
	mov	x27, x0
	cbnz	w0, LBB0_11
; %bb.2:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	w5, #0
	bl	_getresponse
	mov	x27, x0
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:
Lloh5:
	adrp	x8, _ERR_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
Lloh8:
	adrp	x8, _ERR_INCOMPLETE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_INCOMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w27, w9
	ccmp	w27, w8, #4, ne
	b.ne	LBB0_8
; %bb.4:
	cmp	w27, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
LBB0_6:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	bl	_sendrequest
	mov	x27, x0
	cbnz	w0, LBB0_11
; %bb.7:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	w5, #1
	bl	_getresponse
	mov	x27, x0
	cmp	w0, #1
	b.lt	LBB0_11
LBB0_8:
	ldr	w8, [x29, #16]
	cbnz	w8, LBB0_11
; %bb.9:
	mov	x0, x27
	mov	x1, x19
	bl	_show_error_msg
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w27, #-1
LBB0_11:
	mov	x0, x27
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_havehost,4,2                   ; @havehost
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"***No host open, use `host' command\n"

	.comm	_sequence,4,2                   ; @sequence
	.comm	_ERR_TIMEOUT,4,2                ; @ERR_TIMEOUT
	.comm	_ERR_INCOMPLETE,4,2             ; @ERR_INCOMPLETE
.subsections_via_symbols
