	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function myri10ge_tx_done
_myri10ge_tx_done:                      ## @myri10ge_tx_done
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rcx
	movl	24(%rdi), %eax
	cmpl	%esi, %eax
	je	LBB0_11
## %bb.1:
	movl	%esi, %r14d
	movq	24(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r13), %eax
	cmpl	%r14d, %eax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r13), %ecx
	movl	32(%r13), %edx
	andl	%ecx, %edx
	movslq	%edx, %rbx
	movq	56(%r13), %rdx
	shlq	$4, %rbx
	leaq	(%rdx,%rbx), %rdi
	movq	8(%rdx,%rbx), %r15
	movq	$0, 8(%rdx,%rbx)
	cmpq	$0, (%rdx,%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, 24(%r13)
	movq	$0, (%rdi)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movl	%ecx, 28(%r13)
	movl	%r12d, %esi
	callq	_dma_unmap_len
	movl	%eax, %r12d
	movq	56(%r13), %rdi
	addq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_dma_unmap_len_set
	testq	%r15, %r15
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	addl	%eax, 16(%r13)
	incl	12(%r13)
	movq	%r15, %rdi
	callq	_dev_consume_skb_irq
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	56(%r13), %rbx
	movq	_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_pci_unmap_single
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	56(%r13), %rbx
	movq	_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_unmap_addr
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_pci_unmap_page
	jmp	LBB0_9
LBB0_10:
	movq	(%r13), %rcx
LBB0_11:
	movl	8(%r13), %edi
	movslq	(%rcx), %rax
	shlq	$6, %rax
	movq	%r13, %rsi
	subq	%rax, %rsi
	callq	_netdev_get_tx_queue
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	16(%rax), %rax
	cmpl	$2, (%rax)
	jl	LBB0_16
## %bb.12:
	movq	%r14, %rdi
	callq	___netif_tx_trylock
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	36(%r13), %eax
	cmpl	28(%r13), %eax
	jne	LBB0_15
## %bb.14:
	movq	$0, 48(%r13)
	movl	$1, %edi
	callq	_htonl
	movl	44(%r13), %esi
	movl	%eax, %edi
	callq	_put_be32
	xorl	%eax, %eax
	callq	_mb
LBB0_15:
	movq	%r14, %rdi
	callq	___netif_tx_unlock
LBB0_16:
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movl	32(%r13), %eax
	movl	36(%r13), %ecx
	subl	28(%r13), %ecx
	sarl	%eax
	cmpl	%eax, %ecx
	jge	LBB0_19
## %bb.18:
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movq	_MYRI10GE_ETH_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.20:
	incl	40(%r13)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_tx_wake_queue            ## TAILCALL
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bus,4,2                        ## @bus
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_MYRI10GE_ETH_RUNNING,8,3       ## @MYRI10GE_ETH_RUNNING
	.no_dead_strip	_myri10ge_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function myri10ge_tx_done
_myri10ge_tx_done:                      ; @myri10ge_tx_done
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x9, [x0]
	ldr	w8, [x0, #24]
	cmp	w8, w1
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x1
	ldr	x21, [x9, #24]
Lloh0:
	adrp	x24, _bus@GOTPAGE
Lloh1:
	ldr	x24, [x24, _bus@GOTPAGEOFF]
                                        ; implicit-def: $w22
Lloh2:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #24]
	cmp	w8, w20
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w10, [x19, #28]
	and	w11, w10, w9
	ldr	x10, [x19, #56]
	add	x12, x10, w11, sxtw #4
	ldp	x13, x23, [x12]
	str	xzr, [x12, #8]
	cbz	x13, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #24]
	str	xzr, [x12]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x26, w11
	add	w8, w9, #1
	str	w8, [x19, #28]
	lsl	x27, x26, #4
	add	x0, x10, x27
	mov	x1, x22
	bl	_dma_unmap_len
	mov	x22, x0
	ldr	x8, [x19, #56]
	add	x0, x8, x27
	mov	x1, x22
	mov	w2, #0
	bl	_dma_unmap_len_set
	cbz	x23, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	ldp	w10, w9, [x19, #12]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19, #12]
	mov	x0, x23
	bl	_dev_consume_skb_irq
	cbz	w22, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x26, lsl #4
	ldr	w1, [x24]
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_pci_unmap_single
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #56]
	add	x0, x8, x26, lsl #4
	ldr	w1, [x24]
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w3, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_pci_unmap_page
	b	LBB0_2
LBB0_10:
	ldr	x9, [x19]
LBB0_11:
	ldr	w0, [x19, #8]
	ldrsw	x8, [x9]
	sub	x1, x19, x8, lsl #6
	bl	_netdev_get_tx_queue
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.12:
	mov	x0, x20
	bl	___netif_tx_trylock
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w8, [x19, #36]
	ldr	w9, [x19, #28]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
	str	xzr, [x19, #48]
	mov	w0, #1
	bl	_htonl
	ldr	w1, [x19, #44]
	bl	_put_be32
	bl	_mb
LBB0_15:
	mov	x0, x20
	bl	___netif_tx_unlock
LBB0_16:
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_20
; %bb.17:
	ldp	w10, w8, [x19, #32]
	ldr	w9, [x19, #28]
	sub	w8, w8, w9
	cmp	w8, w10, asr #1
	b.ge	LBB0_20
; %bb.18:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh4:
	adrp	x9, _MYRI10GE_ETH_RUNNING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MYRI10GE_ETH_RUNNING@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netif_tx_wake_queue
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_bus,4,2                        ; @bus
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_MYRI10GE_ETH_RUNNING,8,3       ; @MYRI10GE_ETH_RUNNING
	.no_dead_strip	_myri10ge_tx_done
.subsections_via_symbols
