	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_gmu_build_freq_table
_a6xx_gmu_build_freq_table:             ## @a6xx_gmu_build_freq_table
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_dev_pm_opp_get_opp_count
	movl	%eax, %ebx
	movq	$1, -48(%rbp)
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	setge	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	decl	%r12d
	testq	%rax, %rax
	cmovel	%ebx, %r12d
	movq	$0, (%r14)
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	incl	%r12d
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_dev_pm_opp_find_freq_ceil
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_dev_pm_opp_put
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movq	%rax, (%r14,%r13,8)
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movl	$1, %r12d
	jmp	LBB0_6
LBB0_5:
	movl	%r13d, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %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	"The GMU frequency table is being truncated\n"

	.no_dead_strip	_a6xx_gmu_build_freq_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_gmu_build_freq_table
_a6xx_gmu_build_freq_table:             ; @a6xx_gmu_build_freq_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_dev_pm_opp_get_opp_count
	mov	x23, x0
	mov	w19, #1
	str	x19, [sp, #8]
	cmp	w0, w22
	cset	w0, ge
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	sub	w8, w22, #1
	cmp	x0, #0
	csel	w8, w23, w8, eq
	str	xzr, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	add	w23, w8, #1
	mov	x19, x23
	mov	w24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_dev_pm_opp_find_freq_ceil
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_dev_pm_opp_put
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	str	x8, [x20, x24, lsl #3]
	add	x8, x24, #1
	mov	x24, x8
	cmp	x23, x8
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x19, x24
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The GMU frequency table is being truncated\n"

	.no_dead_strip	_a6xx_gmu_build_freq_table
.subsections_via_symbols
