	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_operate                    ## -- Begin function val_operate
	.p2align	4, 0x90
_val_operate:                           ## @val_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, %r15d
	movq	%rdi, %r14
	movq	48(%rdi), %rax
	movq	(%rax), %rax
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r13
	movq	(%rax,%r13,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	40(%rdi), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	_VERB_QUERY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	(%rax,%r13,8), %rdi
	callq	_strextstate
	movl	%eax, %ebx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_strmodulevent
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edx
	movq	%r14, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%ebx, %ecx
	movq	_VERB_QUERY@GOTPCREL(%rip), %rbx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_verbose
	movl	(%rbx), %edi
	leaq	16(%r13), %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_log_query_info
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	cmpq	8(%r14), %rax
	je	LBB0_3
## %bb.2:
	leaq	8(%r14), %rdx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_log_query_info
LBB0_3:
	movq	_module_event_new@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_module_event_pass@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jne	LBB0_7
## %bb.5:
	testq	%r14, %r14
	jne	LBB0_7
LBB0_6:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	_module_wait_module@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_29:
	movq	%rax, (%rcx,%rdx,8)
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_module_event_moddone@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_25
## %bb.8:
	movq	_VERB_ALGO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movl	32(%r13), %esi
	movq	8(%r13), %rdx
	movq	%r13, %rdi
	callq	_needs_validation
	movq	8(%r13), %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	movq	%r14, %rbx
	callq	_already_validated
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_15
LBB0_13:
	movq	_module_finished@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r14,8)
	jmp	LBB0_30
LBB0_25:
	cmpl	%edi, %eax
	jne	LBB0_27
## %bb.26:
	movq	_module_error@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_val_handle                     ## TAILCALL
LBB0_27:
	callq	_strmodulevent
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_log_err
	movq	_module_error@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_9:
	testq	%rdi, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	_sec_status_indeterminate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	movq	_module_finished@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	jmp	LBB0_29
LBB0_15:
	movq	24(%r13), %rax
	movq	_LDNS_RR_CLASS_ANY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.16:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	_sec_status_bogus@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_13
LBB0_18:
	movq	_module_error@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r14,8)
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.21:
	cmpl	$0, (%rbx)
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_val_new_getmsg
	testl	%eax, %eax
	jne	LBB0_23
LBB0_20:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_log_err
	movq	(%r15), %rax
	jmp	LBB0_14
LBB0_19:
	movq	%r13, %rdi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_val_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_20
LBB0_23:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"validator[module %d] operate: extstate:%s event:%s"

L_.str.1:                               ## @.str.1
	.asciz	"validator operate: query"

L_.str.2:                               ## @.str.2
	.asciz	"validator operate: chased to"

	.comm	_module_event_new,4,2           ## @module_event_new
	.comm	_module_event_pass,4,2          ## @module_event_pass
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.3:                               ## @.str.3
	.asciz	"validator: pass to next module"

	.comm	_module_wait_module,8,3         ## @module_wait_module
	.comm	_module_event_moddone,4,2       ## @module_event_moddone
L_.str.4:                               ## @.str.4
	.asciz	"validator: nextmodule returned"

	.comm	_sec_status_indeterminate,4,2   ## @sec_status_indeterminate
	.comm	_module_finished,8,3            ## @module_finished
	.comm	_LDNS_RR_CLASS_ANY,8,3          ## @LDNS_RR_CLASS_ANY
L_.str.5:                               ## @.str.5
	.asciz	"cannot validate classANY: bogus"

	.comm	_sec_status_bogus,4,2           ## @sec_status_bogus
	.comm	_module_error,8,3               ## @module_error
L_.str.6:                               ## @.str.6
	.asciz	"validator: malloc failure"

L_.str.7:                               ## @.str.7
	.asciz	"validator: bad event %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_operate                    ; -- Begin function val_operate
	.p2align	2
_val_operate:                           ; @val_operate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldp	x9, x8, [x0, #40]
	ldr	x8, [x8]
	sbfiz	x10, x20, #3, #32
	ldr	x21, [x8, x10]
	ldr	x22, [x9, x10]
Lloh0:
	adrp	x26, _VERB_QUERY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VERB_QUERY@GOTPAGEOFF]
	ldr	w24, [x26]
	ldr	x8, [x0]
	ldr	x0, [x8, x10]
	bl	_strextstate
	mov	x25, x0
	mov	x0, x23
	bl	_strmodulevent
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #8]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_verbose
	ldr	w0, [x26]
	add	x24, x19, #16
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	bl	_log_query_info
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x8, [x24]
	mov	x2, x22
	ldr	x9, [x2, #8]!
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x26]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_query_info
LBB0_3:
	sxtw	x24, w20
Lloh8:
	adrp	x8, _module_event_new@GOTPAGE
