	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_configure_tx_ring
_fm10k_configure_tx_ring:               ## @fm10k_configure_tx_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	%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, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r13
	movl	(%rsi), %r12d
	movl	4(%rsi), %eax
	movq	%rsi, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	shll	$2, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FM10K_INT_MAP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_FM10K_TXDCTL_MAX_TIME_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FM10K_TXDCTL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	56(%rbx), %r15d
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movq	%r13, %rdi
	callq	_fm10k_write_flush
	movl	%r15d, %edi
	callq	_FM10K_TDBAL
	movq	%rax, %r14
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	andl	%eax, %r12d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_fm10k_write_reg
	movl	%r15d, %edi
	callq	_FM10K_TDBAH
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_fm10k_write_reg
	movl	%r15d, %edi
	callq	_FM10K_TDLEN
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_fm10k_write_reg
	movl	%r15d, %edi
	callq	_FM10K_TDH
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movl	%r15d, %edi
	callq	_FM10K_TDT
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movl	%r15d, %edi
	callq	_FM10K_TDT
	leaq	(%rbx,%rax,4), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_NON_Q_VECTORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	addl	(%rax), %r14d
	movq	_FM10K_INT_MAP_TIMER0@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_2:
	movl	%r15d, %edi
	callq	_FM10K_TXINT
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_fm10k_write_reg
	movl	%r15d, %edi
	callq	_FM10K_PFVTCTL
	movq	_FM10K_PFVTCTL_FTAG_DESC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_fm10k_write_reg
	movq	___FM10K_TX_XPS_INIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%rbx), %esi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edx
	movl	24(%rbx), %edi
	addq	$4, %rsi
	callq	_netif_set_xps_queue
LBB0_5:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	orl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r15d, %edi
	callq	_FM10K_TXDCTL
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fm10k_write_reg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_INT_MAP_DISABLE,4,2      ## @FM10K_INT_MAP_DISABLE
	.comm	_FM10K_TXDCTL_MAX_TIME_SHIFT,4,2 ## @FM10K_TXDCTL_MAX_TIME_SHIFT
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ## @FM10K_TXDCTL_ENABLE
	.comm	_NON_Q_VECTORS,4,2              ## @NON_Q_VECTORS
	.comm	_FM10K_INT_MAP_TIMER0,4,2       ## @FM10K_INT_MAP_TIMER0
	.comm	_FM10K_PFVTCTL_FTAG_DESC_ENABLE,4,2 ## @FM10K_PFVTCTL_FTAG_DESC_ENABLE
	.comm	___FM10K_TX_XPS_INIT_DONE,4,2   ## @__FM10K_TX_XPS_INIT_DONE
	.no_dead_strip	_fm10k_configure_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_configure_tx_ring
_fm10k_configure_tx_ring:               ; @fm10k_configure_tx_ring
	.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	x20, x1
	mov	x24, x0
	add	x19, x0, #8
	ldp	w28, w8, [x1]
	lsl	w25, w8, #2
Lloh0:
	adrp	x8, _FM10K_INT_MAP_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_INT_MAP_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _FM10K_TXDCTL_MAX_TIME_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM10K_TXDCTL_MAX_TIME_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh6:
	adrp	x8, _FM10K_TXDCTL_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_TXDCTL_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	ldr	w22, [x20, #56]
	mov	x0, x22
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
	mov	x0, x19
	bl	_fm10k_write_flush
	mov	x0, x22
	bl	_FM10K_TDBAL
	mov	x26, x0
	mov	w0, #32
	bl	_DMA_BIT_MASK
	and	w2, w0, w28
	mov	x0, x19
	mov	x1, x26
	bl	_fm10k_write_reg
	mov	x0, x22
	bl	_FM10K_TDBAH
	mov	x1, x0
	mov	x0, x19
	bl	_fm10k_write_reg
	mov	x0, x22
	bl	_FM10K_TDLEN
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_fm10k_write_reg
	mov	x0, x22
	bl	_FM10K_TDH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
	mov	x0, x22
	bl	_FM10K_TDT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
	ldr	x24, [x24]
	mov	x0, x22
	bl	_FM10K_TDT
	add	x8, x24, x0, lsl #2
	stp	xzr, x8, [x20, #40]
	str	xzr, [x20, #32]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NON_Q_VECTORS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NON_Q_VECTORS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _FM10K_INT_MAP_TIMER0@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FM10K_INT_MAP_TIMER0@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	add	w8, w9, w8
	orr	w23, w8, w10
LBB0_2:
	mov	x0, x22
	bl	_FM10K_TXINT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_fm10k_write_reg
	mov	x0, x22
	bl	_FM10K_PFVTCTL
	mov	x1, x0
Lloh15:
	adrp	x8, _FM10K_PFVTCTL_FTAG_DESC_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FM10K_PFVTCTL_FTAG_DESC_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fm10k_write_reg
Lloh18:
	adrp	x8, ___FM10K_TX_XPS_INIT_DONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, ___FM10K_TX_XPS_INIT_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20, #28]
	bl	_test_and_set_bit
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20, #24]
	add	x1, x8, #4
	ldr	w2, [x20, #8]
	bl	_netif_set_xps_queue
LBB0_5:
	orr	w20, w27, w21
	mov	x0, x22
	bl	_FM10K_TXDCTL
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	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	_fm10k_write_reg
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_INT_MAP_DISABLE,4,2      ; @FM10K_INT_MAP_DISABLE
	.comm	_FM10K_TXDCTL_MAX_TIME_SHIFT,4,2 ; @FM10K_TXDCTL_MAX_TIME_SHIFT
	.comm	_FM10K_TXDCTL_ENABLE,4,2        ; @FM10K_TXDCTL_ENABLE
	.comm	_NON_Q_VECTORS,4,2              ; @NON_Q_VECTORS
	.comm	_FM10K_INT_MAP_TIMER0,4,2       ; @FM10K_INT_MAP_TIMER0
	.comm	_FM10K_PFVTCTL_FTAG_DESC_ENABLE,4,2 ; @FM10K_PFVTCTL_FTAG_DESC_ENABLE
	.comm	___FM10K_TX_XPS_INIT_DONE,4,2   ; @__FM10K_TX_XPS_INIT_DONE
	.no_dead_strip	_fm10k_configure_tx_ring
.subsections_via_symbols
