	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_tx_done
_do_tx_done:                            ## @do_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_PRIV
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movslq	(%r15), %rbx
	movq	_DESC_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	imulq	%rbx, %r14
	shlq	$2, %r14
	addq	8(%r15), %r14
	movl	4(%r15), %r12d
	movq	_DESC_CMDSTS@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%r14,%rax,4), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	4(%r15), %ebx
	jne	LBB0_1
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_start_tx_okay
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rax
	addq	$20, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_pci_unmap_page
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DESC_CMDSTS@GOTPCREL(%rip), %r13
	incl	%ebx
	movl	%ebx, %eax
	cltd
	movq	_NR_TX_DESC@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %ebx
	movl	%edx, (%r15)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	(%r13), %rcx
	movl	%eax, (%r14,%rcx,4)
	xorl	%eax, %eax
	callq	_mb
	movq	_DESC_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movslq	%ebx, %rax
	imulq	%rax, %r14
	shlq	$2, %r14
	addq	8(%r15), %r14
	cmpl	4(%r15), %eax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CMDSTS_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r13), %rax
	movl	(%r14,%rax,4), %edi
	callq	_le32_to_cpu
	testl	%r12d, %eax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movq	_CMDSTS_ERR@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_CMDSTS_OK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	4(%rcx)
	movzwl	%r13w, %eax
	addl	%eax, (%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movq	24(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	$0, (%rax,%rcx,8)
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_CMDSTS_LEN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_DESC_BUFPTR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	callq	_desc_addr_get
	movl	16(%r15), %edi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	movl	%r13d, %edx
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_pci_unmap_single
	movq	%r12, %rdi
	callq	_dev_consume_skb_irq
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_tx_done(%p)\n"

	.comm	_DESC_SIZE,4,2                  ## @DESC_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"tx_done_idx=%d free_idx=%d cmdsts=%08x\n"

	.comm	_DESC_CMDSTS,8,3                ## @DESC_CMDSTS
	.comm	_CMDSTS_OWN,4,2                 ## @CMDSTS_OWN
	.comm	_CMDSTS_ERR,4,2                 ## @CMDSTS_ERR
	.comm	_CMDSTS_OK,4,2                  ## @CMDSTS_OK
L_.str.2:                               ## @.str.2
	.asciz	"done(%p)\n"

	.comm	_CMDSTS_LEN_MASK,4,2            ## @CMDSTS_LEN_MASK
	.comm	_DESC_BUFPTR,4,2                ## @DESC_BUFPTR
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_NR_TX_DESC,4,2                 ## @NR_TX_DESC
L_.str.3:                               ## @.str.3
	.asciz	"start_queue(%p)\n"

	.no_dead_strip	_do_tx_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_tx_done
_do_tx_done:                            ; @do_tx_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	bl	_PRIV
	mov	x20, x0
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldp	w21, w23, [x20]
	mov	x28, x21
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w9, w9, w21
	add	x22, x8, w9, sxtw #2
Lloh5:
	adrp	x27, _DESC_CMDSTS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _DESC_CMDSTS@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	w8, [x20, #4]
	cmp	w21, w8
	b.ne	LBB0_5
LBB0_1:
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_start_tx_okay
	cbz	x0, LBB0_4
; %bb.3:
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_netif_wake_queue
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	add	x21, x20, #20
Lloh11:
	adrp	x23, l_.str.2@PAGE
Lloh12:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh13:
	adrp	x26, _NR_TX_DESC@GOTPAGE
Lloh14:
	ldr	x26, [x26, _NR_TX_DESC@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_pci_unmap_page
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w28, #1
	ldr	w9, [x26]
	sdiv	w10, w8, w9
	msub	w28, w10, w9, w8
	str	w28, [x20]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [x27]
	str	w0, [x22, x8, lsl #2]
	bl	_mb
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _DESC_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DESC_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mul	w9, w9, w28
	add	x22, x8, w9, sxtw #2
	ldr	w8, [x20, #4]
	cmp	w28, w8
	b.eq	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
Lloh18:
	adrp	x8, _CMDSTS_OWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMDSTS_OWN@GOTPAGEOFF]
Lloh20:
	ldr	w25, [x8]
	ldr	x8, [x27]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le32_to_cpu
	tst	w0, w25
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
Lloh21:
	adrp	x8, _CMDSTS_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMDSTS_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh24:
	adrp	x8, _CMDSTS_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CMDSTS_OK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	and	w8, w24, #0xffff
	ldr	d0, [x19]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v0, v1
	str	d0, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #4]
	stp	x8, x24, [sp, #8]
	str	x28, [sp]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	x8, [x20, #24]
	sbfiz	x9, x28, #3, #32
	ldr	x25, [x8, x9]
	str	xzr, [x8, x9]
	str	x25, [sp]
	mov	x0, x23
	bl	_dprintk
Lloh29:
	adrp	x8, _CMDSTS_LEN_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CMDSTS_LEN_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	and	w24, w8, w24
Lloh32:
	adrp	x8, _DESC_BUFPTR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DESC_BUFPTR@GOTPAGEOFF]
Lloh34:
	ldrsw	x8, [x8]
	add	x0, x22, x8, lsl #2
	bl	_desc_addr_get
	mov	x1, x0
	ldr	w0, [x20, #16]
Lloh35:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x2, x24
	cbz	x25, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_pci_unmap_single
	mov	x0, x25
	bl	_dev_consume_skb_irq
	mov	x0, x21
	bl	_atomic_dec
	b	LBB0_7
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_tx_done(%p)\n"

	.comm	_DESC_SIZE,4,2                  ; @DESC_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"tx_done_idx=%d free_idx=%d cmdsts=%08x\n"

	.comm	_DESC_CMDSTS,8,3                ; @DESC_CMDSTS
	.comm	_CMDSTS_OWN,4,2                 ; @CMDSTS_OWN
	.comm	_CMDSTS_ERR,4,2                 ; @CMDSTS_ERR
	.comm	_CMDSTS_OK,4,2                  ; @CMDSTS_OK
l_.str.2:                               ; @.str.2
	.asciz	"done(%p)\n"

	.comm	_CMDSTS_LEN_MASK,4,2            ; @CMDSTS_LEN_MASK
	.comm	_DESC_BUFPTR,4,2                ; @DESC_BUFPTR
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_NR_TX_DESC,4,2                 ; @NR_TX_DESC
l_.str.3:                               ; @.str.3
	.asciz	"start_queue(%p)\n"

	.no_dead_strip	_do_tx_done
.subsections_via_symbols
