	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function search_request_new
_search_request_new:                    ## @search_request_new
	.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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ASSERT_LOCKED
	movq	_TYPE_A@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	sete	%al
	movq	_TYPE_AAAA@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_EVUTIL_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 24(%r15)
	sete	%dil
	callq	_EVUTIL_ASSERT
	movq	_DNS_QUERY_NO_SEARCH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
LBB0_1:
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_request_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_request_submit
	jmp	LBB0_9
LBB0_3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	cmpq	$0, 16(%rax)
	je	LBB0_1
## %bb.5:
	movq	%r13, %rdi
	callq	_string_num_dots
	movq	(%rbx), %rdi
	cmpq	(%rdi), %rax
	jge	LBB0_10
## %bb.6:
	movq	%r13, %rdx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_search_make_new
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %rcx
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_request_new
	movq	%rax, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mm_free
	testq	%r12, %r12
	jne	LBB0_12
	jmp	LBB0_9
LBB0_10:
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_request_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %r12
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r13d
LBB0_12:
	movl	%r13d, (%r15)
	xorl	%edi, %edi
	cmpq	$0, 16(%r15)
	sete	%dil
	callq	_EVUTIL_ASSERT
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mm_strdup
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movl	%r14d, 4(%r15)
	incl	8(%rax)
	movq	%r12, %rdi
	callq	_request_submit
	movq	%r12, %r13
	jmp	LBB0_9
LBB0_14:
	movq	%r12, %rdi
	callq	_mm_free
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_A,4,2                     ## @TYPE_A
	.comm	_TYPE_AAAA,4,2                  ## @TYPE_AAAA
	.comm	_DNS_QUERY_NO_SEARCH,4,2        ## @DNS_QUERY_NO_SEARCH
	.no_dead_strip	_search_request_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search_request_new
_search_request_new:                    ; @search_request_new
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x6
	mov	x24, x5
	mov	x19, x4
	mov	x22, x3
	mov	x25, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ASSERT_LOCKED
Lloh0:
	adrp	x8, _TYPE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w25
Lloh3:
	adrp	x8, _TYPE_AAAA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPE_AAAA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w25, #4, ne
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_EVUTIL_ASSERT
Lloh6:
	adrp	x8, _DNS_QUERY_NO_SEARCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DNS_QUERY_NO_SEARCH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
LBB0_1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x22
	mov	x4, x19
	mov	x5, x24
	mov	x6, x23
	bl	_request_new
	mov	x23, x0
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x23
	bl	_request_submit
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_1
; %bb.5:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_1
; %bb.6:
	mov	x0, x22
	bl	_string_num_dots
	mov	x8, x0
	ldr	x0, [x21]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.7:
	mov	w1, #0
	mov	x2, x22
	bl	_search_make_new
	cbz	x0, LBB0_15
; %bb.8:
	mov	x26, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x26
	mov	x4, x19
	mov	x5, x24
	mov	x6, x23
	bl	_request_new
	mov	x23, x0
	mov	x0, x26
	bl	_mm_free
	cbz	x23, LBB0_3
; %bb.9:
	mov	w8, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	mov	x3, x22
	mov	x4, x19
	mov	x5, x24
	mov	x6, x23
	bl	_request_new
	mov	x23, x0
	cbz	x0, LBB0_3
; %bb.11:
	mov	w8, #-1
LBB0_12:
	str	w8, [x20]
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	mov	x0, x22
	bl	_mm_strdup
	str	x0, [x20, #16]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x21]
	str	x8, [x20, #8]
	str	w19, [x20, #4]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_2
LBB0_14:
	mov	x0, x23
	bl	_mm_free
LBB0_15:
	mov	x23, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_A,4,2                     ; @TYPE_A
	.comm	_TYPE_AAAA,4,2                  ; @TYPE_AAAA
	.comm	_DNS_QUERY_NO_SEARCH,4,2        ; @DNS_QUERY_NO_SEARCH
	.no_dead_strip	_search_request_new
.subsections_via_symbols
