	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evdns_server_request_respond   ## -- Begin function evdns_server_request_respond
	.p2align	4, 0x90
_evdns_server_request_respond:          ## @evdns_server_request_respond
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_TO_SERVER_REQUEST
	movq	%rax, %rbx
	movq	48(%rax), %r14
	movq	%r14, %rdi
	callq	_EVDNS_LOCK
	movl	40(%rbx), %esi
	testl	%esi, %esi
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_evdns_server_request_format_response
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	40(%rbx), %esi
LBB0_4:
	movl	32(%r14), %edi
	movl	16(%rbx), %r9d
	movl	32(%rbx), %edx
	movq	%rbx, %r8
	addq	$24, %r8
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	callq	_sendto
	testl	%eax, %eax
	js	LBB0_5
## %bb.12:
	movq	%rbx, %rdi
	callq	_server_request_free
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	cmpq	$0, 8(%r14)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_server_port_flush
	jmp	LBB0_15
LBB0_5:
	movl	%eax, %r12d
	movl	32(%r14), %edi
	callq	_evutil_socket_geterror
	movl	%eax, %edi
	callq	_EVUTIL_ERR_RW_RETRIABLE
	movl	%r12d, %r15d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	%rax, (%rbx)
	movq	%rbx, 8(%rax)
	movq	8(%rbx), %rax
	movq	%rbx, (%rax)
	movl	$1, %r15d
	jmp	LBB0_15
LBB0_2:
	movl	%eax, %r15d
LBB0_15:
	movq	%r14, %rdi
	callq	_EVDNS_UNLOCK
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, (%rbx)
	movq	%rbx, 8(%rbx)
	movq	%rbx, 8(%r14)
	movl	$1, (%r14)
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_event_del
	movl	32(%r14), %edx
	movl	36(%r14), %esi
	xorl	%ecx, %ecx
	cmpq	$0, 24(%r14)
	jne	LBB0_10
## %bb.9:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_10:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_EV_PERSIST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_server_port_ready_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r14, %r9
	callq	_event_assign
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_event_add
	movl	$1, %r15d
	testq	%rax, %rax
	jns	LBB0_15
## %bb.11:
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_server_port_ready_callback,4,2 ## @server_port_ready_callback
	.comm	_EVDNS_LOG_WARN,4,2             ## @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error from libevent when adding event for DNS server"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evdns_server_request_respond   ; -- Begin function evdns_server_request_respond
	.p2align	2
_evdns_server_request_respond:          ; @evdns_server_request_respond
	.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
	bl	_TO_SERVER_REQUEST
	mov	x21, x0
	ldr	x19, [x0, #48]
	mov	x0, x19
	bl	_EVDNS_LOCK
	ldr	w1, [x21, #40]
	cbnz	w1, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_evdns_server_request_format_response
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	w1, [x21, #40]
LBB0_3:
	ldr	w0, [x19, #32]
	ldr	w2, [x21, #32]
	add	x4, x21, #24
	ldr	w5, [x21, #16]
	mov	w3, #0
	bl	_sendto
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_server_request_free
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_server_port_flush
LBB0_7:
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	mov	x20, x0
	ldr	w0, [x19, #32]
	bl	_evutil_socket_geterror
	bl	_EVUTIL_ERR_RW_RETRIABLE
	cbnz	x0, LBB0_12
; %bb.9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x9, [x8, #8]
	stp	x8, x9, [x21]
	str	x21, [x8, #8]
	ldr	x8, [x21, #8]
	str	x21, [x8]
	mov	w20, #1
	b	LBB0_12
LBB0_11:
	mov	x20, x0
LBB0_12:
	mov	x0, x19
	bl	_EVDNS_UNLOCK
	mov	x0, x20
	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
LBB0_13:
	stp	x21, x21, [x21]
	str	x21, [x19, #8]
	mov	w20, #1
	str	w20, [x19]
	add	x21, x19, #16
	mov	x0, x21
	bl	_event_del
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _EV_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_READ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
Lloh3:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
	csel	w9, w9, wzr, eq
Lloh5:
	ldr	w8, [x8]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
	ldp	w2, w1, [x19, #32]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh9:
	adrp	x8, _server_port_ready_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _server_port_ready_callback@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x5, x19
	bl	_event_assign
	mov	x0, x21
	mov	x1, #0
	bl	_event_add
	tbz	x0, #63, LBB0_12
; %bb.14:
Lloh12:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log
	mov	w20, #1
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_server_port_ready_callback,4,2 ; @server_port_ready_callback
	.comm	_EVDNS_LOG_WARN,4,2             ; @EVDNS_LOG_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error from libevent when adding event for DNS server"

.subsections_via_symbols
