	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_txq_pidx
_sync_txq_pidx:                         ## @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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	32(%rbx), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	callq	_read_eq_indices
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movq	$0, 24(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_CH_WARN
	jmp	LBB0_7
LBB0_1:
	movq	(%rbx), %rax
	movq	-56(%rbp), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	je	LBB0_5
## %bb.2:
	jge	LBB0_4
## %bb.3:
	subq	%rcx, %rax
	addq	8(%rbx), %rax
	movq	%rax, %r12
LBB0_4:
	xorl	%eax, %eax
	callq	_wmb
	movq	_A_SGE_PF_KDOORBELL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MYPF_REG
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%rbx), %rdi
	callq	_V_QID
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_V_PIDX
	orl	%eax, %r13d
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_t4_write_reg
LBB0_5:
	movq	$0, 24(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_SGE_PF_KDOORBELL,4,2         ## @A_SGE_PF_KDOORBELL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DB drop recovery failed.\n"

	.no_dead_strip	_sync_txq_pidx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_txq_pidx
_sync_txq_pidx:                         ; @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	x20, x1
	mov	x21, x0
	add	x19, x1, #16
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x1, [x20, #32]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_read_eq_indices
	cbz	w0, LBB0_2
; %bb.1:
	str	xzr, [x20, #24]
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_CH_WARN
	b	LBB0_7
LBB0_2:
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	subs	x22, x8, x9
	b.eq	LBB0_6
; %bb.3:
	b.ge	LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	add	x22, x22, x8
LBB0_5:
	bl	_wmb
Lloh2:
	adrp	x8, _A_SGE_PF_KDOORBELL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_SGE_PF_KDOORBELL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MYPF_REG
	mov	x23, x0
	ldr	x0, [x20, #32]
	bl	_V_QID
	mov	x24, x0
	mov	x0, x22
	bl	_V_PIDX
	orr	w2, w0, w24
	mov	x0, x21
	mov	x1, x23
	bl	_t4_write_reg
LBB0_6:
	str	xzr, [x20, #24]
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_A_SGE_PF_KDOORBELL,4,2         ; @A_SGE_PF_KDOORBELL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DB drop recovery failed.\n"

	.no_dead_strip	_sync_txq_pidx
.subsections_via_symbols
