	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_end_xmit
_cpmac_end_xmit:                        ## @cpmac_end_xmit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%rax), %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rbx
	movl	4(%rax), %r13d
	movl	%ebx, %edi
	callq	_CPMAC_TX_ACK
	leaq	(%rbx,%rbx,2), %r15
	movl	16(%r14,%r15,8), %edx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_cpmac_write
	movq	(%r14,%r15,8), %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	(%r14,%r15,8), %r13
	movq	%r12, %rdi
	callq	_spin_lock
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incl	8(%rbx)
	movq	(%r13), %rax
	movl	(%rax), %eax
	addl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock
	movl	8(%r14,%r15,8), %esi
	movq	(%r13), %rax
	movq	(%rax), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dma_unmap_single
	movq	%r12, %rdi
	callq	_netif_msg_tx_done
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	%rbx, %r14
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rdx
	movq	(%rdx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
LBB0_3:
	movq	(%r13), %rdi
	callq	_dev_consume_skb_irq
	movq	$0, (%r13)
	jmp	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_4
## %bb.7:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_4:
	movq	%r14, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	___netif_subqueue_stopped
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_subqueue            ## TAILCALL
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sent 0x%p, len=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"end_xmit: spurious interrupt\n"

	.no_dead_strip	_cpmac_end_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_end_xmit
_cpmac_end_xmit:                        ; @cpmac_end_xmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w22, [x0, #4]
	mov	x0, x19
	bl	_CPMAC_TX_ACK
	mov	x1, x0
	mov	w8, #24
	smaddl	x23, w19, w8, x24
	ldr	w2, [x23, #16]
	mov	x0, x22
	bl	_cpmac_write
	ldr	x0, [x23]
	bl	_likely
	cbz	x0, LBB0_4
; %bb.1:
	sxtw	x22, w19
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x23]
	ldur	d0, [x20, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	mov	x0, x21
	bl	_spin_unlock
	mov	w8, #24
	madd	x8, x22, x8, x24
	ldr	w1, [x8, #8]
	ldr	x8, [x23]
	ldr	x2, [x8]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_unmap_single
	mov	x0, x21
	bl	_netif_msg_tx_done
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x2, [x23]
	ldr	x3, [x2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
LBB0_3:
	ldr	x0, [x23]
	bl	_dev_consume_skb_irq
	str	xzr, [x23]
	b	LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_7
; %bb.5:
	bl	_net_ratelimit
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_warn
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	___netif_subqueue_stopped
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netif_wake_subqueue
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sent 0x%p, len=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"end_xmit: spurious interrupt\n"

	.no_dead_strip	_cpmac_end_xmit
.subsections_via_symbols
