	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a530_lm_setup
_a530_lm_setup:                         ## @a530_lm_setup
	.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	%rdi, %r15
	callq	_to_adreno_gpu
	movq	%rax, %rdi
	callq	_to_a5xx_gpu
	movq	%rax, %r14
	movq	_a5xx_sequence_regs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	movq	%r15, %rdi
	callq	_gpu_write
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	_REG_A5XX_GPMU_TEMP_SENSOR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$393223, %edx                   ## imm = 0x60007
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_TEMP_SENSOR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_GPMU_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_BASE_LEAKAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_GPMU_PWR_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-2147477648, %edx              ## imm = 0x80001770
	callq	_gpu_write
	movq	_REG_A5XX_GPMU_BEC_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$268443647, %edx                ## imm = 0x10001FFF
	callq	_gpu_write
	movq	_REG_A5XX_GDPM_CONFIG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$2105329, %edx                  ## imm = 0x201FF1
	callq	_gpu_write
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$268443647, %edx                ## imm = 0x10001FFF
	callq	_gpu_write
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$2105329, %edx                  ## imm = 0x201FF1
	callq	_gpu_write
	movq	_AGC_MSG_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_gpu_write
	movq	_AGC_MSG_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AGC_POWER_CONFIG_PRODUCTION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_gpu_write
	xorl	%edi, %edi
	callq	_AGC_MSG_PAYLOAD
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$5448, %edx                     ## imm = 0x1548
	callq	_gpu_write
	movl	$1, %edi
	callq	_AGC_MSG_PAYLOAD
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_gpu_write
	movl	$2, %edi
	callq	_AGC_MSG_PAYLOAD
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	__get_mvolts
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_gpu_write
	movl	$3, %edi
	callq	_AGC_MSG_PAYLOAD
	movslq	(%r15), %rcx
	imulq	$1125899907, %rcx, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$50, %rdx
	addl	%ecx, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_gpu_write
	movq	_AGC_MSG_PAYLOAD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_gpu_write
	movq	_AGC_INIT_MSG_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AGC_INIT_MSG_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpu_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_a5xx_sequence_regs,8,3         ## @a5xx_sequence_regs
	.comm	_REG_A5XX_GPMU_TEMP_SENSOR_ID,4,2 ## @REG_A5XX_GPMU_TEMP_SENSOR_ID
	.comm	_REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD,4,2 ## @REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD
	.comm	_REG_A5XX_GPMU_TEMP_SENSOR_CONFIG,4,2 ## @REG_A5XX_GPMU_TEMP_SENSOR_CONFIG
	.comm	_REG_A5XX_GPMU_GPMU_VOLTAGE,4,2 ## @REG_A5XX_GPMU_GPMU_VOLTAGE
	.comm	_REG_A5XX_GPMU_BASE_LEAKAGE,4,2 ## @REG_A5XX_GPMU_BASE_LEAKAGE
	.comm	_REG_A5XX_GPMU_GPMU_PWR_THRESHOLD,4,2 ## @REG_A5XX_GPMU_GPMU_PWR_THRESHOLD
	.comm	_REG_A5XX_GPMU_BEC_ENABLE,4,2   ## @REG_A5XX_GPMU_BEC_ENABLE
	.comm	_REG_A5XX_GDPM_CONFIG1,4,2      ## @REG_A5XX_GDPM_CONFIG1
	.comm	_AGC_MSG_STATE,4,2              ## @AGC_MSG_STATE
	.comm	_AGC_MSG_COMMAND,4,2            ## @AGC_MSG_COMMAND
	.comm	_AGC_POWER_CONFIG_PRODUCTION_ID,4,2 ## @AGC_POWER_CONFIG_PRODUCTION_ID
	.comm	_AGC_MSG_PAYLOAD_SIZE,4,2       ## @AGC_MSG_PAYLOAD_SIZE
	.comm	_AGC_INIT_MSG_MAGIC,4,2         ## @AGC_INIT_MSG_MAGIC
	.comm	_AGC_INIT_MSG_VALUE,4,2         ## @AGC_INIT_MSG_VALUE
	.no_dead_strip	_a530_lm_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a530_lm_setup
_a530_lm_setup:                         ; @a530_lm_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_to_adreno_gpu
	bl	_to_a5xx_gpu
	mov	x20, x0
Lloh0:
	adrp	x21, _a5xx_sequence_regs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _a5xx_sequence_regs@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_gpu_write
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x22, x22, #8
	cmp	x23, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _REG_A5XX_GPMU_TEMP_SENSOR_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_A5XX_GPMU_TEMP_SENSOR_ID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7
	movk	w2, #6, lsl #16
	bl	_gpu_write
Lloh5:
	adrp	x8, _REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
Lloh8:
	adrp	x8, _REG_A5XX_GPMU_TEMP_SENSOR_CONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_A5XX_GPMU_TEMP_SENSOR_CONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
