	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_armss_rate
_set_armss_rate:                        ## @set_armss_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ARM_EXTCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_ARM_50_OPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_ARM_100_OPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_ARM_MAX_OPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_fw_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRCMU_FW_PROJECT_U8520@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_db8520_armss_freqs@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_db8500_armss_freqs@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	movl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rbx,%rcx,8)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_11
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	-48(%rbp,%rcx,4), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_db8500_prcmu_set_arm_opp       ## TAILCALL
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_EXTCLK,4,2                 ## @ARM_EXTCLK
	.comm	_ARM_50_OPP,4,2                 ## @ARM_50_OPP
	.comm	_ARM_100_OPP,4,2                ## @ARM_100_OPP
	.comm	_ARM_MAX_OPP,4,2                ## @ARM_MAX_OPP
	.comm	_fw_info,8,3                    ## @fw_info
	.comm	_PRCMU_FW_PROJECT_U8520,8,3     ## @PRCMU_FW_PROJECT_U8520
	.comm	_db8520_armss_freqs,8,3         ## @db8520_armss_freqs
	.comm	_db8500_armss_freqs,8,3         ## @db8500_armss_freqs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET ARM OPP 0x%02x\n"

	.no_dead_strip	_set_armss_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_armss_rate
_set_armss_rate:                        ; @set_armss_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _ARM_EXTCLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARM_EXTCLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ARM_50_OPP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARM_50_OPP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _ARM_100_OPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARM_100_OPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ARM_MAX_OPP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ARM_MAX_OPP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _fw_info@GOTPAGE
Lloh16:
	ldr	x10, [x10, _fw_info@GOTPAGEOFF]
	stp	w8, w9, [sp, #16]
Lloh17:
	ldr	x8, [x10]
Lloh18:
	adrp	x9, _PRCMU_FW_PROJECT_U8520@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PRCMU_FW_PROJECT_U8520@GOTPAGEOFF]
Lloh20:
	adrp	x10, _db8500_armss_freqs@GOTPAGE
Lloh21:
	ldr	x10, [x10, _db8500_armss_freqs@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x11, _db8520_armss_freqs@GOTPAGE
Lloh24:
	ldr	x11, [x11, _db8520_armss_freqs@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w8, w0
	add	x9, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20]
	cmp	x10, x19
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #4
	add	x20, x20, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	x9, [sp, #24]
Lloh28:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_8
; %bb.5:
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w19, [x9]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	ldr	x8, [sp, #24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_db8500_prcmu_set_arm_opp
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.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
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_EXTCLK,4,2                 ; @ARM_EXTCLK
	.comm	_ARM_50_OPP,4,2                 ; @ARM_50_OPP
	.comm	_ARM_100_OPP,4,2                ; @ARM_100_OPP
	.comm	_ARM_MAX_OPP,4,2                ; @ARM_MAX_OPP
	.comm	_fw_info,8,3                    ; @fw_info
	.comm	_PRCMU_FW_PROJECT_U8520,8,3     ; @PRCMU_FW_PROJECT_U8520
	.comm	_db8520_armss_freqs,8,3         ; @db8520_armss_freqs
	.comm	_db8500_armss_freqs,8,3         ; @db8500_armss_freqs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET ARM OPP 0x%02x\n"

	.no_dead_strip	_set_armss_rate
.subsections_via_symbols
