	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adreno_gpu_init                ## -- Begin function adreno_gpu_init
	.p2align	4, 0x90
_adreno_gpu_init:                       ## @adreno_gpu_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	$0, -48(%rbp)
	movq	%rcx, 24(%rdx)
	movl	(%r15), %edi
	callq	_adreno_info
	movq	%rax, (%rbx)
	movl	12(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	8(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r15), %eax
	movl	%eax, 12(%rbx)
	leaq	L_.str(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	_SZ_16M@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	$-1, -52(%rbp)
	movq	%rbx, %rdi
	callq	_adreno_is_a2xx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SZ_64K@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$12, %ecx
	subl	%eax, %ecx
	addl	(%r15), %ecx
	movl	%ecx, -52(%rbp)
LBB0_2:
	leaq	8(%rbx), %r15
	movl	%r13d, -48(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_adreno_get_pwrlevels
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r12, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	(%rbx), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %r9
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_msm_gpu_init
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kgsl_3d0_reg_memory"

	.comm	_SZ_16M,4,2                     ## @SZ_16M
	.comm	_SZ_64K,4,2                     ## @SZ_64K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adreno_gpu_init                ; -- Begin function adreno_gpu_init
	.p2align	2
_adreno_gpu_init:                       ; @adreno_gpu_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x1]
	str	xzr, [sp, #24]
	str	x3, [x2, #24]
	ldr	w0, [x24]
	bl	_adreno_info
	str	x0, [x22]
	ldr	d0, [x0, #8]
	str	d0, [x22, #16]
	ldr	w8, [x24]
	str	w8, [x22, #12]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
Lloh2:
	adrp	x24, _SZ_16M@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SZ_16M@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w9, #-1
	stp	w8, w9, [sp, #16]
	mov	x0, x22
	bl	_adreno_is_a2xx
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _SZ_64K@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_64K@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh6:
	ldr	w8, [x8]
	lsl	w10, w8, #12
	sub	w8, w10, w8
	add	w8, w8, w9
	str	w8, [sp, #20]
LBB0_2:
	add	x24, x22, #8
	str	w23, [sp, #24]
	mov	x0, x20
	mov	x1, x24
	bl	_adreno_get_pwrlevels
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x20
	bl	_pm_runtime_enable
	ldr	x8, [x22]
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x19
	bl	_msm_gpu_init
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kgsl_3d0_reg_memory"

	.comm	_SZ_16M,4,2                     ; @SZ_16M
	.comm	_SZ_64K,4,2                     ; @SZ_64K
.subsections_via_symbols
