	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4vf_bar2_sge_qregs            ## -- Begin function t4vf_bar2_sge_qregs
	.p2align	4, 0x90
_t4vf_bar2_sge_qregs:                   ## @t4vf_bar2_sge_qregs
	.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	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_is_t4
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_T4_BAR2_QTYPE_EGRESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%r13d, (%rax)
	movb	(%rbx), %al
	setne	%cl
	movb	4(%rbx,%rcx,4), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%r12d, %edx
	shrl	%cl, %r12d
	addb	$10, %al
	movl	%eax, %ecx
	shll	%cl, %r12d
	movq	_SGE_UDB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	%edx, %esi
	movl	%esi, %edi
	movl	%eax, %ecx
	shrl	%cl, %edi
	xorl	%eax, %eax
	testl	%edi, %edi
	cmovnel	%edx, %edi
	cmovnel	%eax, %esi
	addl	%r12d, %esi
	movl	%esi, (%r15)
	movl	%edi, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_T4_BAR2_QTYPE_EGRESS,4,2       ## @T4_BAR2_QTYPE_EGRESS
	.comm	_SGE_UDB_SIZE,4,2               ## @SGE_UDB_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4vf_bar2_sge_qregs            ; -- Begin function t4vf_bar2_sge_qregs
	.p2align	2
_t4vf_bar2_sge_qregs:                   ; @t4vf_bar2_sge_qregs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #12]
	bl	_is_t4
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _T4_BAR2_QTYPE_EGRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _T4_BAR2_QTYPE_EGRESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	mov	w8, #8
	mov	w9, #4
	csel	x8, x9, x8, eq
	ldr	w9, [x22]
	add	w9, w9, #10
	ldr	w8, [x22, x8]
	mov	w10, #-1
	lsl	w10, w10, w8
	lsr	w8, w21, w8
	lsl	w8, w8, w9
	bic	w10, w21, w10
Lloh6:
	adrp	x11, _SGE_UDB_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SGE_UDB_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	mul	w11, w10, w11
	lsr	w9, w11, w9
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	csel	w10, w11, wzr, eq
	add	w8, w10, w8
	str	w8, [x20]
	str	w9, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_T4_BAR2_QTYPE_EGRESS,4,2       ; @T4_BAR2_QTYPE_EGRESS
	.comm	_SGE_UDB_SIZE,4,2               ; @SGE_UDB_SIZE
.subsections_via_symbols
