	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_read_cim_ibq                ## -- Begin function t4_read_cim_ibq
	.p2align	4, 0x90
_t4_read_cim_ibq:                       ## @t4_read_cim_ibq
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$5, %esi
	ja	LBB0_2
## %bb.1:
	movq	%rcx, %r13
	movl	%r13d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	_CIM_IBQ_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	cmpq	%r13, %rax
	cmovbq	%rax, %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	imull	%esi, %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	leal	(%rax,%r15), %edi
	movq	_CIM_IBQ_DBG_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_IBQDBGADDR_V
	movq	_IBQDBGEN_F@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_t4_write_reg
	movq	_CIM_IBQ_DBG_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IBQDBGBUSY_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$1000000, %r8d                  ## imm = 0xF4240
	movl	$1, %r9d
	callq	_t4_wait_op_done
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_CIM_IBQ_DBG_DATA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t4_read_reg
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	cmpq	%r15, %r13
	movq	%r12, %rax
	jne	LBB0_6
## %bb.9:
	movl	%r13d, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_CIM_IBQ_DBG_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_t4_write_reg
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CIM_IBQ_SIZE,4,2               ## @CIM_IBQ_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CIM_IBQ_DBG_CFG_A,4,2          ## @CIM_IBQ_DBG_CFG_A
	.comm	_IBQDBGEN_F,4,2                 ## @IBQDBGEN_F
	.comm	_IBQDBGBUSY_F,4,2               ## @IBQDBGBUSY_F
	.comm	_CIM_IBQ_DBG_DATA_A,4,2         ## @CIM_IBQ_DBG_DATA_A
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_read_cim_ibq                ; -- Begin function t4_read_cim_ibq
	.p2align	2
_t4_read_cim_ibq:                       ; @t4_read_cim_ibq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w1, #5
	b.hi	LBB0_7
; %bb.1:
	and	x8, x3, #0x3
	cbnz	x8, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _CIM_IBQ_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CIM_IBQ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	cmp	x8, x3
	csel	x24, x8, x3, lo
Lloh3:
	adrp	x23, _CIM_IBQ_DBG_CFG_A@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CIM_IBQ_DBG_CFG_A@GOTPAGEOFF]
	cbz	x24, LBB0_8
; %bb.3:
	mov	x20, x2
Lloh5:
	adrp	x25, _IBQDBGEN_F@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IBQDBGEN_F@GOTPAGEOFF]
	mul	w21, w8, w1
Lloh7:
	adrp	x26, _IBQDBGBUSY_F@GOTPAGE
Lloh8:
	ldr	x26, [x26, _IBQDBGBUSY_F@GOTPAGEOFF]
	mov	x27, x24
Lloh9:
	adrp	x28, _CIM_IBQ_DBG_DATA_A@GOTPAGE
Lloh10:
	ldr	x28, [x28, _CIM_IBQ_DBG_DATA_A@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x23]
	mov	x0, x21
	bl	_IBQDBGADDR_V
	ldr	w8, [x25]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x22
	bl	_t4_write_reg
	ldr	w1, [x23]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #16960
	movk	w4, #15, lsl #16
	mov	w5, #1
	bl	_t4_wait_op_done
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	bl	_t4_read_reg
	str	w0, [x20], #4
	add	w21, w21, #1
	subs	x27, x27, #1
	b.ne	LBB0_4
; %bb.6:
	mov	x22, x24
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_t4_write_reg
	b	LBB0_11
LBB0_10:
	mov	x22, x0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CIM_IBQ_SIZE,4,2               ; @CIM_IBQ_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CIM_IBQ_DBG_CFG_A,4,2          ; @CIM_IBQ_DBG_CFG_A
	.comm	_IBQDBGEN_F,4,2                 ; @IBQDBGEN_F
	.comm	_IBQDBGBUSY_F,4,2               ; @IBQDBGBUSY_F
	.comm	_CIM_IBQ_DBG_DATA_A,4,2         ; @CIM_IBQ_DBG_DATA_A
.subsections_via_symbols
