	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_async_destruct
_be_async_destruct:                     ## @be_async_destruct
	.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
	movq	%rdi, %rbx
	callq	_upcast
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BEV_UPCAST
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_upcast
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_upcast
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
LBB0_2:
	callq	_EVUTIL_ASSERT
	movq	%r15, %rdi
	callq	_bev_async_del_read
	movq	%r15, %rdi
	callq	_bev_async_del_write
	movl	(%rbx), %edi
	callq	_evbuffer_overlapped_get_fd_
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.3:
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_evutil_closesocket
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evbuffer_overlapped_set_fd_    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
	.no_dead_strip	_be_async_destruct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_async_destruct
_be_async_destruct:                     ; @be_async_destruct
	.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, x0
	bl	_upcast
	mov	x21, x0
	mov	x0, x19
	bl	_BEV_UPCAST
	mov	x20, x0
	mov	x0, x19
	bl	_upcast
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_upcast
	ldr	w8, [x0]
	cmp	w8, #0
	cset	w0, eq
LBB0_3:
	bl	_EVUTIL_ASSERT
	mov	x0, x21
	bl	_bev_async_del_read
	mov	x0, x21
	bl	_bev_async_del_write
	ldr	w0, [x19]
	bl	_evbuffer_overlapped_get_fd_
Lloh0:
	adrp	x21, _INVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_evutil_closesocket
	ldr	w0, [x19]
	ldr	x1, [x21]
	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	_evbuffer_overlapped_set_fd_
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.no_dead_strip	_be_async_destruct
.subsections_via_symbols