Lloh9:
	ldr	x8, [x8, _module_event_new@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w23
	b.eq	LBB0_11
; %bb.4:
Lloh11:
	adrp	x8, _module_event_pass@GOTPAGE
Lloh12:
	ldr	x8, [x8, _module_event_pass@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w23
	ccmp	x22, #0, #0, eq
	b.eq	LBB0_11
; %bb.5:
Lloh14:
	adrp	x9, _module_event_moddone@GOTPAGE
Lloh15:
	ldr	x9, [x9, _module_event_moddone@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, w23
	b.ne	LBB0_14
; %bb.6:
Lloh17:
	adrp	x23, _VERB_ALGO@GOTPAGE
Lloh18:
	ldr	x23, [x23, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_verbose
	ldr	w1, [x19, #32]
	ldr	x2, [x19, #8]
	mov	x0, x19
	bl	_needs_validation
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	w8, LBB0_18
; %bb.7:
	bl	_already_validated
	cbnz	x0, LBB0_20
; %bb.8:
	ldr	x8, [x19, #24]
Lloh21:
	adrp	x9, _LDNS_RR_CLASS_ANY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LDNS_RR_CLASS_ANY@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.9:
	ldr	w0, [x23]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_verbose
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.10:
Lloh26:
	adrp	x9, _sec_status_bogus@GOTPAGE
Lloh27:
	ldr	x9, [x9, _sec_status_bogus@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	x8, [x8]
	str	w9, [x8]
	b	LBB0_20
LBB0_11:
Lloh29:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
Lloh34:
	adrp	x8, _module_wait_module@GOTPAGE
Lloh35:
	ldr	x8, [x8, _module_wait_module@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
LBB0_13:
	ldr	x9, [x19]
	str	x8, [x9, x24, lsl #3]
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	cmp	w8, w23
	b.ne	LBB0_17
; %bb.15:
Lloh36:
	adrp	x8, _module_error@GOTPAGE
Lloh37:
	ldr	x8, [x8, _module_error@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9, x24, lsl #3]
LBB0_16:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_val_handle
LBB0_17:
	mov	x0, x23
	bl	_strmodulevent
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_log_err
Lloh41:
	adrp	x8, _module_error@GOTPAGE
Lloh42:
	ldr	x8, [x8, _module_error@GOTPAGEOFF]
	b	LBB0_12
LBB0_18:
	cbz	x0, LBB0_20
; %bb.19:
Lloh43:
	adrp	x8, _sec_status_indeterminate@GOTPAGE
Lloh44:
	ldr	x8, [x8, _sec_status_indeterminate@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	w8, [x9]
LBB0_20:
Lloh46:
	adrp	x8, _module_finished@GOTPAGE
Lloh47:
	ldr	x8, [x8, _module_finished@GOTPAGEOFF]
	b	LBB0_12
LBB0_21:
Lloh48:
	adrp	x23, _module_error@GOTPAGE
Lloh49:
	ldr	x23, [x23, _module_error@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x19]
	str	x8, [x9, x24, lsl #3]
	cbz	x22, LBB0_24
; %bb.22:
	ldr	w8, [x22]
	cbnz	w8, LBB0_16
; %bb.23:
	mov	x0, x19
	mov	x1, x22
	bl	_val_new_getmsg
	cbnz	w0, LBB0_16
	b	LBB0_25
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	bl	_val_new
	mov	x22, x0
	cbnz	x0, LBB0_16
LBB0_25:
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_log_err
	ldr	x8, [x23]
	b	LBB0_13
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"validator[module %d] operate: extstate:%s event:%s"

l_.str.1:                               ; @.str.1
	.asciz	"validator operate: query"

l_.str.2:                               ; @.str.2
	.asciz	"validator operate: chased to"

	.comm	_module_event_new,4,2           ; @module_event_new
	.comm	_module_event_pass,4,2          ; @module_event_pass
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.3:                               ; @.str.3
	.asciz	"validator: pass to next module"

	.comm	_module_wait_module,8,3         ; @module_wait_module
	.comm	_module_event_moddone,4,2       ; @module_event_moddone
l_.str.4:                               ; @.str.4
	.asciz	"validator: nextmodule returned"

	.comm	_sec_status_indeterminate,4,2   ; @sec_status_indeterminate
	.comm	_module_finished,8,3            ; @module_finished
	.comm	_LDNS_RR_CLASS_ANY,8,3          ; @LDNS_RR_CLASS_ANY
l_.str.5:                               ; @.str.5
	.asciz	"cannot validate classANY: bogus"

	.comm	_sec_status_bogus,4,2           ; @sec_status_bogus
	.comm	_module_error,8,3               ; @module_error
l_.str.6:                               ; @.str.6
	.asciz	"validator: malloc failure"

l_.str.7:                               ; @.str.7
	.asciz	"validator: bad event %s"

.subsections_via_symbols
