	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_response
_process_response:                      ## @process_response
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movq	$0, 56(%r14)
	movq	_QUERY_RESP_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	_module_event_noreply@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r13d, %eax
	je	LBB0_30
## %bb.1:
	movq	_module_event_error@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	je	LBB0_30
## %bb.2:
	movq	_module_event_reply@GOTPCREL(%rip), %rax
	movq	_module_event_capsfail@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	cmpl	%r13d, (%rcx)
	jne	LBB0_36
LBB0_4:
	cmpq	$0, 8(%r15)
	je	LBB0_36
## %bb.5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_37
## %bb.6:
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sldns_buffer_set_position
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_parse_packet
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_38
## %bb.7:
	movq	(%r15), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_parse_extract_edns
	cmpq	(%rbx), %rax
	jne	LBB0_40
## %bb.8:
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	movl	20(%r15), %esi
	callq	_edns_opt_copy_region
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	je	LBB0_37
## %bb.10:
	movq	(%r15), %rdi
	movq	%r15, %rsi
	callq	_inplace_cb_edns_back_parsed_call
	testl	%eax, %eax
	je	LBB0_45
LBB0_11:
	movq	_BIT_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	leaq	80(%r14), %rdx
	movq	72(%r14), %rax
	movl	(%rax), %ecx
	movq	(%r15), %r9
	movl	(%r9), %r8d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rbx
	movq	%r12, %rsi
	callq	_scrub_message
	testl	%eax, %eax
	je	LBB0_42
