	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_clock_describe_rates_get
_scmi_clock_describe_rates_get:         ## @scmi_clock_describe_rates_get
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_CLOCK_DESCRIBE_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCMI_PROTOCOL_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r9
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_scmi_xfer_get_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax
	movq	(%rax), %r15
	movq	8(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	callq	_cpu_to_le32
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_scmi_do_xfer
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_NUM_REMAINING
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_RATE_DISCRETE
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_NUM_RETURNED
	movq	%rax, %r14
	leaq	(%rax,%rbx), %rcx
	movq	_SCMI_MAX_NUM_RATES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	movq	%r15, %r12
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	shlq	$3, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_RATE_TO_U64
	movq	%rax, (%rbx,%r13,8)
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	%r15, %r12
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r15
	movq	%rcx, %rbx
	jne	LBB0_2
	jmp	LBB0_14
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rcx
	jmp	LBB0_14
LBB0_7:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_RATE_TO_U64
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 40(%rbx)
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_RATE_TO_U64
	movq	%rax, 32(%rbx)
	movq	(%r15), %rax
	movl	8(%rax), %edi
	callq	_RATE_TO_U64
	movq	%rax, 24(%rbx)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	32(%rbx), %rcx
	movq	40(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_17
LBB0_12:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.16:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, 8(%rbx)
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_17:
	movl	%r14d, (%rbx)
	xorl	%r14d, %r14d
LBB0_18:
	movq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_scmi_xfer_put
LBB0_19:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_DESCRIBE_RATES,4,2       ## @CLOCK_DESCRIBE_RATES
	.comm	_SCMI_PROTOCOL_CLOCK,4,2        ## @SCMI_PROTOCOL_CLOCK
	.comm	_SCMI_MAX_NUM_RATES,8,3         ## @SCMI_MAX_NUM_RATES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No. of rates > MAX_NUM_RATES"

L_.str.1:                               ## @.str.1
	.asciz	"Min %llu Max %llu Step %llu Hz\n"

L_.str.2:                               ## @.str.2
	.asciz	"Rate %llu Hz\n"

	.no_dead_strip	_scmi_clock_describe_rates_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_clock_describe_rates_get
_scmi_clock_describe_rates_get:         ; @scmi_clock_describe_rates_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x28, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CLOCK_DESCRIBE_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_DESCRIBE_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SCMI_PROTOCOL_CLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCMI_PROTOCOL_CLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x5, sp, #40
	mov	w3, #16
	mov	w4, #0
	bl	_scmi_xfer_get_init
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.1:
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x20, #0
	ldr	x8, [sp, #40]
	ldp	x27, x9, [x8]
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x28
	bl	_cpu_to_le32
	ldr	x23, [sp, #32]                  ; 8-byte Folded Reload
	str	x0, [x23, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [x23]
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_scmi_do_xfer
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x27, #8]
	bl	_le32_to_cpu
	mov	x26, x0
	bl	_NUM_REMAINING
	mov	x25, x0
	mov	x0, x26
	bl	_RATE_DISCRETE
	mov	x23, x0
	mov	x0, x26
	bl	_NUM_RETURNED
Lloh8:
	adrp	x8, _SCMI_MAX_NUM_RATES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCMI_MAX_NUM_RATES@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x24, x0, x20
	cmp	x24, x8
	b.gt	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w23, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	add	x20, x8, x20, lsl #3
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	ldr	w0, [x8, x21, lsl #2]
	bl	_RATE_TO_U64
	mov	x2, x0
	str	x0, [x20, x21, lsl #3]
	ldr	w0, [x19]
	mov	x1, x22
	bl	_dev_dbg
	add	x21, x21, #1
	cmp	x26, x21
	b.ne	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x26, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x24
	cbnz	x25, LBB0_2
	b	LBB0_12
LBB0_10:
	mov	x25, x0
	b	LBB0_17
LBB0_11:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x24, x20
LBB0_12:
	cbz	w23, LBB0_15
; %bb.13:
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	str	x24, [x20, #8]
	b	LBB0_16
LBB0_14:
	ldr	x8, [x27]
	ldr	w0, [x8]
	bl	_RATE_TO_U64
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	str	x0, [x20, #40]
	ldr	x8, [x27]
	ldr	w0, [x8, #4]
	bl	_RATE_TO_U64
	str	x0, [x20, #32]
	ldr	x8, [x27]
	ldr	w0, [x8, #8]
	bl	_RATE_TO_U64
	str	x0, [x20, #24]
	ldr	w8, [x19]
	ldp	x9, x2, [x20, #32]
	stp	x9, x0, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
	b	LBB0_16
LBB0_15:
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
LBB0_16:
	mov	w25, #0
	str	w23, [x20]
LBB0_17:
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_scmi_xfer_put
LBB0_18:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_DESCRIBE_RATES,4,2       ; @CLOCK_DESCRIBE_RATES
	.comm	_SCMI_PROTOCOL_CLOCK,4,2        ; @SCMI_PROTOCOL_CLOCK
	.comm	_SCMI_MAX_NUM_RATES,8,3         ; @SCMI_MAX_NUM_RATES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No. of rates > MAX_NUM_RATES"

l_.str.1:                               ; @.str.1
	.asciz	"Min %llu Max %llu Step %llu Hz\n"

l_.str.2:                               ; @.str.2
	.asciz	"Rate %llu Hz\n"

	.no_dead_strip	_scmi_clock_describe_rates_get
.subsections_via_symbols
