	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_tx_close
_lan743x_tx_close:                      ## @lan743x_tx_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movq	_DMAC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rdi), %edi
	callq	_DMAC_CMD_STOP_T_
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_lan743x_csr_write
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_lan743x_dmac_tx_wait_till_stopped
	movq	_DMAC_INT_EN_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_DMAC_INT_BIT_TX_IOC_
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_lan743x_csr_write
	movq	_INT_EN_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_INT_BIT_DMA_TX_
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_lan743x_csr_write
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_netif_napi_del
	movq	_FCT_TX_CTL@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	8(%r12), %edi
	callq	_FCT_TX_CTL_DIS_
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_lan743x_csr_write
	movl	(%r15), %ebx
	movl	8(%r12), %edi
	callq	_FCT_TX_CTL_EN_
	movl	$100, (%rsp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movl	$20000, %r9d                    ## imm = 0x4E20
	callq	_lan743x_csr_wait_for_bit
	movq	%r12, %rdi
	callq	_lan743x_tx_release_all_descriptors
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_dev_kfree_skb
	movq	$0, (%r12)
LBB0_2:
	movq	%r12, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lan743x_tx_ring_cleanup        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAC_CMD,4,2                   ## @DMAC_CMD
	.comm	_DMAC_INT_EN_CLR,4,2            ## @DMAC_INT_EN_CLR
	.comm	_INT_EN_CLR,4,2                 ## @INT_EN_CLR
	.comm	_FCT_TX_CTL,4,2                 ## @FCT_TX_CTL
	.no_dead_strip	_lan743x_tx_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_tx_close
_lan743x_tx_close:                      ; @lan743x_tx_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	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _DMAC_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMAC_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0, #8]
	bl	_DMAC_CMD_STOP_T_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_lan743x_csr_write
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_lan743x_dmac_tx_wait_till_stopped
Lloh3:
	adrp	x8, _DMAC_INT_EN_CLR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMAC_INT_EN_CLR@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_DMAC_INT_BIT_TX_IOC_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_lan743x_csr_write
Lloh6:
	adrp	x8, _INT_EN_CLR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_EN_CLR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_INT_BIT_DMA_TX_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_lan743x_csr_write
	add	x21, x19, #12
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x21
	bl	_netif_napi_del
Lloh9:
	adrp	x22, _FCT_TX_CTL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _FCT_TX_CTL@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	w0, [x19, #8]
	bl	_FCT_TX_CTL_DIS_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_lan743x_csr_write
	ldr	w21, [x22]
	ldr	w0, [x19, #8]
	bl	_FCT_TX_CTL_EN_
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1000
	mov	w5, #20000
	mov	w6, #100
	bl	_lan743x_csr_wait_for_bit
	mov	x0, x19
	bl	_lan743x_tx_release_all_descriptors
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dev_kfree_skb
	str	xzr, [x19]
LBB0_2:
	mov	x0, x19
	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	_lan743x_tx_ring_cleanup
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAC_CMD,4,2                   ; @DMAC_CMD
	.comm	_DMAC_INT_EN_CLR,4,2            ; @DMAC_INT_EN_CLR
	.comm	_INT_EN_CLR,4,2                 ; @INT_EN_CLR
	.comm	_FCT_TX_CTL,4,2                 ; @FCT_TX_CTL
	.no_dead_strip	_lan743x_tx_close
.subsections_via_symbols
