	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _a6xx_get_gmu_registers
__a6xx_get_gmu_registers:               ## @_a6xx_get_gmu_registers
	.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, %r12
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_to_adreno_gpu
	movq	%rax, %rdi
	callq	_to_a6xx_gpu
	movq	%rax, %r14
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movl	%r13d, %esi
	callq	_RANGE
	addl	%eax, %ebx
	addl	$2, %r13d
	cmpl	(%r15), %r13d
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r15, 8(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_state_kcalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rbx
	cmpl	%ebx, (%r15)
	jle	LBB0_12
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	8(%r15), %rdi
	movl	%ebx, %esi
	callq	_RANGE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r13
	movl	%eax, %r14d
	shlq	$2, %r13
	movq	%rbx, %r12
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movq	(%rax,%r12,8), %rsi
	addq	%r15, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_gmu_read
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	addq	%r13, %rcx
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	addl	%r15d, %r13d
	movq	%rbx, %r15
	movq	%r12, %rbx
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__a6xx_get_gmu_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _a6xx_get_gmu_registers
__a6xx_get_gmu_registers:               ; @_a6xx_get_gmu_registers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_to_adreno_gpu
	bl	_to_a6xx_gpu
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w24, #0
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x24
	bl	_RANGE
	add	w23, w0, w23
	add	w24, w24, #2
	ldr	w8, [x20]
	cmp	w24, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	str	x20, [x19, #8]
	mov	x0, x22
	mov	x1, x23
	mov	w2, #4
	bl	_state_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x22, #0
	mov	w23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #2
	ldr	w8, [x20]
	cmp	w8, w22
	b.le	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x0, [x20, #8]
	mov	x1, x22
	bl	_RANGE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, #0
	sbfiz	x25, x23, #2, #32
	mov	w26, w0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	add	x1, x24, x8
	mov	x0, x21
	bl	_gmu_read
	ldr	x8, [x19]
	add	x8, x8, x25
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	cmp	x26, x24
	b.ne	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w23, w23, w24
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__a6xx_get_gmu_registers
.subsections_via_symbols
