	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_ring_db
_check_ring_db:                         ## @check_ring_db
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_F_RSPD_TXQ0_GTS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	(%r15), %r14
	movq	_TXQ_ETH@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	shlq	$5, %r13
	movq	8(%r14,%r13), %rax
	addq	(%r14,%r13), %rax
	cmpq	16(%r14,%r13), %rax
	je	LBB0_4
## %bb.2:
	movq	_TXQ_LAST_PKT_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r14,%r13), %r12
	addq	$28, %r12
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_TXQ_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	_A_SG_KDOORBELL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_F_SELEGRCNTX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	24(%r14,%r13), %edi
	callq	_V_EGRCNTX
	orl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_t3_write_reg
LBB0_4:
	movq	_F_RSPD_TXQ1_GTS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%r15), %r12
	movq	_TXQ_OFLD@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$5, %rbx
	movq	8(%r12,%rbx), %rax
	addq	(%r12,%rbx), %rax
	cmpq	16(%r12,%rbx), %rax
	je	LBB0_7
## %bb.6:
	movq	_TXQ_LAST_PKT_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r12,%rbx), %r14
	addq	$28, %r14
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_TXQ_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	_A_SG_KDOORBELL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_SELEGRCNTX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	24(%r12,%rbx), %edi
	callq	_V_EGRCNTX
	orl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t3_write_reg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_F_RSPD_TXQ0_GTS,4,2            ## @F_RSPD_TXQ0_GTS
	.comm	_TXQ_ETH,8,3                    ## @TXQ_ETH
	.comm	_TXQ_LAST_PKT_DB,4,2            ## @TXQ_LAST_PKT_DB
	.comm	_TXQ_RUNNING,4,2                ## @TXQ_RUNNING
	.comm	_A_SG_KDOORBELL,4,2             ## @A_SG_KDOORBELL
	.comm	_F_SELEGRCNTX,4,2               ## @F_SELEGRCNTX
	.comm	_F_RSPD_TXQ1_GTS,4,2            ## @F_RSPD_TXQ1_GTS
	.comm	_TXQ_OFLD,8,3                   ## @TXQ_OFLD
	.no_dead_strip	_check_ring_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_ring_db
_check_ring_db:                         ; @check_ring_db
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _F_RSPD_TXQ0_GTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_RSPD_TXQ0_GTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_4
; %bb.1:
	ldr	x23, [x20]
Lloh3:
	adrp	x8, _TXQ_ETH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TXQ_ETH@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	add	x8, x23, x24, lsl #5
	ldp	x9, x10, [x8]
	ldr	x11, [x8, #16]
	add	x9, x10, x9
	cmp	x9, x11
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _TXQ_LAST_PKT_DB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXQ_LAST_PKT_DB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	add	x22, x8, #28
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _TXQ_RUNNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXQ_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh12:
	adrp	x8, _A_SG_KDOORBELL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _A_SG_KDOORBELL@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _F_SELEGRCNTX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_SELEGRCNTX@GOTPAGEOFF]
Lloh17:
	ldr	w25, [x8]
	add	x8, x23, x24, lsl #5
	ldr	w0, [x8, #24]
	bl	_V_EGRCNTX
	orr	w2, w0, w25
	mov	x0, x19
	mov	x1, x22
	bl	_t3_write_reg
LBB0_4:
Lloh18:
	adrp	x8, _F_RSPD_TXQ1_GTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _F_RSPD_TXQ1_GTS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	ldr	x21, [x20]
Lloh21:
	adrp	x8, _TXQ_OFLD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TXQ_OFLD@GOTPAGEOFF]
Lloh23:
	ldr	x22, [x8]
	add	x8, x21, x22, lsl #5
	ldp	x9, x10, [x8]
	ldr	x11, [x8, #16]
	add	x9, x10, x9
	cmp	x9, x11
	b.eq	LBB0_7
; %bb.6:
Lloh24:
	adrp	x9, _TXQ_LAST_PKT_DB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TXQ_LAST_PKT_DB@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x9]
	add	x20, x8, #28
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	w0, LBB0_8
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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh27:
	adrp	x8, _TXQ_RUNNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TXQ_RUNNING@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
Lloh30:
	adrp	x8, _A_SG_KDOORBELL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _A_SG_KDOORBELL@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
Lloh33:
	adrp	x8, _F_SELEGRCNTX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _F_SELEGRCNTX@GOTPAGEOFF]
Lloh35:
	ldr	w23, [x8]
	add	x8, x21, x22, lsl #5
	ldr	w0, [x8, #24]
	bl	_V_EGRCNTX
	orr	w2, w0, w23
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_t3_write_reg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_F_RSPD_TXQ0_GTS,4,2            ; @F_RSPD_TXQ0_GTS
	.comm	_TXQ_ETH,8,3                    ; @TXQ_ETH
	.comm	_TXQ_LAST_PKT_DB,4,2            ; @TXQ_LAST_PKT_DB
	.comm	_TXQ_RUNNING,4,2                ; @TXQ_RUNNING
	.comm	_A_SG_KDOORBELL,4,2             ; @A_SG_KDOORBELL
	.comm	_F_SELEGRCNTX,4,2               ; @F_SELEGRCNTX
	.comm	_F_RSPD_TXQ1_GTS,4,2            ; @F_RSPD_TXQ1_GTS
	.comm	_TXQ_OFLD,8,3                   ; @TXQ_OFLD
	.no_dead_strip	_check_ring_db
.subsections_via_symbols
