	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a5xx_lm_enable
_a5xx_lm_enable:                        ## @a5xx_lm_enable
	.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
	callq	_to_adreno_gpu
	movq	%rax, %rdi
	callq	_adreno_is_a530
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_REG_A5XX_GDPM_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gpu_write
	movq	_REG_A5XX_GDPM_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$327680, %edx                   ## imm = 0x50000
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$196608, %edx                   ## imm = 0x30000
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$17, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gpu_write                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_A5XX_GDPM_INT_MASK,4,2     ## @REG_A5XX_GDPM_INT_MASK
	.comm	_REG_A5XX_GDPM_INT_EN,4,2       ## @REG_A5XX_GDPM_INT_EN
	.comm	_REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK,4,2 ## @REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK
	.comm	_REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK,4,2 ## @REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK
	.comm	_REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL,4,2 ## @REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL
	.comm	_REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL,4,2 ## @REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL
	.no_dead_strip	_a5xx_lm_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a5xx_lm_enable
_a5xx_lm_enable:                        ; @a5xx_lm_enable
	.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
	bl	_to_adreno_gpu
	bl	_adreno_is_a530
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_A5XX_GDPM_INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_A5XX_GDPM_INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gpu_write
Lloh3:
	adrp	x8, _REG_A5XX_GDPM_INT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_A5XX_GDPM_INT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10
	bl	_gpu_write
Lloh6:
	adrp	x8, _REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
Lloh9:
	adrp	x8, _REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #327680
	bl	_gpu_write
Lloh12:
	adrp	x8, _REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #196608
	bl	_gpu_write
Lloh15:
	adrp	x8, _REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #17
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpu_write
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_A5XX_GDPM_INT_MASK,4,2     ; @REG_A5XX_GDPM_INT_MASK
	.comm	_REG_A5XX_GDPM_INT_EN,4,2       ; @REG_A5XX_GDPM_INT_EN
	.comm	_REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK,4,2 ; @REG_A5XX_GPMU_GPMU_VOLTAGE_INTR_EN_MASK
	.comm	_REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK,4,2 ; @REG_A5XX_GPMU_TEMP_THRESHOLD_INTR_EN_MASK
	.comm	_REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL,4,2 ; @REG_A5XX_GPMU_THROTTLE_UNMASK_FORCE_CTRL
	.comm	_REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL,4,2 ; @REG_A5XX_GPMU_CLOCK_THROTTLE_CTRL
	.no_dead_strip	_a5xx_lm_enable
.subsections_via_symbols