Lloh11:
	adrp	x8, _REG_A5XX_GPMU_GPMU_VOLTAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_A5XX_GPMU_GPMU_VOLTAGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-2147483648
	bl	_gpu_write
Lloh14:
	adrp	x8, _REG_A5XX_GPMU_BASE_LEAKAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_A5XX_GPMU_BASE_LEAKAGE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_gpu_write
Lloh17:
	adrp	x8, _REG_A5XX_GPMU_GPMU_PWR_THRESHOLD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_A5XX_GPMU_GPMU_PWR_THRESHOLD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6000
	movk	w2, #32768, lsl #16
	bl	_gpu_write
Lloh20:
	adrp	x20, _REG_A5XX_GPMU_BEC_ENABLE@GOTPAGE
Lloh21:
	ldr	x20, [x20, _REG_A5XX_GPMU_BEC_ENABLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #8191
	movk	w2, #4096, lsl #16
	bl	_gpu_write
Lloh22:
	adrp	x21, _REG_A5XX_GDPM_CONFIG1@GOTPAGE
Lloh23:
	ldr	x21, [x21, _REG_A5XX_GDPM_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #8177
	movk	w2, #32, lsl #16
	bl	_gpu_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #8191
	movk	w2, #4096, lsl #16
	bl	_gpu_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #8177
	movk	w2, #32, lsl #16
	bl	_gpu_write
Lloh24:
	adrp	x8, _AGC_MSG_STATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AGC_MSG_STATE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
Lloh27:
	adrp	x8, _AGC_MSG_COMMAND@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AGC_MSG_COMMAND@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _AGC_POWER_CONFIG_PRODUCTION_ID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AGC_POWER_CONFIG_PRODUCTION_ID@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_gpu_write
	mov	w0, #0
	bl	_AGC_MSG_PAYLOAD
	mov	x1, x0
	mov	x0, x19
	mov	w2, #5448
	bl	_gpu_write
	mov	w0, #1
	bl	_AGC_MSG_PAYLOAD
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_gpu_write
	mov	w0, #2
	bl	_AGC_MSG_PAYLOAD
	mov	x20, x0
	ldr	w1, [x19]
	mov	x0, x19
	bl	__get_mvolts
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_gpu_write
	mov	w0, #3
	bl	_AGC_MSG_PAYLOAD
	mov	x1, x0
	ldrsw	x8, [x19]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w2, w8, w9
	mov	x0, x19
	bl	_gpu_write
Lloh33:
	adrp	x8, _AGC_MSG_PAYLOAD_SIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AGC_MSG_PAYLOAD_SIZE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_gpu_write
Lloh36:
	adrp	x8, _AGC_INIT_MSG_MAGIC@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AGC_INIT_MSG_MAGIC@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _AGC_INIT_MSG_VALUE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AGC_INIT_MSG_VALUE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gpu_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_a5xx_sequence_regs,8,3         ; @a5xx_sequence_regs
	.comm	_REG_A5XX_GPMU_TEMP_SENSOR_ID,4,2 ; @REG_A5XX_GPMU_TEMP_SENSOR_ID
	.comm	_REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD,4,2 ; @REG_A5XX_GPMU_DELTA_TEMP_THRESHOLD
	.comm	_REG_A5XX_GPMU_TEMP_SENSOR_CONFIG,4,2 ; @REG_A5XX_GPMU_TEMP_SENSOR_CONFIG
	.comm	_REG_A5XX_GPMU_GPMU_VOLTAGE,4,2 ; @REG_A5XX_GPMU_GPMU_VOLTAGE
	.comm	_REG_A5XX_GPMU_BASE_LEAKAGE,4,2 ; @REG_A5XX_GPMU_BASE_LEAKAGE
	.comm	_REG_A5XX_GPMU_GPMU_PWR_THRESHOLD,4,2 ; @REG_A5XX_GPMU_GPMU_PWR_THRESHOLD
	.comm	_REG_A5XX_GPMU_BEC_ENABLE,4,2   ; @REG_A5XX_GPMU_BEC_ENABLE
	.comm	_REG_A5XX_GDPM_CONFIG1,4,2      ; @REG_A5XX_GDPM_CONFIG1
	.comm	_AGC_MSG_STATE,4,2              ; @AGC_MSG_STATE
	.comm	_AGC_MSG_COMMAND,4,2            ; @AGC_MSG_COMMAND
	.comm	_AGC_POWER_CONFIG_PRODUCTION_ID,4,2 ; @AGC_POWER_CONFIG_PRODUCTION_ID
	.comm	_AGC_MSG_PAYLOAD_SIZE,4,2       ; @AGC_MSG_PAYLOAD_SIZE
	.comm	_AGC_INIT_MSG_MAGIC,4,2         ; @AGC_INIT_MSG_MAGIC
	.comm	_AGC_INIT_MSG_VALUE,4,2         ; @AGC_INIT_MSG_VALUE
	.no_dead_strip	_a530_lm_setup
.subsections_via_symbols
