	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nameserver_ready_callback
_nameserver_ready_callback:             ## @nameserver_ready_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	(%rdx), %edi
	callq	_EVDNS_LOCK
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_3
## %bb.1:
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	callq	_evdns_transmit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nameserver_write_waiting
LBB0_3:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_nameserver_read
LBB0_5:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_EVDNS_UNLOCK                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.comm	_EV_READ,2,1                    ## @EV_READ
	.no_dead_strip	_nameserver_ready_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nameserver_ready_callback
_nameserver_ready_callback:             ; @nameserver_ready_callback
	.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	x19, x2
	mov	x20, x1
	and	w21, w1, #0xffff
	ldr	w0, [x2]
	bl	_EVDNS_LOCK
Lloh0:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w20
	tst	w8, #0xffff
	b.eq	LBB0_3
; %bb.1:
	str	xzr, [x19, #8]
	ldr	w0, [x19]
	bl	_evdns_transmit
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_nameserver_write_waiting
LBB0_3:
Lloh2:
	adrp	x8, _EV_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_nameserver_read
LBB0_5:
	ldr	w0, [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
	b	_EVDNS_UNLOCK
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.comm	_EV_READ,2,1                    ; @EV_READ
	.no_dead_strip	_nameserver_ready_callback
.subsections_via_symbols
