	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_start_xmit_ring
_alx_start_xmit_ring:                   ## @alx_start_xmit_ring
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_alx_tpd_avail
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_alx_tpd_req
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_alx_get_tx_queue
	movl	%eax, %edi
	callq	_netif_tx_stop_queue
	jmp	LBB0_2
LBB0_3:
	movq	(%r12), %rbx
	shlq	$2, %rbx
	addq	16(%r12), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_alx_tso
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	je	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_alx_map_tx_skb
	testq	%rax, %rax
	js	LBB0_2
## %bb.7:
	movq	%r12, %rdi
	callq	_alx_get_tx_queue
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_netdev_tx_sent_queue
	xorl	%eax, %eax
	callq	_wmb
	movl	12(%r12), %esi
	movq	(%r12), %rdx
	movq	%r15, %rdi
	callq	_alx_write_mem16
	movq	%r12, %rdi
	callq	_alx_tpd_avail
	movl	8(%r12), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	cmpl	%edx, %eax
	jge	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_alx_get_tx_queue
	movl	%eax, %edi
	callq	_netif_tx_stop_queue
	jmp	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_alx_tx_csum
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_9:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_alx_start_xmit_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alx_start_xmit_ring
_alx_start_xmit_ring:                   ; @alx_start_xmit_ring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #24]
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_alx_tpd_avail
	mov	x22, x0
	mov	x0, x20
	bl	_alx_tpd_req
	cmp	w22, w0
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_alx_get_tx_queue
	bl	_netif_tx_stop_queue
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x22, x8, x9, lsl #2
	mov	x0, x22
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	mov	x1, x22
	bl	_alx_tso
	tbnz	w0, #31, LBB0_8
; %bb.3:
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_alx_map_tx_skb
	tbnz	x0, #63, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_alx_get_tx_queue
	ldr	w1, [x20]
	bl	_netdev_tx_sent_queue
	bl	_wmb
	ldr	w1, [x19, #12]
	ldr	x2, [x19]
	mov	x0, x21
	bl	_alx_write_mem16
	mov	x0, x19
	bl	_alx_tpd_avail
	ldr	w8, [x19, #8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w0, w8, asr #3
	b.ge	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_alx_get_tx_queue
	bl	_netif_tx_stop_queue
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	bl	_alx_tx_csum
	cbz	x0, LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_9:
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_alx_start_xmit_ring
.subsections_via_symbols
