	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_request
_generate_request:                      ## @generate_request
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdi, %r15
	movq	16(%rbp), %r13
	movq	24(%rdi), %rax
	movslq	%esi, %r12
	movq	(%rax,%r12,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)
	movq	%rcx, -104(%rbp)
	movq	%r8, -80(%rbp)
	movq	%r9, -88(%rbp)
	movq	$0, -96(%rbp)
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-104(%rbp), %rdx
	callq	_log_query_info
	movq	_LDNS_RR_TYPE_DLV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%rbx, (%rax)
	setne	%r14b
	movq	16(%r15), %rax
	movq	16(%rax), %rdi
	callq	_fptr_whitelist_modenv_detect_cycle
	movl	%eax, %edi
	callq	_fptr_ok
	movq	16(%r15), %rax
	movq	_BIT_RD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rbx
	orq	%r13, %rdx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	leaq	-104(%rbp), %rsi
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	jmp	LBB0_10
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r12
	cmpl	$0, 32(%rbp)
	je	LBB0_6
## %bb.3:
	movq	$0, -64(%rbp)
	movq	16(%r15), %rax
	movq	8(%rax), %rdi
	callq	_fptr_whitelist_modenv_add_sub
	movl	%eax, %edi
	callq	_fptr_ok
	movq	16(%r15), %rax
	movq	_BIT_RD@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	leaq	-64(%rbp), %rcx
	movq	%rcx, (%rsp)
	leaq	-104(%rbp), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	movq	%r12, %r9
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movl	8(%rdi), %esi
	addq	$12, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_sock_list_merge
LBB0_9:
	movq	_module_wait_subquery@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_6:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	callq	_fptr_whitelist_modenv_attach_sub
	movl	%eax, %edi
	callq	_fptr_ok
	movq	16(%r15), %rax
	movq	_BIT_RD@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	leaq	-104(%rbp), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	movq	%r12, %r9
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
LBB0_10:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"generate request"

	.comm	_LDNS_RR_TYPE_DLV,8,3           ## @LDNS_RR_TYPE_DLV
	.comm	_BIT_RD,8,3                     ## @BIT_RD
L_.str.1:                               ## @.str.1
	.asciz	"Could not generate request: cycle detected"

L_.str.2:                               ## @.str.2
	.asciz	"Could not generate request: out of memory"

	.comm	_module_wait_subquery,4,2       ## @module_wait_subquery
	.no_dead_strip	_generate_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_request
_generate_request:                      ; @generate_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x7
	mov	x22, x6
	mov	x23, x4
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x24, [x8, w1, sxtw #3]
	stp	x4, x2, [sp, #32]
	stp	xzr, x5, [sp, #16]
	str	x3, [sp, #8]
Lloh0:
	adrp	x26, _VERB_ALGO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VERB_ALGO@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_log_query_info
Lloh4:
	adrp	x8, _LDNS_RR_TYPE_DLV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_RR_TYPE_DLV@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x23
	cset	w23, ne
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #16]
	bl	_fptr_whitelist_modenv_detect_cycle
	bl	_fptr_ok
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
Lloh7:
	adrp	x25, _BIT_RD@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BIT_RD@GOTPAGEOFF]
	ldr	x9, [x25]
	orr	x2, x9, x22
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #0
	mov	x4, x23
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x26]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_verbose
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	w8, [x29, #16]
	cbz	w8, LBB0_9
; %bb.4:
	str	xzr, [sp]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	bl	_fptr_whitelist_modenv_add_sub
	bl	_fptr_ok
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x25]
	orr	x2, x9, x22
	add	x1, sp, #8
	mov	x6, sp
	mov	x0, x19
	mov	w3, #0
	mov	x4, x23
	mov	x5, x20
	blr	x8
	cbz	w0, LBB0_10
LBB0_5:
	sxtw	x21, w21
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	add	x0, x8, #12
	ldr	w1, [x8, #8]
	ldr	w2, [x24]
	bl	_sock_list_merge
LBB0_7:
Lloh11:
	adrp	x8, _module_wait_subquery@GOTPAGE
Lloh12:
	ldr	x8, [x8, _module_wait_subquery@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, x21, lsl #2]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_fptr_whitelist_modenv_attach_sub
	bl	_fptr_ok
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x9, [x25]
	orr	x2, x9, x22
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #0
	mov	x4, x23
	mov	x5, x20
	blr	x8
	cbnz	w0, LBB0_5
LBB0_10:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	b	LBB0_2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"generate request"

	.comm	_LDNS_RR_TYPE_DLV,8,3           ; @LDNS_RR_TYPE_DLV
	.comm	_BIT_RD,8,3                     ; @BIT_RD
l_.str.1:                               ; @.str.1
	.asciz	"Could not generate request: cycle detected"

l_.str.2:                               ; @.str.2
	.asciz	"Could not generate request: out of memory"

	.comm	_module_wait_subquery,4,2       ; @module_wait_subquery
	.no_dead_strip	_generate_request
.subsections_via_symbols
