	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function evdns_base_new
LCPI0_0:
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_evdns_base_new
	.p2align	4, 0x90
_evdns_base_new:                        ## @evdns_base_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_evutil_secure_rng_init
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movq	_evdns_getaddrinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_evutil_set_evdns_getaddrinfo_fn_
	movl	$144, %edi
	callq	_mm_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$144, %edx
	callq	_memset
	movq	$0, 136(%rbx)
	movl	128(%rbx), %edi
	movq	_EVTHREAD_LOCKTYPE_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVTHREAD_ALLOC_LOCK
	movq	%rbx, %rdi
	callq	_EVDNS_LOCK
	movq	$0, 120(%rbx)
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_evdns_base_set_max_requests_inflight
	movq	$0, 112(%rbx)
	movq	%r15, 104(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movq	$0, 96(%rbx)
	movl	$5, 64(%rbx)
	movq	$0, 72(%rbx)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,3,3,1]
	movups	%xmm1, (%rbx)
	movl	$3, 40(%rbx)
	movups	%xmm0, 48(%rbx)
	movl	$10, 24(%rbx)
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_TAILQ_INIT
	testl	$-32770, %r14d                  ## imm = 0xFFFF7FFE
	je	LBB0_4
## %bb.3:
	movq	_EVDNS_BASE_INITIALIZE_NAMESERVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log
LBB0_4:
	movq	_EVDNS_BASE_INITIALIZE_NAMESERVERS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_DNS_OPTIONS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_evdns_base_resolv_conf_parse
	cmpl	$-1, %eax
	je	LBB0_11
LBB0_6:
	movq	_EVDNS_BASE_DISABLE_WHEN_INACTIVE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	$1, 16(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	callq	_EVDNS_UNLOCK
	jmp	LBB0_13
LBB0_9:
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evdns_base_free_and_unlock
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDNS_LOG_WARN,4,2             ## @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to seed random number generator; DNS can't run."

	.comm	_evdns_getaddrinfo,4,2          ## @evdns_getaddrinfo
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ## @EVTHREAD_LOCKTYPE_RECURSIVE
	.comm	_EVDNS_BASE_INITIALIZE_NAMESERVERS,4,2 ## @EVDNS_BASE_INITIALIZE_NAMESERVERS
L_.str.1:                               ## @.str.1
	.asciz	"Unrecognized flag passed to evdns_base_new(). Assuming you meant EVDNS_BASE_INITIALIZE_NAMESERVERS."

	.comm	_DNS_OPTIONS_ALL,4,2            ## @DNS_OPTIONS_ALL
L_.str.2:                               ## @.str.2
	.asciz	"/etc/resolv.conf"

	.comm	_EVDNS_BASE_DISABLE_WHEN_INACTIVE,4,2 ## @EVDNS_BASE_DISABLE_WHEN_INACTIVE
	.comm	_EVDNS_BASE_ALL_FLAGS,4,2       ## @EVDNS_BASE_ALL_FLAGS
.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 evdns_base_new
lCPI0_0:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_evdns_base_new
	.p2align	2
_evdns_base_new:                        ; @evdns_base_new
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_evutil_secure_rng_init
	tbnz	x0, #63, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _evdns_getaddrinfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _evdns_getaddrinfo@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_evutil_set_evdns_getaddrinfo_fn_
	mov	w0, #144
	bl	_mm_malloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #144
	bl	_memset
	str	xzr, [x19, #136]
	ldr	w0, [x19, #128]
Lloh3:
	adrp	x8, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EVTHREAD_ALLOC_LOCK
	mov	x0, x19
	bl	_EVDNS_LOCK
	str	xzr, [x19, #120]
	mov	x0, x19
	mov	w1, #64
	bl	_evdns_base_set_max_requests_inflight
	stp	x21, xzr, [x19, #104]
	stp	xzr, xzr, [x19, #88]
	mov	w8, #5
	str	w8, [x19, #64]
	stp	xzr, xzr, [x19, #72]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	x8, #3
	movk	x8, #1, lsl #32
	str	x8, [x19, #8]
	mov	w8, #3
	str	w8, [x19, #40]
	stp	xzr, xzr, [x19, #48]
	mov	w8, #10
	str	w8, [x19, #24]
	add	x0, x19, #20
	str	xzr, [x19, #32]
	bl	_TAILQ_INIT
	mov	w8, #-32770
Lloh8:
	adrp	x21, _EVDNS_BASE_INITIALIZE_NAMESERVERS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _EVDNS_BASE_INITIALIZE_NAMESERVERS@GOTPAGEOFF]
	tst	w20, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w20, [x21]
Lloh10:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log
LBB0_4:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _DNS_OPTIONS_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DNS_OPTIONS_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_evdns_base_resolv_conf_parse
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_6:
Lloh20:
	adrp	x8, _EVDNS_BASE_DISABLE_WHEN_INACTIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EVDNS_BASE_DISABLE_WHEN_INACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_8:
	mov	x0, x19
	bl	_EVDNS_UNLOCK
	b	LBB0_12
LBB0_9:
Lloh23:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_evdns_base_free_and_unlock
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDNS_LOG_WARN,4,2             ; @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to seed random number generator; DNS can't run."

	.comm	_evdns_getaddrinfo,4,2          ; @evdns_getaddrinfo
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ; @EVTHREAD_LOCKTYPE_RECURSIVE
	.comm	_EVDNS_BASE_INITIALIZE_NAMESERVERS,4,2 ; @EVDNS_BASE_INITIALIZE_NAMESERVERS
l_.str.1:                               ; @.str.1
	.asciz	"Unrecognized flag passed to evdns_base_new(). Assuming you meant EVDNS_BASE_INITIALIZE_NAMESERVERS."

	.comm	_DNS_OPTIONS_ALL,4,2            ; @DNS_OPTIONS_ALL
l_.str.2:                               ; @.str.2
	.asciz	"/etc/resolv.conf"

	.comm	_EVDNS_BASE_DISABLE_WHEN_INACTIVE,4,2 ; @EVDNS_BASE_DISABLE_WHEN_INACTIVE
	.comm	_EVDNS_BASE_ALL_FLAGS,4,2       ; @EVDNS_BASE_ALL_FLAGS
.subsections_via_symbols