## %bb.12:
	movl	20(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dns_alloc_msg
	movq	%rax, 56(%r14)
	testq	%rax, %rax
	movq	_VERB_ALGO@GOTPCREL(%rip), %rbx
	je	LBB0_40
## %bb.13:
	movq	_VERB_DETAIL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	leaq	16(%r15), %rdx
	leaq	L_.str.8(%rip), %rsi
	callq	_log_query_info
	movq	(%r12), %rdi
	movq	72(%r14), %rax
	movl	(%rax), %edx
	movq	8(%r15), %rcx
	movl	(%rcx), %r8d
	addq	$4, %rcx
	leaq	L_.str.9(%rip), %rsi
	callq	_log_name_addr
	movq	_verbosity@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jl	LBB0_15
## %bb.14:
	movq	56(%r14), %rsi
	movq	(%rsi), %rdx
	addq	$8, %rsi
	leaq	L_.str.10(%rip), %rdi
	callq	_log_dns_msg
LBB0_15:
	movq	_module_event_capsfail@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_17
## %bb.16:
	cmpl	$0, 4(%r14)
	je	LBB0_48
LBB0_17:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.18:
	movq	24(%r14), %rax
	movq	_DONOT_MINIMISE_STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.19:
	movq	_SKIP_MINIMISE_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
LBB0_20:
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	callq	_caps_strip_reply
	cmpl	$0, 4(%r14)
	je	LBB0_46
## %bb.21:
	movq	24(%r14), %rax
	cmpq	%rax, 16(%r14)
	jne	LBB0_47
## %bb.22:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_49
## %bb.23:
	callq	_caps_failed_rcode
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	callq	_caps_failed_rcode
	testq	%rax, %rax
	je	LBB0_51
LBB0_25:
	movq	48(%r14), %rdi
	callq	_caps_failed_rcode
	testq	%rax, %rax
	je	LBB0_50
LBB0_26:
	movq	48(%r14), %rdi
	callq	_caps_failed_rcode
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	callq	_caps_failed_rcode
	testq	%rax, %rax
	jne	LBB0_52
LBB0_28:
	movq	48(%r14), %rsi
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	movq	(%r15), %rax
	movl	(%rax), %edx
	callq	_reply_equal
	testl	%eax, %eax
	jne	LBB0_52
## %bb.29:
	movq	(%r12), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_verbose
	addq	$32, %r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_outbound_list_remove
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	callq	_errinf
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_error_response
	jmp	LBB0_41
LBB0_30:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r13d, %eax
	jne	LBB0_40
## %bb.31:
	cmpl	$3, (%r14)
	jl	LBB0_40
## %bb.32:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_40
## %bb.33:
	cmpl	$0, 4(%r14)
	jne	LBB0_40
## %bb.34:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_is_caps_whitelisted
	testl	%eax, %eax
	jne	LBB0_40
## %bb.35:
	movq	$1, 4(%r14)
	movq	$0, 48(%r14)
	movq	$0, 64(%r14)
	movq	_DONOT_MINIMISE_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_QUERYTARGETS_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	decl	36(%r14)
	movq	72(%r14), %rdi
	movl	$3, %esi
	callq	_iter_dec_attempts
	movq	_VERB_DETAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_39
LBB0_36:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
	addq	$32, %r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_outbound_list_remove
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_errinf
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_response                 ## TAILCALL
LBB0_37:
	leaq	L_.str.4(%rip), %rdi
	callq	_log_err
	jmp	LBB0_40
LBB0_38:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.5(%rip), %rsi
LBB0_39:
	callq	_verbose
LBB0_40:
	leaq	32(%r14), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_outbound_list_remove
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_iter_handle
LBB0_41:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	movq	_module_event_capsfail@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_40
## %bb.43:
	cmpl	$0, 4(%r14)
	jne	LBB0_40
## %bb.44:
	movq	$1, 4(%r14)
	movq	$0, 48(%r14)
	movq	$0, 64(%r14)
	movq	_DONOT_MINIMISE_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_QUERYTARGETS_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	decl	36(%r14)
	movq	_VERB_DETAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_39
LBB0_45:
	leaq	L_.str.6(%rip), %rdi
	callq	_log_err
	jmp	LBB0_40
LBB0_46:
	movq	24(%r14), %rax
LBB0_47:
	movq	$1, 4(%r14)
	movq	56(%r14), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 48(%r14)
	movq	%rcx, 64(%r14)
	movq	%rax, 16(%r14)
	movq	_QUERYTARGETS_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	decl	36(%r14)
	movq	(%r12), %rdi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_39
LBB0_48:
	movl	$0, 4(%r14)
	jmp	LBB0_40
LBB0_49:
	movq	56(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, 48(%r14)
	movq	%rax, 64(%r14)
	movl	$-1, 8(%r14)
	jmp	LBB0_52
LBB0_50:
	movq	56(%r14), %rax
	movq	(%rax), %rdi
	callq	_caps_failed_rcode
	testq	%rax, %rax
	jne	LBB0_52
	jmp	LBB0_26
LBB0_51:
	movq	56(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, 48(%r14)
	movq	%rax, 64(%r14)
LBB0_52:
	incl	8(%r14)
	movq	_QUERYTARGETS_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	decl	36(%r14)
	movq	(%r12), %rdi
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,8,3                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"process_response: new external response event"

	.comm	_QUERY_RESP_STATE,8,3           ## @QUERY_RESP_STATE
	.comm	_module_event_noreply,4,2       ## @module_event_noreply
	.comm	_module_event_error,4,2         ## @module_event_error
	.comm	_DONOT_MINIMISE_STATE,8,3       ## @DONOT_MINIMISE_STATE
	.comm	_QUERYTARGETS_STATE,8,3         ## @QUERYTARGETS_STATE
	.comm	_VERB_DETAIL,8,3                ## @VERB_DETAIL
L_.str.1:                               ## @.str.1
	.asciz	"Capsforid: timeouts, starting fallback"

	.comm	_module_event_reply,4,2         ## @module_event_reply
	.comm	_module_event_capsfail,4,2      ## @module_event_capsfail
L_.str.2:                               ## @.str.2
	.asciz	"Bad event combined with response"

L_.str.3:                               ## @.str.3
	.asciz	"module iterator received wrong internal event with a response message"

	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
L_.str.4:                               ## @.str.4
	.asciz	"out of memory on incoming message"

	.comm	_LDNS_RCODE_NOERROR,8,3         ## @LDNS_RCODE_NOERROR
L_.str.5:                               ## @.str.5
	.asciz	"parse error on reply packet"

L_.str.6:                               ## @.str.6
	.asciz	"unable to call edns_back_parsed callback"

	.comm	_BIT_CD,4,2                     ## @BIT_CD
L_.str.7:                               ## @.str.7
	.asciz	"Capsforid: scrub failed, starting fallback with no response"

L_.str.8:                               ## @.str.8
	.asciz	"response for"

L_.str.9:                               ## @.str.9
	.asciz	"reply from"

	.comm	_verbosity,8,3                  ## @verbosity
L_.str.10:                              ## @.str.10
	.asciz	"incoming scrubbed packet:"

	.comm	_SKIP_MINIMISE_STATE,8,3        ## @SKIP_MINIMISE_STATE
L_.str.11:                              ## @.str.11
	.asciz	"Capsforid: starting fallback"

L_.str.12:                              ## @.str.12
	.asciz	"Capsforid fallback: getting different replies, failed"

L_.str.13:                              ## @.str.13
	.asciz	"0x20 failed, then got different replies in fallback"

L_.str.14:                              ## @.str.14
	.asciz	"Capsforid: reply is equal. go to next fallback"

	.no_dead_strip	_process_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function process_response
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_process_response:                      ; @process_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x27, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x27, [x27, _VERB_ALGO@GOTPAGEOFF]
	ldr	x0, [x27]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	str	xzr, [x22, #56]
Lloh4:
	adrp	x8, _QUERY_RESP_STATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QUERY_RESP_STATE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x22, #40]
Lloh7:
	adrp	x8, _module_event_noreply@GOTPAGE
Lloh8:
	ldr	x8, [x8, _module_event_noreply@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _module_event_error@GOTPAGE
Lloh11:
	ldr	x9, [x9, _module_event_error@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w24
	ccmp	w9, w24, #4, ne
	b.ne	LBB0_7
; %bb.1:
	cmp	w8, w24
	b.ne	LBB0_38
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_38
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_38
; %bb.4:
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_38
; %bb.5:
	mov	x0, x23
	mov	x1, x22
	bl	_is_caps_whitelisted
	cbnz	w0, LBB0_38
; %bb.6:
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x22, #4]
Lloh15:
	adrp	x8, _DONOT_MINIMISE_STATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DONOT_MINIMISE_STATE@GOTPAGEOFF]
	str	xzr, [x22, #64]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x22, #16]
Lloh18:
	adrp	x8, _QUERYTARGETS_STATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QUERYTARGETS_STATE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x8, xzr, [x22, #40]
	ldr	w8, [x22, #36]
	sub	w8, w8, #1
	str	w8, [x22, #36]
	ldr	x0, [x22, #72]
	mov	w1, #3
	bl	_iter_dec_attempts
Lloh21:
	adrp	x8, _VERB_DETAIL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VERB_DETAIL@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_37
LBB0_7:
Lloh26:
	adrp	x8, _module_event_reply@GOTPAGE
Lloh27:
	ldr	x8, [x8, _module_event_reply@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _module_event_capsfail@GOTPAGE
Lloh30:
	ldr	x9, [x9, _module_event_capsfail@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w24
	ccmp	w9, w24, #4, ne
	b.ne	LBB0_34
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_34
; %bb.9:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	w1, #16
	bl	_regional_alloc
	cbz	x0, LBB0_35
; %bb.10:
	mov	x25, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	x26, [x8]
	mov	x0, x26
	mov	w1, #0
	bl	_sldns_buffer_set_position
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x26
	mov	x1, x25
	bl	_parse_packet
Lloh32:
	adrp	x28, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh33:
	ldr	x28, [x28, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_36
; %bb.11:
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x25
	bl	_parse_extract_edns
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_38
; %bb.12:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w1, [x20, #20]
	bl	_edns_opt_copy_region
	str	w0, [x20, #24]
	cbz	w0, LBB0_35
; %bb.14:
	ldr	x0, [x20]
	mov	x1, x20
	bl	_inplace_cb_edns_back_parsed_call
	cbz	w0, LBB0_43
LBB0_15:
Lloh34:
	adrp	x8, _BIT_CD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BIT_CD@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x25]
	bic	w8, w9, w8
	str	w8, [x25]
	add	x2, x22, #80
	ldr	x8, [x22, #72]
	ldr	w3, [x8]
	ldr	x5, [x20]
	ldr	w4, [x5]
	mov	x0, x26
	mov	x1, x25
	mov	x6, x23
	bl	_scrub_message
	cbz	w0, LBB0_40
; %bb.16:
	ldr	w2, [x20, #20]
	mov	x0, x26
	mov	x1, x25
	bl	_dns_alloc_msg
	str	x0, [x22, #56]
	cbz	x0, LBB0_38
; %bb.17:
Lloh37:
	adrp	x25, _VERB_DETAIL@GOTPAGE
Lloh38:
	ldr	x25, [x25, _VERB_DETAIL@GOTPAGEOFF]
	ldr	x0, [x25]
	add	x2, x20, #16
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_log_query_info
	ldr	x0, [x25]
	ldr	x8, [x22, #72]
	ldr	w2, [x8]
	ldr	x3, [x20, #8]
	ldr	w4, [x3], #4
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_log_name_addr
Lloh43:
	adrp	x8, _verbosity@GOTPAGE
Lloh44:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.lt	LBB0_19
; %bb.18:
	ldr	x1, [x22, #56]
	ldr	x2, [x1], #8
Lloh46:
	adrp	x0, l_.str.10@PAGE
Lloh47:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_log_dns_msg
LBB0_19:
Lloh48:
	adrp	x8, _module_event_capsfail@GOTPAGE
Lloh49:
	ldr	x8, [x8, _module_event_capsfail@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w8, w24
	b.eq	LBB0_21
; %bb.20:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_46
LBB0_21:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_24
; %bb.22:
	ldr	x8, [x22, #24]
Lloh51:
	adrp	x9, _DONOT_MINIMISE_STATE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _DONOT_MINIMISE_STATE@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:
Lloh54:
	adrp	x8, _SKIP_MINIMISE_STATE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SKIP_MINIMISE_STATE@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	str	x8, [x22, #24]
LBB0_24:
	ldr	x8, [x22, #56]
	ldr	x0, [x8]
	bl	_caps_strip_reply
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_44
; %bb.25:
	ldp	x9, x8, [x22, #16]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.26:
	ldr	x0, [x22, #48]
	cbz	x0, LBB0_47
; %bb.27:
	bl	_caps_failed_rcode
	cbz	x0, LBB0_29
; %bb.28:
	ldr	x8, [x22, #56]
	ldr	x0, [x8]
	bl	_caps_failed_rcode
	cbz	x0, LBB0_49
LBB0_29:
	ldr	x0, [x22, #48]
	bl	_caps_failed_rcode
	cbz	x0, LBB0_48
LBB0_30:
	ldr	x0, [x22, #48]
	bl	_caps_failed_rcode
	cbz	x0, LBB0_32
; %bb.31:
	ldr	x8, [x22, #56]
	ldr	x0, [x8]
	bl	_caps_failed_rcode
	cbnz	x0, LBB0_50
LBB0_32:
	ldp	x1, x8, [x22, #48]
	ldr	x0, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8]
	bl	_reply_equal
	cbnz	w0, LBB0_50
; %bb.33:
	ldr	x0, [x25]
Lloh57:
	adrp	x1, l_.str.12@PAGE
Lloh58:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_verbose
	add	x0, x22, #32
	mov	x1, x21
	bl	_outbound_list_remove
Lloh59:
	adrp	x1, l_.str.13@PAGE
Lloh60:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x20
	bl	_errinf
Lloh61:
	adrp	x8, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_error_response
	b	LBB0_39
LBB0_34:
Lloh64:
	adrp	x0, l_.str.2@PAGE
Lloh65:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	add	x0, x22, #32
	mov	x1, x21
	bl	_outbound_list_remove
Lloh66:
	adrp	x1, l_.str.3@PAGE
Lloh67:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_errinf
Lloh68:
	adrp	x8, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh69:
	ldr	x8, [x8, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_error_response
LBB0_35:
Lloh71:
	adrp	x0, l_.str.4@PAGE
Lloh72:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_log_err
	b	LBB0_38
LBB0_36:
	ldr	x0, [x27]
Lloh73:
	adrp	x1, l_.str.5@PAGE
Lloh74:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_37:
	bl	_verbose
LBB0_38:
	add	x0, x22, #32
	mov	x1, x21
	bl	_outbound_list_remove
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	bl	_iter_handle
LBB0_39:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_40:
Lloh75:
	adrp	x8, _module_event_capsfail@GOTPAGE
Lloh76:
	ldr	x8, [x8, _module_event_capsfail@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_38
; %bb.41:
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_38
; %bb.42:
Lloh78:
	adrp	x8, lCPI0_0@PAGE
Lloh79:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x22, #4]
	str	xzr, [x22, #64]
Lloh80:
	adrp	x8, _DONOT_MINIMISE_STATE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _DONOT_MINIMISE_STATE@GOTPAGEOFF]
Lloh82:
	ldr	x8, [x8]
	str	x8, [x22, #16]
Lloh83:
	adrp	x8, _QUERYTARGETS_STATE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _QUERYTARGETS_STATE@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
	stp	x8, xzr, [x22, #40]
	ldr	w8, [x22, #36]
	sub	w8, w8, #1
	str	w8, [x22, #36]
Lloh86:
	adrp	x8, _VERB_DETAIL@GOTPAGE
Lloh87:
	ldr	x8, [x8, _VERB_DETAIL@GOTPAGEOFF]
Lloh88:
	ldr	x0, [x8]
Lloh89:
	adrp	x1, l_.str.7@PAGE
Lloh90:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_37
LBB0_43:
Lloh91:
	adrp	x0, l_.str.6@PAGE
Lloh92:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_log_err
	b	LBB0_38
LBB0_44:
	ldr	x8, [x22, #24]
LBB0_45:
Lloh93:
	adrp	x9, lCPI0_0@PAGE
Lloh94:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x22, #4]
	ldr	x9, [x22, #56]
	ldr	x10, [x9]
	str	x9, [x22, #64]
	str	x8, [x22, #16]
Lloh95:
	adrp	x8, _QUERYTARGETS_STATE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _QUERYTARGETS_STATE@GOTPAGEOFF]
Lloh97:
	ldr	x8, [x8]
	stp	x8, x10, [x22, #40]
	ldr	w8, [x22, #36]
	sub	w8, w8, #1
	str	w8, [x22, #36]
	ldr	x0, [x25]
Lloh98:
	adrp	x1, l_.str.11@PAGE
Lloh99:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_37
LBB0_46:
	str	wzr, [x22, #4]
	b	LBB0_38
LBB0_47:
	ldr	x8, [x22, #56]
	ldr	x9, [x8]
	str	x9, [x22, #48]
	str	x8, [x22, #64]
	mov	w8, #-1
	str	w8, [x22, #8]
	b	LBB0_50
LBB0_48:
	ldr	x8, [x22, #56]
	ldr	x0, [x8]
	bl	_caps_failed_rcode
	cbnz	x0, LBB0_50
	b	LBB0_30
LBB0_49:
	ldr	x8, [x22, #56]
	ldr	x9, [x8]
	str	x9, [x22, #48]
	str	x8, [x22, #64]
LBB0_50:
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	str	w8, [x22, #8]
Lloh100:
	adrp	x8, _QUERYTARGETS_STATE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _QUERYTARGETS_STATE@GOTPAGEOFF]
Lloh102:
	ldr	x8, [x8]
	str	x8, [x22, #40]
	ldr	w8, [x22, #36]
	sub	w8, w8, #1
	str	w8, [x22, #36]
	ldr	x0, [x25]
Lloh103:
	adrp	x1, l_.str.14@PAGE
Lloh104:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdrp	Lloh13, Lloh15
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdrp	Lloh78, Lloh80
	.loh AdrpLdr	Lloh78, Lloh79
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdr	Lloh93, Lloh94
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,8,3                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"process_response: new external response event"

	.comm	_QUERY_RESP_STATE,8,3           ; @QUERY_RESP_STATE
	.comm	_module_event_noreply,4,2       ; @module_event_noreply
	.comm	_module_event_error,4,2         ; @module_event_error
	.comm	_DONOT_MINIMISE_STATE,8,3       ; @DONOT_MINIMISE_STATE
	.comm	_QUERYTARGETS_STATE,8,3         ; @QUERYTARGETS_STATE
	.comm	_VERB_DETAIL,8,3                ; @VERB_DETAIL
l_.str.1:                               ; @.str.1
	.asciz	"Capsforid: timeouts, starting fallback"

	.comm	_module_event_reply,4,2         ; @module_event_reply
	.comm	_module_event_capsfail,4,2      ; @module_event_capsfail
l_.str.2:                               ; @.str.2
	.asciz	"Bad event combined with response"

l_.str.3:                               ; @.str.3
	.asciz	"module iterator received wrong internal event with a response message"

	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
l_.str.4:                               ; @.str.4
	.asciz	"out of memory on incoming message"

	.comm	_LDNS_RCODE_NOERROR,8,3         ; @LDNS_RCODE_NOERROR
l_.str.5:                               ; @.str.5
	.asciz	"parse error on reply packet"

l_.str.6:                               ; @.str.6
	.asciz	"unable to call edns_back_parsed callback"

	.comm	_BIT_CD,4,2                     ; @BIT_CD
l_.str.7:                               ; @.str.7
	.asciz	"Capsforid: scrub failed, starting fallback with no response"

l_.str.8:                               ; @.str.8
	.asciz	"response for"

l_.str.9:                               ; @.str.9
	.asciz	"reply from"

	.comm	_verbosity,8,3                  ; @verbosity
l_.str.10:                              ; @.str.10
	.asciz	"incoming scrubbed packet:"

	.comm	_SKIP_MINIMISE_STATE,8,3        ; @SKIP_MINIMISE_STATE
l_.str.11:                              ; @.str.11
	.asciz	"Capsforid: starting fallback"

l_.str.12:                              ; @.str.12
	.asciz	"Capsforid fallback: getting different replies, failed"

l_.str.13:                              ; @.str.13
	.asciz	"0x20 failed, then got different replies in fallback"

l_.str.14:                              ; @.str.14
	.asciz	"Capsforid: reply is equal. go to next fallback"

	.no_dead_strip	_process_response
.subsections_via_symbols
