	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TLan_Close
_TLan_Close:                            ## @TLan_Close
	.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	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	$0, 8(%r14)
	movq	_TLAN_RECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TLan_ReadAndClearStats
	movq	_TLAN_HC_AD_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TLAN_HOST_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_outl
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_del_timer_sync
	movq	$0, (%r14)
LBB0_2:
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	%rbx, %rdi
	callq	_TLan_FreeLists
	movq	_TLAN_DEBUG_GNRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_TLAN_DBG
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLAN_RECORD,4,2                ## @TLAN_RECORD
	.comm	_TLAN_HC_AD_RST,4,2             ## @TLAN_HC_AD_RST
	.comm	_TLAN_HOST_CMD,8,3              ## @TLAN_HOST_CMD
	.comm	_TLAN_DEBUG_GNRL,4,2            ## @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device %s closed.\n"

	.no_dead_strip	_TLan_Close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TLan_Close
_TLan_Close:                            ; @TLan_Close
	.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, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_stop_queue
	str	xzr, [x20, #8]
Lloh0:
	adrp	x8, _TLAN_RECORD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLAN_RECORD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TLan_ReadAndClearStats
Lloh3:
	adrp	x8, _TLAN_HC_AD_RST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLAN_HC_AD_RST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _TLAN_HOST_CMD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TLAN_HOST_CMD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outl
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_del_timer_sync
	str	xzr, [x20]
LBB0_2:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x19
	bl	_TLan_FreeLists
Lloh9:
	adrp	x8, _TLAN_DEBUG_GNRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TLAN_DEBUG_GNRL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_TLAN_DBG
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TLAN_RECORD,4,2                ; @TLAN_RECORD
	.comm	_TLAN_HC_AD_RST,4,2             ; @TLAN_HC_AD_RST
	.comm	_TLAN_HOST_CMD,8,3              ; @TLAN_HOST_CMD
	.comm	_TLAN_DEBUG_GNRL,4,2            ; @TLAN_DEBUG_GNRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device %s closed.\n"

	.no_dead_strip	_TLan_Close
.subsections_via_symbols
