	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adreno_get_pwrlevels
_adreno_get_pwrlevels:                  ## @adreno_get_pwrlevels
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, (%rsi)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_find_property
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	callq	_dev_pm_opp_of_add_table
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_6
LBB0_1:
	callq	_adreno_get_legacy_pwrlevels
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dev_pm_opp_find_freq_floor
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	movq	%r15, %rdi
	callq	_dev_pm_opp_put
LBB0_6:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	movq	$200000000, (%r14)              ## imm = 0xBEBC200
	movl	$200000000, %esi                ## imm = 0xBEBC200
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DBG
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_of_icc_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	$0, 8(%r14)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"operating-points-v2"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to set the OPP table\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not find a clock rate. Using a reasonable default\n"

L_.str.3:                               ## @.str.3
	.asciz	"fast_rate=%u, slow_rate=27000000"

	.no_dead_strip	_adreno_get_pwrlevels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adreno_get_pwrlevels
_adreno_get_pwrlevels:                  ; @adreno_get_pwrlevels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	str	xzr, [x1]
	ldr	w0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_of_find_property
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_dev_pm_opp_of_add_table
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_DRM_DEV_ERROR
	ldr	x21, [x19]
	cbnz	x21, LBB0_7
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_adreno_get_legacy_pwrlevels
	cbnz	w0, LBB0_5
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_dev_pm_opp_find_freq_floor
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
LBB0_5:
	ldr	x21, [x19]
	cbnz	x21, LBB0_7
LBB0_6:
	mov	w21, #49664
	movk	w21, #3051, lsl #16
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	str	x21, [x19]
LBB0_7:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_DBG
	mov	x0, x20
	mov	x1, #0
	bl	_of_icc_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	str	xzr, [x19, #8]
LBB0_9:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	x0, x21
	bl	_dev_pm_opp_put
	ldr	x21, [x19]
	cbnz	x21, LBB0_7
	b	LBB0_6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"operating-points-v2"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to set the OPP table\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not find a clock rate. Using a reasonable default\n"

l_.str.3:                               ; @.str.3
	.asciz	"fast_rate=%u, slow_rate=27000000"

	.no_dead_strip	_adreno_get_pwrlevels
.subsections_via_symbols
