	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_query_done                ## -- Begin function mesh_query_done
	.p2align	4, 0x90
_mesh_query_done:                       ## @mesh_query_done
	.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	%rdi, %r15
	leaq	8(%rdi), %rbx
	movq	48(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rax), %r12
	movq	(%rbx), %rax
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.2:
	testq	%r12, %r12
	je	LBB0_10
## %bb.3:
	movl	(%r12), %edi
	callq	_FLAGS_GET_RCODE
	cmpq	(%r14), %rax
	je	LBB0_5
	jmp	LBB0_11
LBB0_4:
	movq	(%rbx), %rax
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_5:
	movq	16(%r15), %rax
	movq	8(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_11
## %bb.6:
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.7:
	movq	%rbx, %rdi
	callq	_errinf_to_str_servfail
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_log_err
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	72(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.12:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %rdi
	callq	_comm_point_drop_reply
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	8(%rbx), %r8d
	movl	12(%rbx), %esi
	movl	32(%r15), %ecx
	movl	36(%r15), %edx
	movq	%rbx, %r9
	callq	_respip_inform_print
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 24(%r15)
	jne	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	addq	$8, %rax
	testq	%rcx, %rcx
	movl	$0, %edx
	cmovneq	%rdx, %r14
	cmovneq	%rcx, %rax
	movq	(%rax), %r13
	movq	8(%r15), %rsi
	movq	%r14, (%rsp)
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	callq	_mesh_send_reply
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r13, %r14
	movq	%rbx, %r12
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rsi
	callq	_tcp_req_info_remove_mesh_state
	xorl	%r14d, %r14d
	movq	%rbx, %r12
	jmp	LBB0_14
LBB0_21:
	movl	$1, (%r15)
	movq	64(%r15), %rcx
	testq	%rcx, %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%rax, 64(%r15)
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_mesh_do_callback
	movq	64(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 72(%r15)
	movq	(%rcx), %rax
	jne	LBB0_23
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	testq	%rax, %rax
	jne	LBB0_23
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	16(%r15), %rdx
	movq	(%rdx), %rdx
	decl	4(%rdx)
	movq	%rax, 64(%r15)
	cmpq	$0, 56(%r15)
	jne	LBB0_24
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	16(%r15), %rax
	movq	(%rax), %rax
	incl	(%rax)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RCODE_SERVFAIL,8,3        ## @LDNS_RCODE_SERVFAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_query_done                ; -- Begin function mesh_query_done
	.p2align	2
_mesh_query_done:                       ; @mesh_query_done
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x21, x0, #8
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x20, [x8]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	cbz	x20, LBB0_7
; %bb.3:
	ldr	w0, [x20]
	bl	_FLAGS_GET_RCODE
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x20, #0
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w8, [x8]
	cbz	w8, LBB0_26
LBB0_7:
	ldr	x21, [x19, #72]
	cbz	x21, LBB0_17
LBB0_8:
	mov	x23, #0
	mov	x22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	bl	_comm_point_drop_reply
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	w3, w2, [x19, #32]
	ldp	w4, w1, [x21, #8]
	mov	x5, x21
	bl	_respip_inform_print
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x8], #8
	cmp	x9, #0
	csel	x6, x22, xzr, eq
	csel	x8, x8, x9, eq
	ldr	x22, [x8]
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, x23
	bl	_mesh_send_reply
	ldr	x8, [x21]
	ldr	x0, [x8]
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x19
	bl	_tcp_req_info_remove_mesh_state
	mov	x22, #0
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, x21
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_10
LBB0_17:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	str	x8, [x19, #64]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_mesh_do_callback
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x19, #64]
	cbz	x3, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x19, #72]
	ldr	x8, [x3]
	cbnz	x9, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	cbnz	x8, LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	ldr	w10, [x9, #4]
	sub	w10, w10, #1
	str	w10, [x9, #4]
	str	x8, [x19, #64]
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_19
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_19
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_26:
	mov	x0, x21
	bl	_errinf_to_str_servfail
	mov	x21, x0
	cbz	x0, LBB0_28
; %bb.27:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_log_err
LBB0_28:
	mov	x0, x21
	bl	_free
	ldr	x21, [x19, #72]
	cbnz	x21, LBB0_8
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RCODE_SERVFAIL,8,3        ; @LDNS_RCODE_SERVFAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
