	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_adreno_gpu
	movq	%rax, %rdi
	callq	_to_a6xx_gpu
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$4, %edx
	callq	_state_kcalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$2, (%rbx)
	movq	_a6xx_gmu_reglist@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rcx
	callq	__a6xx_get_gmu_registers
	movq	%r15, %rdi
	callq	_a6xx_gmu_gx_is_on
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_REG_A6XX_GMU_AO_AHB_FENCE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_gpu_write
	movq	(%r12), %rdx
	addq	$4, %rdx
	movq	8(%rbx), %rcx
	addq	$4, %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__a6xx_get_gmu_registers        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a6xx_gmu_reglist,8,3           ## @a6xx_gmu_reglist
	.comm	_REG_A6XX_GMU_AO_AHB_FENCE_CTRL,4,2 ## @REG_A6XX_GMU_AO_AHB_FENCE_CTRL
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_to_adreno_gpu
	bl	_to_a6xx_gpu
	mov	x21, x0
	mov	w22, #2
	mov	x0, x19
	mov	w1, #2
	mov	w2, #4
	bl	_state_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x3, x0
	str	w22, [x19]
Lloh0:
	adrp	x22, _a6xx_gmu_reglist@GOTPAGE
Lloh1:
	ldr	x22, [x22, _a6xx_gmu_reglist@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	__a6xx_get_gmu_registers
	mov	x0, x21
	bl	_a6xx_gmu_gx_is_on
	cbz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _REG_A6XX_GMU_AO_AHB_FENCE_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_A6XX_GMU_AO_AHB_FENCE_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_gpu_write
	ldr	x8, [x22]
	add	x2, x8, #4
	ldr	x8, [x19, #8]
	add	x3, x8, #4
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__a6xx_get_gmu_registers
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_a6xx_gmu_reglist,8,3           ; @a6xx_gmu_reglist
	.comm	_REG_A6XX_GMU_AO_AHB_FENCE_CTRL,4,2 ; @REG_A6XX_GMU_AO_AHB_FENCE_CTRL
	.no_dead_strip	_a6xx_get_gmu_registers
.subsections_via_symbols
