	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toecore_unload
_toecore_unload:                        ## @toecore_unload
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_toedev_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_toedev_list@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_tcp_offload_listen_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_listen_start_eh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVENTHANDLER_DEREGISTER
	movq	_tcp_offload_listen_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_listen_stop_eh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVENTHANDLER_DEREGISTER
	movq	_lle_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lle_event_eh@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVENTHANDLER_DEREGISTER
	movq	_toedev_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	callq	_mtx_destroy
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_toedev_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_toedev_lock,4,2                ## @toedev_lock
	.comm	_toedev_list,4,2                ## @toedev_list
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_tcp_offload_listen_start,4,2   ## @tcp_offload_listen_start
	.comm	_listen_start_eh,4,2            ## @listen_start_eh
	.comm	_tcp_offload_listen_stop,4,2    ## @tcp_offload_listen_stop
	.comm	_listen_stop_eh,4,2             ## @listen_stop_eh
	.comm	_lle_event,4,2                  ## @lle_event
	.comm	_lle_event_eh,4,2               ## @lle_event_eh
	.no_dead_strip	_toecore_unload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toecore_unload
_toecore_unload:                        ; @toecore_unload
	.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
Lloh0:
	adrp	x0, _toedev_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _toedev_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x0, _toedev_list@GOTPAGE
Lloh3:
	ldr	x0, [x0, _toedev_list@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _tcp_offload_listen_start@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tcp_offload_listen_start@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _listen_start_eh@GOTPAGE
Lloh8:
	ldr	x8, [x8, _listen_start_eh@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_EVENTHANDLER_DEREGISTER
Lloh10:
	adrp	x8, _tcp_offload_listen_stop@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tcp_offload_listen_stop@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _listen_stop_eh@GOTPAGE
Lloh14:
	ldr	x8, [x8, _listen_stop_eh@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_EVENTHANDLER_DEREGISTER
Lloh16:
	adrp	x8, _lle_event@GOTPAGE
Lloh17:
	ldr	x8, [x8, _lle_event@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _lle_event_eh@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lle_event_eh@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_EVENTHANDLER_DEREGISTER
Lloh22:
	adrp	x19, _toedev_lock@GOTPAGE
Lloh23:
	ldr	x19, [x19, _toedev_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x19
	bl	_mtx_destroy
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x0, _toedev_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _toedev_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_toedev_lock,4,2                ; @toedev_lock
	.comm	_toedev_list,4,2                ; @toedev_list
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_tcp_offload_listen_start,4,2   ; @tcp_offload_listen_start
	.comm	_listen_start_eh,4,2            ; @listen_start_eh
	.comm	_tcp_offload_listen_stop,4,2    ; @tcp_offload_listen_stop
	.comm	_listen_stop_eh,4,2             ; @listen_stop_eh
	.comm	_lle_event,4,2                  ; @lle_event
	.comm	_lle_event_eh,4,2               ; @lle_event_eh
	.no_dead_strip	_toecore_unload
.subsections_via_symbols
