	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_tbufs
_alloc_tbufs:                           ## @alloc_tbufs
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rax)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	(%r15), %r13d
	addl	$4, %r13d
	movq	$-1, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	1(%r12), %r14
	addq	$24, %rbx
	addq	$2, %r12
	addl	$4, %r13d
	cmpq	%rax, %r12
	movq	%r14, %r12
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	$0, 8(%rax,%r12,8)
	movq	8(%r15), %rax
	movq	$0, 16(%rax,%rbx)
	movq	_TXDESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	_rqRhineI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leal	1(%r12), %ecx
	movslq	%ecx, %rcx
	imulq	%rax, %rcx
	shlq	$2, %rcx
	addq	16(%r15), %rcx
	movq	24(%r15), %rax
	movq	%rcx, 8(%rax,%r12,8)
	jmp	LBB0_5
LBB0_1:
	movq	$-1, %r14
LBB0_6:
	movl	(%r15), %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	leaq	(%r14,%r14,2), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_reset_queue             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_TXDESC,4,2                     ## @TXDESC
	.comm	_rqRhineI,4,2                   ## @rqRhineI
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.no_dead_strip	_alloc_tbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_tbufs
_alloc_tbufs:                           ; @alloc_tbufs
	.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
	mov	x20, x0
	stp	xzr, xzr, [x0, #40]
Lloh0:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x24, #0
	mov	x23, #0
	ldr	w8, [x20]
	add	w21, w8, #4
Lloh2:
	adrp	x25, _TXDESC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TXDESC@GOTPAGEOFF]
Lloh4:
	adrp	x26, _rqRhineI@GOTPAGE
Lloh5:
	ldr	x26, [x26, _rqRhineI@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PKT_BUF_SZ@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PKT_BUF_SZ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x24, x24, #24
	add	w21, w21, #4
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	str	xzr, [x8, x23, lsl #3]
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	str	xzr, [x8, #16]
	ldr	w0, [x25]
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	str	x0, [x8, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	str	x0, [x8, x24]
	ldr	w8, [x20, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	mul	w8, w8, w23
	ldp	x9, x10, [x20, #16]
	add	x8, x9, w8, sxtw #2
	str	x8, [x10, x23, lsl #3]
	b	LBB0_2
LBB0_5:
	sub	x21, x23, #1
	b	LBB0_7
LBB0_6:
	mov	x21, #-1
LBB0_7:
	ldr	w0, [x20]
	bl	_cpu_to_le32
	ldr	x8, [x20, #8]
	mov	w9, #24
	mul	x9, x21, x9
	str	x0, [x8, x9]
	mov	x0, x19
	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	_netdev_reset_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_TXDESC,4,2                     ; @TXDESC
	.comm	_rqRhineI,4,2                   ; @rqRhineI
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.no_dead_strip	_alloc_tbufs
.subsections_via_symbols
