	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_read_cimq_cfg               ## -- Begin function t4_read_cimq_cfg
	.p2align	4, 0x90
_t4_read_cimq_cfg:                      ## @t4_read_cimq_cfg
	.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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_is_t4
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_CIM_NUM_OBQ_T5@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CIM_NUM_OBQ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_CIM_NUM_IBQ@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movq	_CIM_QUEUE_CONFIG_REF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IBQSELECT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_QUENUMSELECT_V
	orl	%eax, %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_t4_write_reg
	movq	_CIM_QUEUE_CONFIG_CTRL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_CIMQBASE_G
	shll	$8, %eax
	movl	%eax, (%r13)
	addq	$4, %r13
	movl	%r15d, %edi
	callq	_CIMQSIZE_G
	shll	$8, %eax
	movl	%eax, (%r14)
	addq	$4, %r14
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_QUEFULLTHRSH_G
	shll	$3, %eax
	movl	%eax, (%r15,%rbx,4)
	movq	_CIM_NUM_IBQ@GOTPCREL(%rip), %rax
	incq	%rbx
	cmpl	(%rax), %ebx
	jb	LBB0_5
LBB0_6:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CIM_QUEUE_CONFIG_REF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %r13
	movq	%r12, %r14
	movq	_OBQSELECT_F@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_QUENUMSELECT_V
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%r14, %r12
	movq	%r13, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	callq	_t4_write_reg
	movq	_CIM_QUEUE_CONFIG_CTRL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_t4_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_CIMQBASE_G
	shll	$8, %eax
	movl	%eax, (%r13,%rbx,4)
	movl	%r15d, %edi
	callq	_CIMQSIZE_G
	shll	$8, %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpl	%ebx, -48(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_8
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIM_NUM_OBQ,4,2                ## @CIM_NUM_OBQ
	.comm	_CIM_NUM_OBQ_T5,4,2             ## @CIM_NUM_OBQ_T5
	.comm	_CIM_NUM_IBQ,4,2                ## @CIM_NUM_IBQ
	.comm	_CIM_QUEUE_CONFIG_REF_A,4,2     ## @CIM_QUEUE_CONFIG_REF_A
	.comm	_IBQSELECT_F,4,2                ## @IBQSELECT_F
	.comm	_CIM_QUEUE_CONFIG_CTRL_A,4,2    ## @CIM_QUEUE_CONFIG_CTRL_A
	.comm	_OBQSELECT_F,4,2                ## @OBQSELECT_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_read_cimq_cfg               ; -- Begin function t4_read_cimq_cfg
	.p2align	2
_t4_read_cimq_cfg:                      ; @t4_read_cimq_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_is_t4
Lloh0:
	adrp	x8, _CIM_NUM_OBQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CIM_NUM_OBQ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CIM_NUM_OBQ_T5@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CIM_NUM_OBQ_T5@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh4:
	adrp	x22, _CIM_NUM_IBQ@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CIM_NUM_IBQ@GOTPAGEOFF]
	ldr	w25, [x8]
	ldr	w8, [x22]
Lloh6:
	adrp	x26, _CIM_QUEUE_CONFIG_REF_A@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CIM_QUEUE_CONFIG_REF_A@GOTPAGEOFF]
Lloh8:
	adrp	x27, _CIM_QUEUE_CONFIG_CTRL_A@GOTPAGE
Lloh9:
	ldr	x27, [x27, _CIM_QUEUE_CONFIG_CTRL_A@GOTPAGEOFF]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x24
	ldr	w24, [x26]
Lloh10:
	adrp	x8, _IBQSELECT_F@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IBQSELECT_F@GOTPAGEOFF]
Lloh12:
	ldr	w28, [x8]
	mov	x0, x23
	bl	_QUENUMSELECT_V
	orr	w2, w0, w28
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x28
	mov	x1, x24
	bl	_t4_write_reg
	ldr	w1, [x27]
	mov	x0, x28
	bl	_t4_read_reg
	mov	x24, x0
	bl	_CIMQBASE_G
	lsl	w8, w0, #8
	str	w8, [x20], #4
	mov	x0, x24
	bl	_CIMQSIZE_G
	lsl	w8, w0, #8
	str	w8, [x19], #4
	mov	x0, x24
	mov	x24, x21
	bl	_QUEFULLTHRSH_G
	lsl	w8, w0, #3
	str	w8, [x21, x23, lsl #2]
	ldr	w8, [x22]
	add	x23, x23, #1
	cmp	w23, w8
	b.lo	LBB0_2
LBB0_3:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w25, LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x28, x22, #2
	ldr	w23, [x26]
	mov	x24, x25
	mov	x25, x27
	mov	x27, x26
Lloh13:
	adrp	x8, _OBQSELECT_F@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OBQSELECT_F@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
	mov	x0, x22
	bl	_QUENUMSELECT_V
	orr	w2, w0, w26
	mov	x26, x27
	mov	x27, x25
	mov	x25, x24
	mov	x0, x21
	mov	x1, x23
	bl	_t4_write_reg
	ldr	w1, [x27]
	mov	x0, x21
	bl	_t4_read_reg
	mov	x23, x0
	bl	_CIMQBASE_G
	lsl	w8, w0, #8
	str	w8, [x20, x28]
	mov	x0, x23
	bl	_CIMQSIZE_G
	lsl	w8, w0, #8
	str	w8, [x19, x28]
	add	x22, x22, #1
	cmp	w25, w22
	b.ne	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CIM_NUM_OBQ,4,2                ; @CIM_NUM_OBQ
	.comm	_CIM_NUM_OBQ_T5,4,2             ; @CIM_NUM_OBQ_T5
	.comm	_CIM_NUM_IBQ,4,2                ; @CIM_NUM_IBQ
	.comm	_CIM_QUEUE_CONFIG_REF_A,4,2     ; @CIM_QUEUE_CONFIG_REF_A
	.comm	_IBQSELECT_F,4,2                ; @IBQSELECT_F
	.comm	_CIM_QUEUE_CONFIG_CTRL_A,4,2    ; @CIM_QUEUE_CONFIG_CTRL_A
	.comm	_OBQSELECT_F,4,2                ; @OBQSELECT_F
.subsections_via_symbols
