	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function request_finished
_request_finished:                      ## @request_finished
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	leaq	16(%r14), %r13
	movq	%r14, %rdi
	callq	_EVDNS_LOCK
	movq	%rbx, %rdi
	callq	_ASSERT_VALID_REQUEST
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_evdns_request_remove
LBB0_2:
	movq	_EVDNS_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_log
	cmpq	%r12, %r13
	je	LBB0_4
## %bb.3:
	leaq	56(%rbx), %rdi
	callq	_evtimer_del
	decl	12(%r14)
	movq	40(%rbx), %rax
	decq	(%rax)
	jmp	LBB0_5
LBB0_4:
	decl	8(%r14)
LBB0_5:
	leaq	56(%rbx), %rdi
	callq	_event_debug_unassign
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.6:
	cmpq	$0, (%rdi)
	jne	LBB0_9
## %bb.7:
	movq	48(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	addq	$12, %rdi
	callq	_event_del
	movq	40(%rbx), %rdi
	addq	$8, %rdi
	callq	_evtimer_del
LBB0_9:
	cmpl	$0, 32(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	24(%rbx), %rdi
	callq	_mm_free
LBB0_11:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	sete	%dil
	callq	_EVUTIL_ASSERT
	movq	8(%rbx), %rdi
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.13:
	leaq	8(%rbx), %r15
	callq	_search_request_finished
	movq	(%r15), %rdi
	movq	$0, (%rdi)
	cmpl	$0, 16(%rdi)
	jne	LBB0_16
## %bb.14:
	callq	_mm_free
	jmp	LBB0_16
LBB0_15:
	movq	%rdi, %r15
LBB0_16:
	movq	$0, (%r15)
LBB0_17:
	movq	%rbx, %rdi
	callq	_mm_free
	movq	%r14, %rdi
	callq	_evdns_requests_pump_waiting_queue
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EVDNS_UNLOCK                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDNS_LOG_DEBUG,4,2            ## @EVDNS_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Removing timeout for request %p"

	.no_dead_strip	_request_finished
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function request_finished
_request_finished:                      ; @request_finished
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #48]
	add	x23, x19, #16
	mov	x0, x19
	bl	_EVDNS_LOCK
	mov	x0, x20
	bl	_ASSERT_VALID_REQUEST
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	bl	_evdns_request_remove
LBB0_2:
Lloh0:
	adrp	x8, _EVDNS_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVDNS_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_log
	cmp	x23, x22
	b.eq	LBB0_4
; %bb.3:
	add	x0, x20, #56
	bl	_evtimer_del
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
	ldr	x8, [x20, #40]
	ldr	x9, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
LBB0_5:
	add	x0, x20, #56
	bl	_event_debug_unassign
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x9, [x8]
	cbnz	x9, LBB0_9
; %bb.7:
	ldr	x9, [x20, #48]
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.8:
	add	x0, x8, #12
	bl	_event_del
	ldr	x8, [x20, #40]
	add	x0, x8, #8
	bl	_evtimer_del
LBB0_9:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	x0, [x20, #24]
	bl	_mm_free
LBB0_11:
	mov	x22, x20
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_17
; %bb.12:
	ldr	x8, [x8]
	cmp	x8, x20
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	ldr	x0, [x20, #8]
	cbz	w21, LBB0_15
; %bb.13:
	bl	_search_request_finished
	ldr	x0, [x22]
	str	xzr, [x0]
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_16
; %bb.14:
	bl	_mm_free
	b	LBB0_16
LBB0_15:
	mov	x22, x0
LBB0_16:
	str	xzr, [x22]
LBB0_17:
	mov	x0, x20
	bl	_mm_free
	mov	x0, x19
	bl	_evdns_requests_pump_waiting_queue
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_EVDNS_UNLOCK
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDNS_LOG_DEBUG,4,2            ; @EVDNS_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Removing timeout for request %p"

	.no_dead_strip	_request_finished
.subsections_via_symbols
