	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tms380tr_close                 ## -- Begin function tms380tr_close
	.p2align	4, 0x90
_tms380tr_close:                        ## @tms380tr_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_netif_stop_queue
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_del_timer
	movl	$1, (%rbx)
	movq	_OC_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tms380tr_exec_cmd
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movq	_tms380tr_timer_end_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	%r15, %rdi
	callq	_add_timer
	movq	%r14, %rdi
	callq	_tms380tr_enable_interrupts
	movl	$1, 4(%rbx)
	leaq	40(%rbx), %rdi
	callq	_interruptible_sleep_on
	movq	$0, 32(%rbx)
	movq	%r15, %rdi
	callq	_del_timer
	movq	%r14, %rdi
	callq	_tms380tr_disable_interrupts
	movq	_SIFCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65280, %edi                    ## imm = 0xFF00
	callq	_SIFWRITEW
	movq	%rbx, %rdi
	callq	_tms380tr_cancel_tx_queue
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OC_CLOSE,4,2                   ## @OC_CLOSE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_tms380tr_timer_end_wait,4,2    ## @tms380tr_timer_end_wait
	.comm	_SIFCMD,4,2                     ## @SIFCMD
	.comm	_POSREG,4,2                     ## @POSREG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tms380tr_close                 ; -- Begin function tms380tr_close
	.p2align	2
_tms380tr_close:                        ; @tms380tr_close
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_stop_queue
	add	x21, x19, #8
	mov	x0, x21
	bl	_del_timer
	mov	w22, #1
	str	w22, [x19]
Lloh0:
	adrp	x8, _OC_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OC_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tms380tr_exec_cmd
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	str	x8, [x19, #24]
Lloh9:
	adrp	x8, _tms380tr_timer_end_wait@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tms380tr_timer_end_wait@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	x20, [x19, #8]
	mov	x0, x21
	bl	_add_timer
	mov	x0, x20
	bl	_tms380tr_enable_interrupts
	str	w22, [x19, #4]
	add	x0, x19, #40
	bl	_interruptible_sleep_on
	str	xzr, [x19, #32]
	mov	x0, x21
	bl	_del_timer
	mov	x0, x20
	bl	_tms380tr_disable_interrupts
Lloh12:
	adrp	x8, _SIFCMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SIFCMD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #65280
	bl	_SIFWRITEW
	mov	x0, x19
	bl	_tms380tr_cancel_tx_queue
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OC_CLOSE,4,2                   ; @OC_CLOSE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_tms380tr_timer_end_wait,4,2    ; @tms380tr_timer_end_wait
	.comm	_SIFCMD,4,2                     ; @SIFCMD
	.comm	_POSREG,4,2                     ; @POSREG
.subsections_via_symbols
