	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vce_state_table_entry
_get_vce_state_table_entry:             ## @get_vce_state_table_entry
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_get_powerplay_table
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_get_vce_state_table
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_get_vce_clock_info_array_offset
	movzwl	%ax, %ebx
	movl	(%r15), %edi
	callq	_le16_to_cpu
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	(%rbx,%r15), %r12
	shlq	$4, %r13
	movl	8(%rax,%r13), %edx
	movq	_NUM_BITS_CLOCK_INFO_ARRAY_INDEX@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %r14d
	sarl	%cl, %edx
	movq	(%rax,%r13), %rbx
	andl	$63, %r14d
	movslq	%edx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	shlq	$5, %rbx
	movl	16(%r12,%rbx), %edi
	movl	24(%r12,%rbx), %r13d
	shll	$16, %r13d
	callq	_le16_to_cpu
	orl	%r13d, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, (%r13)
	movl	(%r12,%rbx), %edi
	movl	8(%r12,%rbx), %ebx
	shll	$16, %ebx
	callq	_le16_to_cpu
	orl	%ebx, %eax
	movl	%eax, 4(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imulq	(%rax,%r15), %r14
	addq	8(%rax,%r15), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_BITS_CLOCK_INFO_ARRAY_INDEX,8,3 ## @NUM_BITS_CLOCK_INFO_ARRAY_INDEX
	.no_dead_strip	_get_vce_state_table_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vce_state_table_entry
_get_vce_state_table_entry:             ; @get_vce_state_table_entry
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_get_powerplay_table
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_get_vce_state_table
	mov	x25, x0
	mov	x0, x23
	mov	x1, x24
	bl	_get_vce_clock_info_array_offset
	mov	x23, x0
	ldr	w0, [x24]
	bl	_le16_to_cpu
	add	x26, x24, w0, sxtw
	ldr	x8, [x25]
	ldr	x9, [x24, w23, uxtw]
	add	x8, x8, x22, lsl #4
	ldr	x10, [x8]
	ldr	w8, [x8, #8]
	and	x22, x8, #0x3f
Lloh0:
	adrp	x11, _NUM_BITS_CLOCK_INFO_ARRAY_INDEX@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NUM_BITS_CLOCK_INFO_ARRAY_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	asr	w8, w8, w11
	sxtw	x8, w8
	str	x8, [x21]
	add	x21, x9, x10, lsl #5
	ldr	w23, [x21, #24]
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	orr	w8, w0, w23, lsl #16
	str	w8, [x20]
	ldr	w23, [x21, #8]
	ldr	w0, [x21]
	bl	_le16_to_cpu
	orr	w8, w0, w23, lsl #16
	str	w8, [x20, #4]
	ldp	x9, x8, [x26]
	madd	x8, x9, x22, x8
	str	x8, [x19]
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_BITS_CLOCK_INFO_ARRAY_INDEX,8,3 ; @NUM_BITS_CLOCK_INFO_ARRAY_INDEX
	.no_dead_strip	_get_vce_state_table_entry
.subsections_via_symbols
