	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_respip_operate                 ## -- Begin function respip_operate
	.p2align	4, 0x90
_respip_operate:                        ## @respip_operate
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	56(%rdi), %rax
	movslq	%edx, %r12
	movq	(%rax,%r12,8), %r13
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r14), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_log_query_info
	movq	_module_event_new@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_module_event_pass@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_2
## %bb.10:
	movq	_module_event_moddone@GOTPCREL(%rip), %rax
	movq	_module_finished@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	%ebx, (%rax)
	jne	LBB0_30
## %bb.11:
	movq	(%r15), %rax
	movq	_LDNS_RR_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movq	_LDNS_RR_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_LDNS_RR_TYPE_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
LBB0_14:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.15:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.16:
	movq	_respip_none@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -80(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movq	%rcx, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	40(%r14), %ebx
	movl	44(%r14), %esi
	movq	(%rax), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-80(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	pushq	%rbx
	pushq	$0
	callq	_respip_rewrite_reply
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movq	-72(%rbp), %rax
	movq	_respip_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.21:
	movq	$0, 32(%r14)
	jmp	LBB0_22
LBB0_2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rcx
	jmp	LBB0_6
LBB0_4:
	movl	40(%r14), %edi
	movl	$8, %esi
	callq	_regional_alloc_zero
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	_RESPIP_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	56(%r14), %rdx
	movq	%rax, (%rdx,%r12,8)
LBB0_6:
	movq	_RESPIP_SUBQUERY_FINISHED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_9
## %bb.7:
	movq	_module_finished@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	movq	_module_wait_module@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	jmp	LBB0_31
LBB0_18:
	movl	40(%r14), %edi
	leaq	-80(%rbp), %rsi
	movl	$24, %edx
	callq	_regional_alloc_init
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_19
LBB0_22:
	movq	-48(%rbp), %rax
	movq	16(%r14), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.23:
	movq	-72(%rbp), %rdx
	movq	_respip_deny@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_25
## %bb.24:
	movq	_respip_inform_deny@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_25
LBB0_26:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	callq	_generate_cname_request
	testl	%eax, %eax
	je	LBB0_20
## %bb.28:
	movq	_module_wait_subquery@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rax
	movq	16(%r14), %rcx
	jmp	LBB0_29
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
LBB0_20:
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	$0, 16(%r14)
	jmp	LBB0_31
LBB0_25:
	movl	$1, 8(%r14)
LBB0_29:
	movq	%rax, (%rcx)
LBB0_30:
	movq	(%r14), %rax
	movl	%r13d, (%rax,%r12,4)
LBB0_31:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"respip operate: query"

	.comm	_module_event_new,4,2           ## @module_event_new
	.comm	_module_event_pass,4,2          ## @module_event_pass
	.comm	_RESPIP_INIT,8,3                ## @RESPIP_INIT
	.comm	_RESPIP_SUBQUERY_FINISHED,8,3   ## @RESPIP_SUBQUERY_FINISHED
	.comm	_module_finished,8,3            ## @module_finished
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.1:                               ## @.str.1
	.asciz	"respip: pass to next module"

	.comm	_module_wait_module,4,2         ## @module_wait_module
	.comm	_module_event_moddone,4,2       ## @module_event_moddone
	.comm	_LDNS_RR_TYPE_A,8,3             ## @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ## @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_ANY,8,3           ## @LDNS_RR_TYPE_ANY
	.comm	_respip_none,8,3                ## @respip_none
L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

	.comm	_respip_deny,8,3                ## @respip_deny
	.comm	_respip_inform_deny,8,3         ## @respip_inform_deny
	.comm	_module_wait_subquery,4,2       ## @module_wait_subquery
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_respip_operate                 ; -- Begin function respip_operate
	.p2align	2
_respip_operate:                        ; @respip_operate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #56]
	sxtw	x22, w2
	ldr	x23, [x8, w2, sxtw #3]
Lloh0:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #48
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_log_query_info
Lloh5:
	adrp	x8, _module_event_new@GOTPAGE
Lloh6:
	ldr	x8, [x8, _module_event_new@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _module_event_pass@GOTPAGE
Lloh9:
	ldr	x9, [x9, _module_event_pass@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_3
; %bb.1:
	cbz	x23, LBB0_10
; %bb.2:
	ldr	x8, [x23]
	b	LBB0_12
LBB0_3:
Lloh11:
	adrp	x8, _module_event_moddone@GOTPAGE
Lloh12:
	ldr	x8, [x8, _module_event_moddone@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _module_finished@GOTPAGE
Lloh15:
	ldr	x9, [x9, _module_finished@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x9]
	cmp	w8, w21
	b.ne	LBB0_26
; %bb.4:
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _LDNS_RR_TYPE_A@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LDNS_RR_TYPE_A@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _LDNS_RR_TYPE_AAAA@GOTPAGE
Lloh21:
	ldr	x10, [x10, _LDNS_RR_TYPE_AAAA@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
Lloh23:
	adrp	x11, _LDNS_RR_TYPE_ANY@GOTPAGE
Lloh24:
	ldr	x11, [x11, _LDNS_RR_TYPE_ANY@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_26
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_26
; %bb.6:
	ldr	x9, [x8]
	cbz	x9, LBB0_26
; %bb.7:
Lloh26:
	adrp	x21, _respip_none@GOTPAGE
Lloh27:
	ldr	x21, [x21, _respip_none@GOTPAGEOFF]
	ldr	x10, [x21]
	stp	xzr, xzr, [sp, #32]
	stp	x9, x10, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x2, [x8]
	ldp	w7, w1, [x19, #40]
	add	x3, sp, #16
	add	x4, sp, #24
	add	x5, sp, #8
	mov	x0, x20
	mov	w6, #0
	bl	_respip_rewrite_reply
	cbz	w0, LBB0_23
; %bb.8:
	ldr	x8, [sp, #32]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
	str	xzr, [x19, #32]
	b	LBB0_16
LBB0_10:
	ldr	w0, [x19, #40]
	mov	w1, #8
	bl	_regional_alloc_zero
	cbz	x0, LBB0_23
; %bb.11:
Lloh28:
	adrp	x8, _RESPIP_INIT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RESPIP_INIT@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	x9, [x19, #56]
	str	x0, [x9, x22, lsl #3]
LBB0_12:
Lloh31:
	adrp	x9, _RESPIP_SUBQUERY_FINISHED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _RESPIP_SUBQUERY_FINISHED@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh34:
	adrp	x8, _module_finished@GOTPAGE
Lloh35:
	ldr	x8, [x8, _module_finished@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, x22, lsl #2]
	b	LBB0_27
LBB0_14:
Lloh37:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
Lloh42:
	adrp	x8, _module_wait_module@GOTPAGE
Lloh43:
	ldr	x8, [x8, _module_wait_module@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, x22, lsl #2]
	b	LBB0_27
LBB0_15:
	ldr	w0, [x19, #40]
	add	x1, sp, #24
	mov	w2, #24
	bl	_regional_alloc_init
	str	x0, [x19, #32]
	cbz	x0, LBB0_22
LBB0_16:
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #16]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_19
; %bb.17:
	ldr	x10, [sp, #32]
Lloh45:
	adrp	x11, _respip_deny@GOTPAGE
Lloh46:
	ldr	x11, [x11, _respip_deny@GOTPAGEOFF]
Lloh47:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_24
; %bb.18:
Lloh48:
	adrp	x11, _respip_inform_deny@GOTPAGE
Lloh49:
	ldr	x11, [x11, _respip_inform_deny@GOTPAGEOFF]
Lloh50:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_24
LBB0_19:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_25
; %bb.20:
	mov	x0, x19
	bl	_generate_cname_request
	cbz	w0, LBB0_23
; %bb.21:
Lloh51:
	adrp	x8, _module_wait_subquery@GOTPAGE
Lloh52:
	ldr	x8, [x8, _module_wait_subquery@GOTPAGEOFF]
Lloh53:
	ldr	w23, [x8]
	ldr	x8, [sp, #16]
	ldr	x9, [x19, #16]
	b	LBB0_25
LBB0_22:
Lloh54:
	adrp	x0, l_.str.2@PAGE
Lloh55:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
LBB0_23:
Lloh56:
	adrp	x8, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	b	LBB0_27
LBB0_24:
	mov	w10, #1
	str	w10, [x19, #8]
LBB0_25:
	str	x8, [x9]
LBB0_26:
	ldr	x8, [x19]
	str	w23, [x8, x22, lsl #2]
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"respip operate: query"

	.comm	_module_event_new,4,2           ; @module_event_new
	.comm	_module_event_pass,4,2          ; @module_event_pass
	.comm	_RESPIP_INIT,8,3                ; @RESPIP_INIT
	.comm	_RESPIP_SUBQUERY_FINISHED,8,3   ; @RESPIP_SUBQUERY_FINISHED
	.comm	_module_finished,8,3            ; @module_finished
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.1:                               ; @.str.1
	.asciz	"respip: pass to next module"

	.comm	_module_wait_module,4,2         ; @module_wait_module
	.comm	_module_event_moddone,4,2       ; @module_event_moddone
	.comm	_LDNS_RR_TYPE_A,8,3             ; @LDNS_RR_TYPE_A
	.comm	_LDNS_RR_TYPE_AAAA,8,3          ; @LDNS_RR_TYPE_AAAA
	.comm	_LDNS_RR_TYPE_ANY,8,3           ; @LDNS_RR_TYPE_ANY
	.comm	_respip_none,8,3                ; @respip_none
l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

	.comm	_respip_deny,8,3                ; @respip_deny
	.comm	_respip_inform_deny,8,3         ; @respip_inform_deny
	.comm	_module_wait_subquery,4,2       ; @module_wait_subquery
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
.subsections_via_symbols
