	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_query
_do_query:                              ## @do_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NS_PACKETSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_ns_o_query@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movq	%r12, %rdx
	movq	%r14, %r12
	movq	%r14, %rcx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	%rbx
	pushq	$0
	pushq	$0
	callq	_res_nmkquery
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	_NS_MAXMSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_res_nsend
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	je	LBB0_14
## %bb.3:
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_ns_initparse
	testq	%rax, %rax
	js	LBB0_15
## %bb.4:
	movl	(%r15), %edi
	movq	_ns_s_an@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_ns_msg_count
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_19
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%cl, %eax
	addl	%eax, %r13d
	incl	%ebx
	movl	(%r15), %edi
	movl	(%r14), %esi
	callq	_ns_msg_count
	cmpl	%eax, %ebx
	jge	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	leaq	-52(%rbp), %rcx
	callq	_ns_parserr
	testq	%rax, %rax
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %edi
	callq	_ns_rr_class
	cmpq	%r12, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %edi
	callq	_ns_rr_type
	movb	$1, %cl
	movq	_ns_t_cname@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %edi
	callq	_ns_rr_type
	movq	_ns_t_dname@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	jmp	LBB0_7
LBB0_12:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINTF
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
LBB0_17:
	callq	_DPRINTF
LBB0_18:
	movl	$-1, %r13d
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_PACKETSZ,4,2                ## @NS_PACKETSZ
	.comm	_ns_o_query,4,2                 ## @ns_o_query
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_query: res_nmkquery failed"

	.comm	_NS_MAXMSG,4,2                  ## @NS_MAXMSG
L_.str.1:                               ## @.str.1
	.asciz	"do_query: res_nsend failed"

L_.str.2:                               ## @.str.2
	.asciz	"do_query: res_nsend returned 0"

	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"do_query: ns_initparse failed"

	.comm	_ns_s_an,4,2                    ## @ns_s_an
L_.str.4:                               ## @.str.4
	.asciz	"do_query: ns_parserr failed"

	.comm	_ns_t_cname,8,3                 ## @ns_t_cname
	.comm	_ns_t_dname,8,3                 ## @ns_t_dname
	.no_dead_strip	_do_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_query
_do_query:                              ; @do_query
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x5
	mov	x21, x4
	mov	x4, x3
	mov	x20, x2
	mov	x2, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _NS_PACKETSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NS_PACKETSZ@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x8, _ns_o_query@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ns_o_query@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	sp, sp, #16
	str	w12, [sp, #8]
	str	x23, [sp]
	mov	x3, x20
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_res_nmkquery
	add	sp, sp, #16
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x2, x0
Lloh11:
	adrp	x8, _NS_MAXMSG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NS_MAXMSG@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	bl	_res_nsend
	tbnz	w0, #31, LBB0_14
; %bb.2:
	mov	x1, x0
	cbz	w0, LBB0_15
; %bb.3:
	mov	x0, x21
	mov	x2, x19
	bl	_ns_initparse
	tbnz	x0, #63, LBB0_16
; %bb.4:
	ldr	w0, [x19]
Lloh14:
	adrp	x23, _ns_s_an@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ns_s_an@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ns_msg_count
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.5:
	mov	w21, #0
	mov	w22, #0
Lloh16:
	adrp	x24, _ns_t_cname@GOTPAGE
Lloh17:
	ldr	x24, [x24, _ns_t_cname@GOTPAGEOFF]
Lloh18:
	adrp	x25, _ns_t_dname@GOTPAGE
Lloh19:
	ldr	x25, [x25, _ns_t_dname@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, w8
	add	w22, w22, #1
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_ns_msg_count
	cmp	w22, w0
	b.ge	LBB0_21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	sub	x3, x29, #76
	mov	x0, x19
	mov	x2, x22
	bl	_ns_parserr
	tbnz	x0, #63, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w0, [x29, #-76]
	bl	_ns_rr_class
	cmp	x0, x20
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	w0, [x29, #-76]
	bl	_ns_rr_type
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w0, [x29, #-76]
	bl	_ns_rr_type
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w8, eq
	b	LBB0_7
LBB0_13:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_19
LBB0_14:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_15:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTF
Lloh26:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _errno@GOTPAGE
Lloh30:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
	b	LBB0_20
LBB0_16:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_17:
	mov	w21, #0
	b	LBB0_21
LBB0_18:
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_19:
	bl	_DPRINTF
LBB0_20:
	mov	w21, #-1
LBB0_21:
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_PACKETSZ,4,2                ; @NS_PACKETSZ
	.comm	_ns_o_query,4,2                 ; @ns_o_query
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_query: res_nmkquery failed"

	.comm	_NS_MAXMSG,4,2                  ; @NS_MAXMSG
l_.str.1:                               ; @.str.1
	.asciz	"do_query: res_nsend failed"

l_.str.2:                               ; @.str.2
	.asciz	"do_query: res_nsend returned 0"

	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"do_query: ns_initparse failed"

	.comm	_ns_s_an,4,2                    ; @ns_s_an
l_.str.4:                               ; @.str.4
	.asciz	"do_query: ns_parserr failed"

	.comm	_ns_t_cname,8,3                 ; @ns_t_cname
	.comm	_ns_t_dname,8,3                 ; @ns_t_dname
	.no_dead_strip	_do_query
.subsections_via_symbols
