	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_bottom_half_tx
_do_bottom_half_tx:                     ## @do_bottom_half_tx
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_DBG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dbg
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_16
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	72(%rax), %r15
	addq	$64, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	addq	$48, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 40(%r15)
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_port_to_dev
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_txDescrRing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	movq	_txDescrRing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rcx
	movl	(%rax,%rcx,8), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_FST_RDB
	movq	_DMA_OWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 68(%rax)
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r15), %ebx
	subl	16(%r15), %ebx
	movl	%ebx, %r14d
	sarl	$31, %r14d
	movq	_FST_TXQ_DEPTH@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	addl	%ebx, %r14d
	jle	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %rax
	movq	32(%r15), %rcx
	movq	(%rcx,%rax,8), %r13
	incq	%rax
	movq	_FST_TXQ_DEPTH@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movl	$0, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, 16(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_txDescrRing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%r15), %rcx
	movl	4(%rax,%rcx,8), %r12d
	movq	(%r13), %rdi
	callq	_cnv_bcnt
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_FST_WRW
	movq	(%r13), %rdx
	movq	_FST_MIN_DMA_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_FST_FAMILY_TXP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	56(%rax), %rbx
	movq	_txBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_BUF_OFFSET
	addq	%rax, %rbx
	movl	8(%r13), %esi
	movq	(%r13), %rdx
	movq	%rbx, %rdi
	callq	_memcpy_toio
	movq	_txDescrRing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,8), %esi
	movq	_TX_STP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_OWN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_TX_ENP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_FST_WRB
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	incl	4(%rdi)
	movl	(%r13), %eax
	addl	%eax, (%rdi)
	callq	_netif_trans_update
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	48(%rbx), %edi
	movl	8(%r13), %esi
	callq	_memcpy
	movq	%r15, 40(%rbx)
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	(%r15), %rax
	movq	%rax, 24(%rbx)
	movl	32(%rbx), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_txBuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%rcx,%r12,8), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_BUF_OFFSET
	movq	(%r13), %rcx
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rdx
	callq	_fst_tx_dma
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	_NUM_TX_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %ecx
	cmovaeq	%rcx, %rax
	movq	%rax, (%r15)
	cmpq	$0, 24(%r15)
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_fst_txq_low@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	callq	_port_to_dev
	movq	%rax, %rdi
	callq	_netif_wake_queue
	movq	$0, 24(%r15)
	jmp	LBB0_14
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_TX,4,2                     ## @DBG_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"do_bottom_half_tx\n"

	.comm	_txDescrRing,8,3                ## @txDescrRing
	.comm	_DMA_OWN,4,2                    ## @DMA_OWN
	.comm	_FST_TXQ_DEPTH,4,2              ## @FST_TXQ_DEPTH
	.comm	_FST_MIN_DMA_LEN,8,3            ## @FST_MIN_DMA_LEN
	.comm	_FST_FAMILY_TXP,8,3             ## @FST_FAMILY_TXP
	.comm	_txBuffer,8,3                   ## @txBuffer
	.comm	_TX_STP,4,2                     ## @TX_STP
	.comm	_TX_ENP,4,2                     ## @TX_ENP
	.comm	_NUM_TX_BUFFER,8,3              ## @NUM_TX_BUFFER
	.comm	_fst_txq_low,4,2                ## @fst_txq_low
	.no_dead_strip	_do_bottom_half_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_bottom_half_tx
