	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_sync_txq_pidx            ## -- Begin function cxgb4_sync_txq_pidx
	.p2align	4, 0x90
_cxgb4_sync_txq_pidx:                   ## @cxgb4_sync_txq_pidx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	callq	_netdev2adap
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_read_eq_indices
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	%r12, %rax
	je	LBB0_6
## %bb.2:
	movq	%r13, %rcx
	xorl	%r13d, %r13d
	cmpq	%r12, %rax
	cmovgq	%rcx, %r13
	subq	%rax, %r13
	addq	%r12, %r13
	movl	(%r15), %edi
	callq	_is_t4
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_PIDX_V
	jmp	LBB0_5
LBB0_4:
	callq	_PIDX_T5_V
LBB0_5:
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_wmb
	movq	_SGE_PF_KDOORBELL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MYPF_REG
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_QID_V
	orl	%eax, %r12d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_t4_write_reg
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_PF_KDOORBELL_A,4,2         ## @SGE_PF_KDOORBELL_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_sync_txq_pidx            ; -- Begin function cxgb4_sync_txq_pidx
	.p2align	2
_cxgb4_sync_txq_pidx:                   ; @cxgb4_sync_txq_pidx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	bl	_netdev2adap
	mov	x19, x0
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x20
	bl	_read_eq_indices
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.eq	LBB0_6
; %bb.2:
	csel	x9, x23, xzr, gt
	sub	x8, x9, x8
	add	x22, x8, x22
	ldr	w0, [x19]
	bl	_is_t4
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_PIDX_V
	b	LBB0_5
LBB0_4:
	mov	x0, x22
	bl	_PIDX_T5_V
LBB0_5:
	mov	x22, x0
	bl	_wmb
Lloh0:
	adrp	x8, _SGE_PF_KDOORBELL_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGE_PF_KDOORBELL_A@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MYPF_REG
	mov	x23, x0
	mov	x0, x20
	bl	_QID_V
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x23
	bl	_t4_write_reg
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_PF_KDOORBELL_A,4,2         ; @SGE_PF_KDOORBELL_A
.subsections_via_symbols
