	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_hwcq_consume
_t4_hwcq_consume:                       ## @t4_hwcq_consume
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rcx
	movq	(%rdi), %rax
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 44(%rdi)
	movl	8(%rdi), %edx
	incl	%edx
	movl	%edx, 8(%rdi)
	movl	12(%rdi), %ecx
	movl	%ecx, %esi
	sarl	$4, %esi
	cmpl	%esi, %edx
	je	LBB0_2
## %bb.1:
	movq	_CIDXINC_M@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	callq	_SEINTARM_V
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_CIDXINC_V
	movl	%eax, %r15d
	movl	$7, %edi
	callq	_TIMERREG_V
	orl	%eax, %r14d
	orl	%r15d, %r14d
	movl	20(%rbx), %edi
	andl	16(%rbx), %edi
	callq	_INGRESSQID_V
	orl	%eax, %r14d
	movl	40(%rbx), %esi
	movl	%r14d, %edi
	callq	_writel
	movl	$0, 8(%rbx)
	movq	(%rbx), %rax
	movl	12(%rbx), %ecx
LBB0_3:
	incq	%rax
	movq	%rax, (%rbx)
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.4:
	movq	$0, (%rbx)
	xorb	$1, 24(%rbx)
	xorl	%eax, %eax
LBB0_5:
	movq	32(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIDXINC_M,4,2                  ## @CIDXINC_M
	.no_dead_strip	_t4_hwcq_consume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_hwcq_consume
_t4_hwcq_consume:                       ; @t4_hwcq_consume
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x9, [x0, #32]
	ldr	x8, [x0]
	ldr	w9, [x9, x8, lsl #2]
	str	w9, [x0, #44]
	ldp	w10, w9, [x0, #8]
	add	w10, w10, #1
	str	w10, [x0, #8]
Lloh0:
	adrp	x11, _CIDXINC_M@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CIDXINC_M@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	w10, w9, asr #4
	ccmp	w10, w11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_SEINTARM_V
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_CIDXINC_V
	orr	w20, w0, w20
	mov	w0, #7
	bl	_TIMERREG_V
	orr	w20, w20, w0
	ldp	w8, w9, [x19, #16]
	and	w0, w9, w8
	bl	_INGRESSQID_V
	orr	w0, w20, w0
	ldr	w1, [x19, #40]
	bl	_writel
	str	wzr, [x19, #8]
	ldr	x8, [x19]
	ldr	w9, [x19, #12]
LBB0_2:
	add	x8, x8, #1
	str	x8, [x19]
	sxtw	x9, w9
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x8, #0
	str	xzr, [x19]
	ldr	w10, [x19, #24]
	eor	w10, w10, #0x1
	str	w10, [x19, #24]
LBB0_4:
	ldr	x10, [x19, #32]
	lsl	x9, x9, #2
	str	x8, [x10, x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CIDXINC_M,4,2                  ; @CIDXINC_M
	.no_dead_strip	_t4_hwcq_consume
.subsections_via_symbols
