	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function basic_test_cleanup
_basic_test_cleanup:                    ## @basic_test_cleanup
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_TT_NO_LOGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_event_set_log_callback
	movl	(%rbx), %eax
LBB0_2:
	movq	_TT_NEED_SOCKETPAIR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_5
## %bb.4:
	callq	_evutil_closesocket
	movq	(%r14), %rax
LBB0_5:
	movl	4(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_7
## %bb.6:
	callq	_evutil_closesocket
LBB0_7:
	movl	(%rbx), %eax
	movq	_TT_NEED_DNS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	callq	_evdns_shutdown
	movl	(%rbx), %eax
LBB0_9:
	movq	_TT_NEED_BASE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_event_base_assert_ok_
	movq	8(%r14), %rdi
	callq	_event_base_free
	movl	(%rbx), %eax
LBB0_12:
	movq	_TT_FORK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_libevent_global_shutdown
LBB0_14:
	movq	%r14, %rdi
	callq	_free
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TT_NO_LOGS,4,2                 ## @TT_NO_LOGS
	.comm	_TT_NEED_SOCKETPAIR,4,2         ## @TT_NEED_SOCKETPAIR
	.comm	_TT_NEED_DNS,4,2                ## @TT_NEED_DNS
	.comm	_TT_NEED_BASE,4,2               ## @TT_NEED_BASE
	.comm	_TT_FORK,4,2                    ## @TT_FORK
	.no_dead_strip	_basic_test_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function basic_test_cleanup
_basic_test_cleanup:                    ; @basic_test_cleanup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TT_NO_LOGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TT_NO_LOGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, #0
	bl	_event_set_log_callback
	ldr	w8, [x20]
LBB0_2:
Lloh3:
	adrp	x9, _TT_NEED_SOCKETPAIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TT_NEED_SOCKETPAIR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	bl	_evutil_closesocket
	ldr	x8, [x19]
LBB0_5:
	ldr	w0, [x8, #4]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	bl	_evutil_closesocket
LBB0_7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _TT_NEED_DNS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TT_NEED_DNS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
	bl	_evdns_shutdown
	ldr	w8, [x20]
LBB0_9:
Lloh9:
	adrp	x9, _TT_NEED_BASE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TT_NEED_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_event_base_assert_ok_
	ldr	x0, [x19, #8]
	bl	_event_base_free
	ldr	w8, [x20]
LBB0_12:
Lloh12:
	adrp	x9, _TT_FORK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TT_FORK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	bl	_libevent_global_shutdown
LBB0_14:
	mov	x0, x19
	bl	_free
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TT_NO_LOGS,4,2                 ; @TT_NO_LOGS
	.comm	_TT_NEED_SOCKETPAIR,4,2         ; @TT_NEED_SOCKETPAIR
	.comm	_TT_NEED_DNS,4,2                ; @TT_NEED_DNS
	.comm	_TT_NEED_BASE,4,2               ; @TT_NEED_BASE
	.comm	_TT_FORK,4,2                    ; @TT_FORK
	.no_dead_strip	_basic_test_cleanup
.subsections_via_symbols
