	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpq_queryhost                 ## -- Begin function ntpq_queryhost
	.p2align	4, 0x90
_ntpq_queryhost:                        ## @ntpq_queryhost
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_numhosts@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %r15d
	movq	%rdx, %r14
	leaq	-40(%rbp), %rax
	leaq	-32(%rbp), %r10
	movzwl	%di, %edi
	movzwl	%si, %esi
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_doquery
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:
	movslq	%r15d, %rax
	cmpq	%rax, %rdx
	jbe	LBB0_6
## %bb.5:
	movq	%rax, -32(%rbp)
	movq	%rax, %rdx
LBB0_6:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_memcpy
	movl	-32(%rbp), %ebx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numhosts,8,3                   ## @numhosts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ntpq_queryhost                 ; -- Begin function ntpq_queryhost
	.p2align	2
_ntpq_queryhost:                        ; @ntpq_queryhost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _numhosts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _numhosts@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	add	x5, sp, #12
	add	x6, sp, #16
	add	x7, sp, #24
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_doquery
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_7
; %bb.2:
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_7
; %bb.3:
	sxtw	x8, w20
	cmp	x2, x8
	b.ls	LBB0_5
; %bb.4:
	str	x8, [sp, #16]
	mov	x2, x8
LBB0_5:
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_memcpy
	ldr	w0, [sp, #16]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_numhosts,8,3                   ; @numhosts
.subsections_via_symbols
