	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_cim_read_la                 ## -- Begin function t4_cim_read_la
	.p2align	4, 0x90
_t4_cim_read_la:                        ## @t4_cim_read_la
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_UP_UP_DBG_LA_CFG_A@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rcx
	movl	$1, %edx
	callq	_t4_cim_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_UPDBGLAEN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t4_cim_write1
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
LBB0_3:
	movl	(%r13), %esi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_t4_cim_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:
	movl	-44(%rbp), %edi
	callq	_UPDBGLAWRPTR_G
	movl	%eax, %r13d
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movl	%r13d, (%r12)
LBB0_6:
	cmpl	$0, (%r15)
	jle	LBB0_18
## %bb.7:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	movq	_UP_UP_DBG_LA_CFG_A@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%r13d, %edi
	callq	_UPDBGLARDPTR_V
	movq	_UPDBGLARDEN_F@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_t4_cim_write1
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %esi
	movq	%r15, %r14
	movq	%r15, %rdi
	movl	$1, %edx
	leaq	-44(%rbp), %rcx
	callq	_t4_cim_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_UPDBGLARDEN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_UP_UP_DBG_LA_DATA_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %r15
	movq	%r14, %rdi
	movl	$1, %edx
	movq	%r12, %r14
	movq	%r12, %rcx
	callq	_t4_cim_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r15), %edi
	callq	_is_t6
	movl	%r13d, %ecx
	andl	$15, %ecx
	movl	%r13d, %edx
	andl	$4080, %edx                     ## imm = 0xFF0
	addl	$16, %edx
	incl	%r13d
	cmpl	$9, %ecx
	cmovbl	%r13d, %edx
	testq	%rax, %rax
	cmovel	%r13d, %edx
	movq	_UPDBGLARDPTR_M@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	(%r15), %rax
	addq	$4, %r14
	movl	%edx, %r13d
	cmpq	%rax, %rcx
	jl	LBB0_8
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_9:
	movl	%eax, %ebx
	movq	%r14, %r13
	jmp	LBB0_20
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_14:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	_UP_UP_DBG_LA_CFG_A@GOTPCREL(%rip), %r13
	movq	%r14, %r15
	jmp	LBB0_20
LBB0_16:
	movl	%eax, %ebx
LBB0_19:
	movq	_UP_UP_DBG_LA_CFG_A@GOTPCREL(%rip), %r13
LBB0_20:
	movl	-48(%rbp), %edx
	movq	_UPDBGLAEN_F@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_22
## %bb.21:
	movl	(%r13), %esi
	movq	_UPDBGLARDEN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	movq	%r15, %rdi
	callq	_t4_cim_write1
	testl	%ebx, %ebx
	cmovel	%eax, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_UP_UP_DBG_LA_CFG_A,4,2         ## @UP_UP_DBG_LA_CFG_A
	.comm	_UPDBGLAEN_F,4,2                ## @UPDBGLAEN_F
	.comm	_UPDBGLARDEN_F,4,2              ## @UPDBGLARDEN_F
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_UP_UP_DBG_LA_DATA_A,4,2        ## @UP_UP_DBG_LA_DATA_A
	.comm	_UPDBGLARDPTR_M,4,2             ## @UPDBGLARDPTR_M
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_cim_read_la                 ; -- Begin function t4_cim_read_la
	.p2align	2
_t4_cim_read_la:                        ; @t4_cim_read_la
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _UP_UP_DBG_LA_CFG_A@GOTPAGE
Lloh1:
	ldr	x24, [x24, _UP_UP_DBG_LA_CFG_A@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x3, sp, #12
	mov	w2, #1
	bl	_t4_cim_read
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	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
LBB0_2:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x25, _UPDBGLAEN_F@GOTPAGE
Lloh3:
	ldr	x25, [x25, _UPDBGLAEN_F@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_t4_cim_write1
	mov	x23, x0
	cbnz	w0, LBB0_1
LBB0_4:
	ldr	w1, [x24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_t4_cim_read
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	w0, [sp, #8]
	bl	_UPDBGLAWRPTR_G
	mov	x21, x0
	cbz	x22, LBB0_7
; %bb.6:
	str	w21, [x22]
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x26, #0
Lloh4:
	adrp	x27, _UPDBGLARDEN_F@GOTPAGE
Lloh5:
	ldr	x27, [x27, _UPDBGLARDEN_F@GOTPAGEOFF]
Lloh6:
	adrp	x28, _UP_UP_DBG_LA_DATA_A@GOTPAGE
Lloh7:
	ldr	x28, [x28, _UP_UP_DBG_LA_DATA_A@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x24]
	mov	x0, x21
	bl	_UPDBGLARDPTR_V
	ldr	w8, [x27]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x22
	bl	_t4_cim_write1
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_t4_cim_read
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x20
	bl	_t4_cim_read
	cbnz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #4]
	bl	_is_t6
	and	w8, w21, #0xf
	cmp	w8, #8
	ccmp	x0, #0, #4, hi
	and	w8, w21, #0xff0
	add	w8, w8, #16
	csinc	w8, w8, w21, ne
Lloh8:
	adrp	x9, _UPDBGLARDPTR_M@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UPDBGLARDPTR_M@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w21, w8, w9
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x26, x8
	b.lt	LBB0_9
LBB0_14:
	mov	w23, #0
	b	LBB0_17
LBB0_15:
	mov	x23, x0
	b	LBB0_17
LBB0_16:
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.18:
	ldr	w1, [x24]
Lloh14:
	adrp	x9, _UPDBGLARDEN_F@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UPDBGLARDEN_F@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_t4_cim_write1
	cmp	w23, #0
	csel	w23, w0, w23, eq
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UP_UP_DBG_LA_CFG_A,4,2         ; @UP_UP_DBG_LA_CFG_A
	.comm	_UPDBGLAEN_F,4,2                ; @UPDBGLAEN_F
	.comm	_UPDBGLARDEN_F,4,2              ; @UPDBGLARDEN_F
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_UP_UP_DBG_LA_DATA_A,4,2        ; @UP_UP_DBG_LA_DATA_A
	.comm	_UPDBGLARDPTR_M,4,2             ; @UPDBGLARDPTR_M
.subsections_via_symbols
