	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gmu_stop                  ## -- Begin function a6xx_gmu_stop
	.p2align	4, 0x90
_a6xx_gmu_stop:                         ## @a6xx_gmu_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_pm_runtime_active
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	8(%rbx), %rdi
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	callq	_a6xx_gmu_force_off
	jmp	LBB0_4
LBB0_3:
	callq	_a6xx_gmu_shutdown
LBB0_4:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_icc_set_bw
	movl	20(%rbx), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	20(%rbx), %edi
	callq	_pm_runtime_put_sync
LBB0_6:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_clk_bulk_disable_unprepare
	movl	8(%rbx), %edi
	callq	_pm_runtime_put_sync
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_a6xx_gmu_stop                  ; -- Begin function a6xx_gmu_stop
	.p2align	2
_a6xx_gmu_stop:                         ; @a6xx_gmu_stop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x20, x0
	ldr	w0, [x20, #8]!
	bl	_pm_runtime_active
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_a6xx_gmu_force_off
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_a6xx_gmu_shutdown
LBB0_4:
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #0
	bl	_icc_set_bw
	ldr	w0, [x19, #20]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #20]
	bl	_pm_runtime_put_sync
LBB0_6:
	ldp	w1, w0, [x19, #12]
	bl	_clk_bulk_disable_unprepare
	ldr	w0, [x19, #8]
	bl	_pm_runtime_put_sync
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
