	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_tx
_amd8111e_tx:                           ## @amd8111e_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %eax
	cmpl	4(%rbx), %eax
	jne	LBB0_1
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_OWN_BIT@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	cmpl	4(%rbx), %eax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TX_RING_DR_MOD_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	%eax, %r15
	movq	8(%rbx), %rax
	leaq	(%r15,%r15,2), %r13
	movl	16(%rax,%r13,8), %edi
	callq	_le16_to_cpu
	testl	%eax, (%r12)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	$0, 8(%rax,%r13,8)
	movq	32(%rbx), %rcx
	movq	(%rcx,%r15,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edi
	movq	24(%rbx), %rax
	movq	(%rax,%r15,8), %rsi
	movl	(%rcx), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	32(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_dev_consume_skb_irq
	movq	32(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	movq	24(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	movq	8(%rbx), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	(%rbx)
	incl	20(%rbx)
	movl	(%rax,%r13,8), %edi
	callq	_le16_to_cpu
	addl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %eax
	movq	_NUM_TX_BUFFERS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	addl	$2, %eax
	cmpl	%eax, (%rbx)
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_DR_MOD_MASK,4,2        ## @TX_RING_DR_MOD_MASK
	.comm	_OWN_BIT,4,2                    ## @OWN_BIT
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_NUM_TX_BUFFERS,4,2             ## @NUM_TX_BUFFERS
	.no_dead_strip	_amd8111e_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_tx
_amd8111e_tx:                           ; @amd8111e_tx
	.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
	bl	_netdev_priv
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	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
LBB0_2:
	mov	x20, x0
Lloh0:
	adrp	x21, _TX_RING_DR_MOD_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TX_RING_DR_MOD_MASK@GOTPAGEOFF]
	mov	w22, #24
Lloh2:
	adrp	x23, _OWN_BIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OWN_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _NUM_TX_BUFFERS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _NUM_TX_BUFFERS@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x21]
	and	w26, w9, w8
	ldr	x8, [x20, #8]
	smaddl	x8, w26, w22, x8
	ldr	w0, [x8, #16]
	bl	_le16_to_cpu
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x26, w26
	ldr	x8, [x20, #8]
	madd	x9, x26, x22, x8
	str	xzr, [x9, #8]
	ldr	x9, [x20, #32]
	ldr	x9, [x9, x26, lsl #3]
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #40]
	ldr	x8, [x20, #24]
	lsl	x27, x26, #3
	ldr	x1, [x8, x27]
	ldr	w2, [x9]
	ldr	w3, [x25]
	bl	_pci_unmap_single
	ldr	x8, [x20, #32]
	ldr	x0, [x8, x27]
	bl	_dev_consume_skb_irq
	ldr	x8, [x20, #32]
	str	xzr, [x8, x27]
	ldr	x8, [x20, #24]
	str	xzr, [x8, x27]
	ldr	x8, [x20, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
	add	w9, w9, #1
	str	w9, [x20]
	ldr	w9, [x20, #20]
	add	w9, w9, #1
	str	w9, [x20, #20]
	mul	x9, x26, x22
	ldr	w0, [x8, x9]
	bl	_le16_to_cpu
	ldr	w8, [x20, #16]
	add	w8, w8, w0
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_netif_queue_stopped
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x20]
	ldr	w10, [x24]
	sub	w9, w9, w10
	add	w9, w9, #2
	cmp	w8, w9
	b.le	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_netif_wake_queue
	b	LBB0_3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_DR_MOD_MASK,4,2        ; @TX_RING_DR_MOD_MASK
	.comm	_OWN_BIT,4,2                    ; @OWN_BIT
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_NUM_TX_BUFFERS,4,2             ; @NUM_TX_BUFFERS
	.no_dead_strip	_amd8111e_tx
.subsections_via_symbols
