	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_ns_check
_generate_ns_check:                     ## @generate_ns_check
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	movslq	%edx, %r12
	movq	(%rax,%r12,8), %rbx
	movq	16(%rsi), %rdi
	callq	_log_assert
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	je	LBB0_12
## %bb.1:
	movq	8(%r14), %rdi
	movq	16(%r13), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	24(%r13), %ecx
	xorl	%r8d, %r8d
	callq	_can_have_last_resort
	testl	%eax, %eax
	je	LBB0_12
## %bb.2:
	movq	32(%r14), %rax
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.3:
	movq	16(%r13), %rax
	movl	4(%rax), %edi
	movl	40(%r14), %esi
	callq	_query_dname_compare
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	32(%r14), %rax
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.7:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r13), %rax
	movl	4(%rax), %edx
	movq	(%rbx), %rcx
	movl	24(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_log_nametypeclass
	movq	16(%r13), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	(%rbx), %rdx
	movl	24(%r13), %ecx
	movq	_INIT_REQUEST_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FINISHED_STATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	subq	$8, %rsp
	leaq	-48(%rbp), %r10
	movq	%r14, %r8
	movl	%r15d, %r9d
	pushq	$1
	pushq	%r10
	pushq	%rbx
	pushq	%rax
	pushq	%r13
	callq	_generate_sub_request
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	24(%rax), %rcx
	movq	(%rcx,%r12,8), %rbx
	movl	$1, 8(%rbx)
	movq	16(%r13), %rdi
	movl	16(%rax), %esi
	callq	_delegpt_copy
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	callq	_fptr_whitelist_modenv_kill_sub
	movl	%eax, %edi
	callq	_fptr_ok
	movq	8(%r14), %rax
	movq	-48(%rbp), %rdi
	callq	*(%rax)
	jmp	LBB0_12
LBB0_4:
	movl	(%r14), %eax
	movq	_BIT_RD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_BIT_CD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_generate_a_aaaa_check          ## TAILCALL
LBB0_8:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_BIT_RD,4,2                     ## @BIT_RD
	.comm	_BIT_CD,4,2                     ## @BIT_CD
	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"schedule ns fetch"

	.comm	_INIT_REQUEST_STATE,4,2         ## @INIT_REQUEST_STATE
	.comm	_FINISHED_STATE,4,2             ## @FINISHED_STATE
L_.str.1:                               ## @.str.1
	.asciz	"could not generate ns check"

L_.str.2:                               ## @.str.2
	.asciz	"out of memory generating ns check, copydp"

	.no_dead_strip	_generate_ns_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_ns_check
_generate_ns_check:                     ; @generate_ns_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	x22, [x8, w2, sxtw #3]
	ldr	x0, [x1, #16]
	bl	_log_assert
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	x8, [x20, #16]
	ldp	w2, w1, [x8]
	ldr	w3, [x20, #24]
	mov	x4, #0
	bl	_can_have_last_resort
	cbz	w0, LBB0_13
; %bb.2:
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x22, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #40]
	bl	_query_dname_compare
	cbz	x0, LBB0_9
LBB0_4:
	ldr	x8, [x19, #32]
Lloh2:
	adrp	x9, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.5:
Lloh5:
	adrp	x23, _VERB_ALGO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x20, #16]
	ldr	w2, [x8, #4]
	ldr	x3, [x22]
	ldr	w4, [x20, #24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_nametypeclass
	ldr	x8, [x20, #16]
	ldp	w1, w0, [x8]
	ldr	x2, [x22]
	ldr	w3, [x20, #24]
Lloh9:
	adrp	x8, _INIT_REQUEST_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INIT_REQUEST_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
Lloh12:
	adrp	x8, _FINISHED_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FINISHED_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [sp, #16]
	add	x9, sp, #24
	str	x9, [sp, #8]
	str	w8, [sp]
	mov	x4, x19
	mov	x5, x21
	mov	x6, x20
	bl	_generate_sub_request
	cbz	w0, LBB0_12
; %bb.6:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_13
; %bb.7:
	sxtw	x9, w21
	ldr	x10, [x8, #24]
	ldr	x21, [x10, x9, lsl #3]
	mov	w9, #1
	str	w9, [x21, #8]
	ldr	x0, [x20, #16]
	ldr	w1, [x8, #16]
	bl	_delegpt_copy
	str	x0, [x21, #16]
	cbnz	x0, LBB0_13
; %bb.8:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_fptr_whitelist_modenv_kill_sub
	bl	_fptr_ok
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x0, [sp, #24]
	blr	x8
	b	LBB0_13
LBB0_9:
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _BIT_RD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BIT_RD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.10:
Lloh20:
	adrp	x9, _BIT_CD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BIT_CD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_generate_a_aaaa_check
LBB0_12:
	ldr	w0, [x23]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_BIT_RD,4,2                     ; @BIT_RD
	.comm	_BIT_CD,4,2                     ; @BIT_CD
	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"schedule ns fetch"

	.comm	_INIT_REQUEST_STATE,4,2         ; @INIT_REQUEST_STATE
	.comm	_FINISHED_STATE,4,2             ; @FINISHED_STATE
l_.str.1:                               ; @.str.1
	.asciz	"could not generate ns check"

l_.str.2:                               ; @.str.2
	.asciz	"out of memory generating ns check, copydp"

	.no_dead_strip	_generate_ns_check
.subsections_via_symbols