_do_bottom_half_tx:                     ; @do_bottom_half_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, _DBG_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_TX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dbg
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x25, #0
	ldr	x20, [x19, #72]
	add	x21, x19, #64
Lloh5:
	adrp	x24, _txDescrRing@GOTPAGE
Lloh6:
	ldr	x24, [x24, _txDescrRing@GOTPAGEOFF]
Lloh7:
	adrp	x26, _DMA_OWN@GOTPAGE
Lloh8:
	ldr	x26, [x26, _DMA_OWN@GOTPAGEOFF]
Lloh9:
	adrp	x22, _FST_TXQ_DEPTH@GOTPAGE
Lloh10:
	ldr	x22, [x22, _FST_TXQ_DEPTH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x20, x20, #48
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_port_to_dev
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x23
	bl	_dev_kfree_skb
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x9, [x20]
	lsl	x9, x9, #3
	ldr	w1, [x8, x9]
	mov	x0, x19
	bl	_FST_RDB
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w8, [x19, #68]
	cbnz	w8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #8]
	ldr	w9, [x20, #16]
	ldr	w10, [x22]
	sub	w8, w8, w9
	and	w9, w10, w8, asr #31
	add	w27, w9, w8
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #16]
	ldr	x23, [x8, x9, lsl #3]
	add	x8, x9, #1
	ldrsw	x10, [x22]
	cmp	x8, x10
	csinc	x8, xzr, x9, eq
	str	x8, [x20, #16]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x22, x24
	ldr	x8, [x24]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldr	w24, [x8, #4]
	ldr	x0, [x23]
	bl	_cnv_bcnt
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_FST_WRW
	ldr	x2, [x23]
Lloh11:
	adrp	x8, _FST_MIN_DMA_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FST_MIN_DMA_LEN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x2, x8
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _FST_FAMILY_TXP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FST_FAMILY_TXP@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x24, [x19, #56]
Lloh17:
	adrp	x8, _txBuffer@GOTPAGE
Lloh18:
	ldr	x8, [x8, _txBuffer@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	lsl	x28, x25, #3
	ldr	x8, [x8, x28]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	bl	_BUF_OFFSET
	add	x0, x0, x24
	ldr	w1, [x23, #8]
	ldr	x2, [x23]
	bl	_memcpy_toio
	mov	x24, x22
	ldr	x8, [x22]
	ldr	x8, [x8, x28]
	ldr	x9, [x20]
	lsl	x9, x9, #3
	ldr	w1, [x8, x9]
	ldr	w8, [x26]
Lloh20:
	adrp	x9, _TX_STP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TX_STP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _TX_ENP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TX_ENP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_FST_WRB
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldr	d0, [x0]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x23]
	add.2s	v0, v0, v1
	str	d0, [x0]
	bl	_netif_trans_update
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x19, #48]
	ldr	w1, [x23, #8]
	bl	_memcpy
	str	x20, [x19, #40]
	ldr	x8, [x23]
	ldr	x9, [x20]
	stp	x8, x9, [x19, #16]
	ldr	w24, [x19, #32]
Lloh26:
	adrp	x8, _txBuffer@GOTPAGE
Lloh27:
	ldr	x8, [x8, _txBuffer@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	bl	_BUF_OFFSET
	mov	x2, x0
	ldr	x3, [x23]
	mov	x0, x19
	mov	x1, x24
	bl	_fst_tx_dma
	mov	x24, x22
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh29:
	adrp	x22, _FST_TXQ_DEPTH@GOTPAGE
Lloh30:
	ldr	x22, [x22, _FST_TXQ_DEPTH@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
Lloh31:
	adrp	x10, _NUM_TX_BUFFER@GOTPAGE
Lloh32:
	ldr	x10, [x10, _NUM_TX_BUFFER@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, xzr, x8, hs
	str	x8, [x20]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh34:
	adrp	x8, _fst_txq_low@GOTPAGE
Lloh35:
	ldr	x8, [x8, _fst_txq_low@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ge	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_port_to_dev
	bl	_netif_wake_queue
	str	xzr, [x20, #24]
	b	LBB0_5
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_TX,4,2                     ; @DBG_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"do_bottom_half_tx\n"

	.comm	_txDescrRing,8,3                ; @txDescrRing
	.comm	_DMA_OWN,4,2                    ; @DMA_OWN
	.comm	_FST_TXQ_DEPTH,4,2              ; @FST_TXQ_DEPTH
	.comm	_FST_MIN_DMA_LEN,8,3            ; @FST_MIN_DMA_LEN
	.comm	_FST_FAMILY_TXP,8,3             ; @FST_FAMILY_TXP
	.comm	_txBuffer,8,3                   ; @txBuffer
	.comm	_TX_STP,4,2                     ; @TX_STP
	.comm	_TX_ENP,4,2                     ; @TX_ENP
	.comm	_NUM_TX_BUFFER,8,3              ; @NUM_TX_BUFFER
	.comm	_fst_txq_low,4,2                ; @fst_txq_low
	.no_dead_strip	_do_bottom_half_tx
.subsections_via_symbols
