	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scpi_dvfs_get_info
_scpi_dvfs_get_info:                    ## @scpi_dvfs_get_info
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -40(%rbp)
	movq	_MAX_DVFS_DOMAINS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_14
## %bb.1:
	movq	_scpi_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdi,8), %r14
	testq	%r14, %r14
	jne	LBB0_13
## %bb.2:
	movq	_CMD_GET_DVFS_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	movl	$8, %edx
	movl	$24, %r8d
	callq	_scpi_send_message
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %edi
	jmp	LBB0_4
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movl	-64(%rbp), %eax
	movl	%eax, (%r14)
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 4(%r14)
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r12
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.9:
	addq	$8, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movl	4(%rax,%rbx,8), %edi
	callq	_le32_to_cpu
	movq	%rax, (%r12)
	movq	-56(%rbp), %rax
	movl	(%rax,%rbx,8), %edi
	callq	_le32_to_cpu
	movq	%rax, -8(%r12)
	incq	%rbx
	movslq	(%r14), %rsi
	addq	$16, %r12
	cmpq	%rsi, %rbx
	jl	LBB0_10
## %bb.11:
	movq	8(%r14), %r12
LBB0_12:
	movq	_opp_cmp_func@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$16, %edx
	xorl	%r8d, %r8d
	callq	_sort
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	movq	%r14, (%rax,%rcx,8)
	jmp	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_4:
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_13:
	movq	%r14, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DVFS_DOMAINS,8,3           ## @MAX_DVFS_DOMAINS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_scpi_info,8,3                  ## @scpi_info
	.comm	_CMD_GET_DVFS_INFO,4,2          ## @CMD_GET_DVFS_INFO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_opp_cmp_func,4,2               ## @opp_cmp_func
	.no_dead_strip	_scpi_dvfs_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scpi_dvfs_get_info
_scpi_dvfs_get_info:                    ; @scpi_dvfs_get_info
	.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
	str	x0, [sp, #24]
Lloh0:
	adrp	x8, _MAX_DVFS_DOMAINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_DVFS_DOMAINS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_10
; %bb.1:
Lloh3:
	adrp	x20, _scpi_info@GOTPAGE
Lloh4:
	ldr	x20, [x20, _scpi_info@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x19, [x8, x0, lsl #3]
	cbnz	x19, LBB0_14
; %bb.2:
Lloh5:
	adrp	x8, _CMD_GET_DVFS_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_GET_DVFS_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #24
	mov	x3, sp
	mov	w2, #8
	mov	w4, #24
	bl	_scpi_send_message
	cbnz	w0, LBB0_13
; %bb.3:
Lloh8:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x19, x0
	ldr	w8, [sp]
	str	w8, [x0]
	ldr	w0, [sp, #16]
	bl	_le16_to_cpu
	mov	w8, #1000
	mul	w8, w0, w8
	str	w8, [x19, #4]
	ldr	w0, [x19]
	ldr	w2, [x21]
	mov	w1, #16
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w1, [x19]
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
	mov	x22, #0
	add	x23, x0, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	str	x0, [x23]
	ldr	x8, [sp, #8]
	ldr	w0, [x8, x21]
	bl	_le32_to_cpu
	stur	x0, [x23, #-8]
	add	x22, x22, #1
	ldrsw	x1, [x19]
	add	x21, x21, #8
	add	x23, x23, #16
	cmp	x22, x1
	b.lt	LBB0_7
; %bb.8:
	ldr	x0, [x19, #8]
LBB0_9:
Lloh10:
	adrp	x8, _opp_cmp_func@GOTPAGE
Lloh11:
	ldr	x8, [x8, _opp_cmp_func@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #16
	mov	x4, #0
	bl	_sort
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	str	x19, [x8, x9, lsl #3]
	b	LBB0_14
LBB0_10:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_14:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DVFS_DOMAINS,8,3           ; @MAX_DVFS_DOMAINS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_scpi_info,8,3                  ; @scpi_info
	.comm	_CMD_GET_DVFS_INFO,4,2          ; @CMD_GET_DVFS_INFO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_opp_cmp_func,4,2               ; @opp_cmp_func
	.no_dead_strip	_scpi_dvfs_get_info
.subsections_via_symbols
