	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gmu_isidle                ## -- Begin function a6xx_gmu_isidle
	.p2align	4, 0x90
_a6xx_gmu_isidle:                       ## @a6xx_gmu_isidle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	_REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gmu_read
	movl	%eax, %ecx
	movq	_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	sete	%al
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS,4,2 ## @REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS
	.comm	_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB,4,2 ## @A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gmu_isidle                ; -- Begin function a6xx_gmu_isidle
	.p2align	2
_a6xx_gmu_isidle:                       ; @a6xx_gmu_isidle
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gmu_read
Lloh3:
	adrp	x8, _A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS,4,2 ; @REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS
	.comm	_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB,4,2 ; @A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS_GPUBUSYIGNAHB
.subsections_via_symbols
