	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function smu10_get_clock_by_type_with_voltage
LCPI0_0:
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_smu10_get_clock_by_type_with_voltage:  ## @smu10_get_clock_by_type_with_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_1
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_6:
	addq	$16, %rax
	jmp	LBB0_9
LBB0_8:
	addq	$40, %rax
	jmp	LBB0_9
LBB0_4:
	addq	$32, %rax
	jmp	LBB0_9
LBB0_7:
	addq	$8, %rax
	jmp	LBB0_9
LBB0_5:
	addq	$24, %rax
LBB0_9:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.11:
	movq	8(%rax), %rcx
	movq	8(%rdx), %rsi
	cmpq	$4, %r8
	jae	LBB0_14
## %bb.12:
	xorl	%edi, %edi
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_14:
	movq	%r8, %rdi
	andq	$-4, %rdi
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <10,10,u,u>
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rax,8), %xmm1
	movdqu	16(%rcx,%rax,8), %xmm2
	pshufd	$232, %xmm1, %xmm3              ## xmm3 = xmm1[0,2,2,3]
	pshufd	$232, %xmm2, %xmm4              ## xmm4 = xmm2[0,2,2,3]
	pmulld	%xmm0, %xmm3
	pmulld	%xmm0, %xmm4
	pmovzxdq	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,xmm3[1],zero
	pblendw	$204, %xmm1, %xmm3              ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5],xmm1[6,7]
	movdqu	%xmm3, (%rsi,%rax,8)
	pmovzxdq	%xmm4, %xmm1                    ## xmm1 = xmm4[0],zero,xmm4[1],zero
	pblendw	$204, %xmm2, %xmm1              ## xmm1 = xmm1[0,1],xmm2[2,3],xmm1[4,5],xmm2[6,7]
	movdqu	%xmm1, 16(%rsi,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %rdi
	jne	LBB0_15
	jmp	LBB0_16
LBB0_13:
	movl	(%rcx,%rdi,8), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%rsi,%rdi,8)
	movl	4(%rcx,%rdi,8), %eax
	movl	%eax, 4(%rsi,%rdi,8)
	incq	%rdi
LBB0_16:
	cmpq	%rdi, %r8
	jne	LBB0_13
## %bb.17:
	movq	%r8, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu10_get_clock_by_type_with_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu10_get_clock_by_type_with_voltage
_smu10_get_clock_by_type_with_voltage:  ; @smu10_get_clock_by_type_with_voltage
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_18
; %bb.1:
	sub	w9, w1, #128
	cmp	w9, #5
	b.hi	LBB0_18
; %bb.2:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	add	x8, x8, #16
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
	b	LBB0_18
LBB0_4:
	add	x8, x8, #40
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
	b	LBB0_18
LBB0_5:
	add	x8, x8, #32
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
	b	LBB0_18
LBB0_6:
	add	x8, x8, #8
LBB0_7:
	ldr	x9, [x8]
	cbz	x9, LBB0_18
LBB0_8:
	ldr	x8, [x9]
	cbz	x8, LBB0_18
; %bb.9:
	ldr	x10, [x9, #8]
	ldr	x9, [x2, #8]
	cmp	x8, #8
	b.hs	LBB0_11
; %bb.10:
	mov	x11, #0
	b	LBB0_14
LBB0_11:
	and	x11, x8, #0xfffffffffffffff8
	add	x12, x10, #32
	add	x13, x9, #32
	movi.4s	v0, #10
	mov	x14, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	x15, x12, #32
	ld2.4s	{ v1, v2 }, [x15]
	ld2.4s	{ v3, v4 }, [x12]
	mul.4s	v1, v1, v0
	sub	x15, x13, #32
	st2.4s	{ v1, v2 }, [x15]
	mul.4s	v3, v3, v0
	st2.4s	{ v3, v4 }, [x13]
	add	x12, x12, #64
	add	x13, x13, #64
	subs	x14, x14, #8
	b.ne	LBB0_12
; %bb.13:
	cmp	x8, x11
	b.eq	LBB0_16
LBB0_14:
	sub	x12, x8, x11
	lsl	x11, x11, #3
	add	x10, x10, x11
	add	x10, x10, #4
	add	x9, x9, x11
	add	x9, x9, #4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	add	w11, w11, w11, lsl #2
	lsl	w11, w11, #1
	stur	w11, [x9, #-4]
	ldr	w11, [x10], #8
	str	w11, [x9], #8
	subs	x12, x12, #1
	b.ne	LBB0_15
LBB0_16:
	mov	w0, #0
	str	x8, [x2]
	ret
LBB0_17:
	add	x8, x8, #24
	ldr	x9, [x8]
	cbnz	x9, LBB0_8
LBB0_18:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu10_get_clock_by_type_with_voltage
.subsections_via_symbols
