	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_is_device_idle
_goya_is_device_idle:                   ## @goya_is_device_idle
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_seq_puts
LBB0_2:
	movq	_DMA_MAX_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	_mmDMA_QM_1_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_mmDMA_QM_0_GLBL_STS0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subl	%edi, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %r13d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r12d, %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_mmDMA_CH_0_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r12d, %edi
	callq	_RREG32
	movl	%eax, %r15d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IS_DMA_QM_IDLE
	testq	%rax, %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_IS_DMA_IDLE
	testq	%rax, %rax
	setne	%r15b
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	movq	_GOYA_ENGINE_ID_DMA_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r14d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, (%rdx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	testb	%r15b, %r15b
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rax, %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_seq_printf
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%r15b, %eax
	andl	%eax, %r13d
	incl	%r14d
	movq	_DMA_MAX_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_13
## %bb.39:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_mmDMA_QM_0_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jmp	LBB0_5
LBB0_13:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_seq_puts
LBB0_16:
	movq	_TPC_MAX_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_28
## %bb.17:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_mmTPC1_QM_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_mmTPC0_QM_GLBL_STS0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subl	%edi, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	addl	%r15d, %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_mmTPC0_CMDQ_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_RREG32
	movl	%eax, %r14d
	movq	_mmTPC0_CFG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	callq	_RREG32
	movl	%eax, %r13d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_IS_TPC_QM_IDLE
	testq	%rax, %rax
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r14d, %edi
	callq	_IS_TPC_CMDQ_IDLE
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r13d, %ebx
	movl	%r13d, %edi
	callq	_IS_TPC_IDLE
	testq	%rax, %rax
	setne	%r14b
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_18 Depth=1
	xorl	%r14d, %r14d
	movl	%r13d, %ebx
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r14d, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	movq	_GOYA_ENGINE_ID_TPC_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	orl	%eax, (%rdx)
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	testb	%r14b, %r14b
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rax, %rcx
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_seq_printf
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	movzbl	%r14b, %eax
	andl	%eax, %r13d
	incl	%r12d
	movq	_TPC_MAX_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_27
## %bb.40:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_mmTPC0_QM_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	-76(%rbp), %r15d                ## 4-byte Folded Reload
	jmp	LBB0_18
LBB0_27:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.29:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_seq_puts
LBB0_30:
	movq	_mmMME_QM_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_mmMME_CMDQ_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_mmMME_ARCH_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_IS_MME_QM_IDLE
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_31
## %bb.32:
	movl	%ebx, %edi
	callq	_IS_MME_CMDQ_IDLE
	testq	%rax, %rax
	je	LBB0_31
## %bb.33:
	movl	%r14d, %edi
	callq	_IS_MME_IDLE
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_34
LBB0_31:
	xorl	%ebx, %ebx
LBB0_34:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_36
## %bb.35:
	movl	%ebx, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	movq	_GOYA_ENGINE_ID_MME_0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, (%rdx)
LBB0_36:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_38
## %bb.37:
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	testb	%bl, %bl
	cmovneq	%rax, %rcx
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_seq_printf
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_seq_puts
LBB0_38:
	movzbl	%bl, %eax
	andl	%eax, %r13d
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %r13d
	testq	%rbx, %rbx
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%-5d%-9s%#-14x%#-16x%#x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%-5d%-9s%#-14x%#x\n"

L_.str.2:                               ## @.str.2
	.asciz	"\nDMA  is_idle  QM_GLBL_STS0  DMA_CORE_STS0\n---  -------  ------------  -------------\n"

	.comm	_mmDMA_QM_1_GLBL_STS0,4,2       ## @mmDMA_QM_1_GLBL_STS0
	.comm	_mmDMA_QM_0_GLBL_STS0,4,2       ## @mmDMA_QM_0_GLBL_STS0
	.comm	_DMA_MAX_NUM,4,2                ## @DMA_MAX_NUM
	.comm	_mmDMA_CH_0_STS0,4,2            ## @mmDMA_CH_0_STS0
	.comm	_GOYA_ENGINE_ID_DMA_0,4,2       ## @GOYA_ENGINE_ID_DMA_0
L_.str.3:                               ## @.str.3
	.asciz	"Y"

L_.str.4:                               ## @.str.4
	.asciz	"N"

L_.str.5:                               ## @.str.5
	.asciz	"\nTPC  is_idle  QM_GLBL_STS0  CMDQ_GLBL_STS0  CFG_STATUS\n---  -------  ------------  --------------  ----------\n"

	.comm	_mmTPC1_QM_GLBL_STS0,4,2        ## @mmTPC1_QM_GLBL_STS0
	.comm	_mmTPC0_QM_GLBL_STS0,4,2        ## @mmTPC0_QM_GLBL_STS0
	.comm	_TPC_MAX_NUM,4,2                ## @TPC_MAX_NUM
	.comm	_mmTPC0_CMDQ_GLBL_STS0,4,2      ## @mmTPC0_CMDQ_GLBL_STS0
	.comm	_mmTPC0_CFG_STATUS,4,2          ## @mmTPC0_CFG_STATUS
	.comm	_GOYA_ENGINE_ID_TPC_0,4,2       ## @GOYA_ENGINE_ID_TPC_0
L_.str.6:                               ## @.str.6
	.asciz	"\nMME  is_idle  QM_GLBL_STS0  CMDQ_GLBL_STS0  ARCH_STATUS\n---  -------  ------------  --------------  -----------\n"

	.comm	_mmMME_QM_GLBL_STS0,4,2         ## @mmMME_QM_GLBL_STS0
	.comm	_mmMME_CMDQ_GLBL_STS0,4,2       ## @mmMME_CMDQ_GLBL_STS0
	.comm	_mmMME_ARCH_STATUS,4,2          ## @mmMME_ARCH_STATUS
	.comm	_GOYA_ENGINE_ID_MME_0,4,2       ## @GOYA_ENGINE_ID_MME_0
L_.str.7:                               ## @.str.7
	.asciz	"\n"

	.no_dead_strip	_goya_is_device_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_is_device_idle
_goya_is_device_idle:                   ; @goya_is_device_idle
	.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	x19, x2
	mov	x20, x1
	cbz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
LBB0_2:
Lloh2:
	adrp	x8, _DMA_MAX_NUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_MAX_NUM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	w27, #0
	mov	w21, #0
Lloh5:
	adrp	x8, _mmDMA_QM_1_GLBL_STS0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmDMA_QM_1_GLBL_STS0@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
Lloh8:
	adrp	x8, _mmDMA_QM_0_GLBL_STS0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmDMA_QM_0_GLBL_STS0@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w22, w9, w8
	mov	w26, #1
Lloh11:
	adrp	x25, _mmDMA_CH_0_STS0@GOTPAGE
Lloh12:
	ldr	x25, [x25, _mmDMA_CH_0_STS0@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w8, w27
	bl	_RREG32
	mov	x23, x0
	ldr	w8, [x25]
	add	w0, w27, w8
	bl	_RREG32
	mov	x24, x0
	mov	x0, x23
	bl	_IS_DMA_QM_IDLE
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_IS_DMA_IDLE
	cmp	x0, #0
	cset	w28, ne
	cbz	x20, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	eor	w8, w28, #0x1
Lloh13:
	adrp	x9, _GOYA_ENGINE_ID_DMA_0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GOYA_ENGINE_ID_DMA_0@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	add	w9, w21, w9
	lsl	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x19, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #0
Lloh16:
	adrp	x8, l_.str.4@PAGE
Lloh17:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x3, x9, x8, ne
	mov	x0, x19
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x4, x23
	mov	x5, x24
	bl	_seq_printf
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w26, w26, w28
	add	w21, w21, #1
Lloh22:
	adrp	x8, _DMA_MAX_NUM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMA_MAX_NUM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x8, _mmDMA_QM_0_GLBL_STS0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mmDMA_QM_0_GLBL_STS0@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w27, w27, w22
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	cbnz	x20, LBB0_6
	b	LBB0_7
LBB0_12:
	mov	w26, #1
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
LBB0_15:
Lloh30:
	adrp	x8, _TPC_MAX_NUM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TPC_MAX_NUM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.16:
	mov	w28, #0
	mov	w21, #0
Lloh33:
	adrp	x8, _mmTPC1_QM_GLBL_STS0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _mmTPC1_QM_GLBL_STS0@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x8]
Lloh36:
	adrp	x8, _mmTPC0_QM_GLBL_STS0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _mmTPC0_QM_GLBL_STS0@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	sub	w22, w9, w8
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w0, w8, w28
	bl	_RREG32
	mov	x23, x0
Lloh39:
	adrp	x8, _mmTPC0_CMDQ_GLBL_STS0@GOTPAGE
Lloh40:
	ldr	x8, [x8, _mmTPC0_CMDQ_GLBL_STS0@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	add	w0, w28, w8
	bl	_RREG32
	mov	x24, x0
Lloh42:
	adrp	x8, _mmTPC0_CFG_STATUS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _mmTPC0_CFG_STATUS@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	add	w0, w28, w8
	bl	_RREG32
	mov	x25, x0
	mov	x0, x23
	bl	_IS_TPC_QM_IDLE
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x24
	bl	_IS_TPC_CMDQ_IDLE
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x25
	bl	_IS_TPC_IDLE
	cmp	x0, #0
	cset	w27, ne
	cbnz	x20, LBB0_21
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w27, #0
	cbz	x20, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	eor	w8, w27, #0x1
Lloh45:
	adrp	x9, _GOYA_ENGINE_ID_TPC_0@GOTPAGE
Lloh46:
	ldr	x9, [x9, _GOYA_ENGINE_ID_TPC_0@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	add	w9, w21, w9
	lsl	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	cbz	x19, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w27, #0
Lloh48:
	adrp	x8, l_.str.4@PAGE
Lloh49:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh50:
	adrp	x9, l_.str.3@PAGE
Lloh51:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x3, x9, x8, ne
	str	x25, [sp]
	mov	x0, x19
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x4, x23
	mov	x5, x24
	bl	_seq_printf
LBB0_24:                                ;   in Loop: Header=BB0_17 Depth=1
	and	w26, w26, w27
	add	w21, w21, #1
Lloh54:
	adrp	x8, _TPC_MAX_NUM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _TPC_MAX_NUM@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh57:
	adrp	x8, _mmTPC0_QM_GLBL_STS0@GOTPAGE
Lloh58:
	ldr	x8, [x8, _mmTPC0_QM_GLBL_STS0@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	add	w28, w28, w22
	b	LBB0_17
LBB0_26:
	cbz	x19, LBB0_28
; %bb.27:
Lloh60:
	adrp	x1, l_.str.6@PAGE
Lloh61:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
LBB0_28:
Lloh62:
	adrp	x8, _mmMME_QM_GLBL_STS0@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mmMME_QM_GLBL_STS0@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x21, x0
Lloh65:
	adrp	x8, _mmMME_CMDQ_GLBL_STS0@GOTPAGE
Lloh66:
	ldr	x8, [x8, _mmMME_CMDQ_GLBL_STS0@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x22, x0
Lloh68:
	adrp	x8, _mmMME_ARCH_STATUS@GOTPAGE
Lloh69:
	ldr	x8, [x8, _mmMME_ARCH_STATUS@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x23, x0
	mov	x0, x21
	bl	_IS_MME_QM_IDLE
	cbz	x0, LBB0_31
; %bb.29:
	mov	x0, x22
	bl	_IS_MME_CMDQ_IDLE
	cbz	x0, LBB0_31
; %bb.30:
	mov	x0, x23
	bl	_IS_MME_IDLE
	cmp	x0, #0
	cset	w24, ne
	cbnz	x20, LBB0_32
	b	LBB0_33
LBB0_31:
	mov	w24, #0
	cbz	x20, LBB0_33
LBB0_32:
Lloh71:
	adrp	x8, _GOYA_ENGINE_ID_MME_0@GOTPAGE
Lloh72:
	ldr	x8, [x8, _GOYA_ENGINE_ID_MME_0@GOTPAGEOFF]
	eor	w9, w24, #0x1
Lloh73:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_33:
	cbz	x19, LBB0_35
; %bb.34:
	cmp	w24, #0
Lloh74:
	adrp	x8, l_.str.4@PAGE
Lloh75:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh76:
	adrp	x9, l_.str.3@PAGE
Lloh77:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x3, x9, x8, ne
	str	x23, [sp]
Lloh78:
	adrp	x1, l_.str@PAGE
Lloh79:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x4, x21
	mov	x5, x22
	bl	_seq_printf
Lloh80:
	adrp	x1, l_.str.7@PAGE
Lloh81:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_seq_puts
LBB0_35:
	and	w0, w26, w24
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%-5d%-9s%#-14x%#-16x%#x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%-5d%-9s%#-14x%#x\n"

l_.str.2:                               ; @.str.2
	.asciz	"\nDMA  is_idle  QM_GLBL_STS0  DMA_CORE_STS0\n---  -------  ------------  -------------\n"

	.comm	_mmDMA_QM_1_GLBL_STS0,4,2       ; @mmDMA_QM_1_GLBL_STS0
	.comm	_mmDMA_QM_0_GLBL_STS0,4,2       ; @mmDMA_QM_0_GLBL_STS0
	.comm	_DMA_MAX_NUM,4,2                ; @DMA_MAX_NUM
	.comm	_mmDMA_CH_0_STS0,4,2            ; @mmDMA_CH_0_STS0
	.comm	_GOYA_ENGINE_ID_DMA_0,4,2       ; @GOYA_ENGINE_ID_DMA_0
l_.str.3:                               ; @.str.3
	.asciz	"Y"

l_.str.4:                               ; @.str.4
	.asciz	"N"

l_.str.5:                               ; @.str.5
	.asciz	"\nTPC  is_idle  QM_GLBL_STS0  CMDQ_GLBL_STS0  CFG_STATUS\n---  -------  ------------  --------------  ----------\n"

	.comm	_mmTPC1_QM_GLBL_STS0,4,2        ; @mmTPC1_QM_GLBL_STS0
	.comm	_mmTPC0_QM_GLBL_STS0,4,2        ; @mmTPC0_QM_GLBL_STS0
	.comm	_TPC_MAX_NUM,4,2                ; @TPC_MAX_NUM
	.comm	_mmTPC0_CMDQ_GLBL_STS0,4,2      ; @mmTPC0_CMDQ_GLBL_STS0
	.comm	_mmTPC0_CFG_STATUS,4,2          ; @mmTPC0_CFG_STATUS
	.comm	_GOYA_ENGINE_ID_TPC_0,4,2       ; @GOYA_ENGINE_ID_TPC_0
l_.str.6:                               ; @.str.6
	.asciz	"\nMME  is_idle  QM_GLBL_STS0  CMDQ_GLBL_STS0  ARCH_STATUS\n---  -------  ------------  --------------  -----------\n"

	.comm	_mmMME_QM_GLBL_STS0,4,2         ; @mmMME_QM_GLBL_STS0
	.comm	_mmMME_CMDQ_GLBL_STS0,4,2       ; @mmMME_CMDQ_GLBL_STS0
	.comm	_mmMME_ARCH_STATUS,4,2          ; @mmMME_ARCH_STATUS
	.comm	_GOYA_ENGINE_ID_MME_0,4,2       ; @GOYA_ENGINE_ID_MME_0
l_.str.7:                               ; @.str.7
	.asciz	"\n"

	.no_dead_strip	_goya_is_device_idle
.subsections_via_symbols
