	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_get_clk_table
_vega20_get_clk_table:                  ## @vega20_get_clk_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdx), %ecx
	movq	_MAX_NUM_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
	movl	%eax, (%rsi)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	8(%rdx), %rcx
	movq	8(%rsi), %r8
	movl	%eax, %r9d
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movl	%r9d, %edi
	andl	$-2, %edi
	leaq	24(%r8), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	imull	$1000, (%rcx,%rsi,4), %edx      ## imm = 0x3E8
	movl	%edx, -24(%rax)
	movq	$0, -16(%rax)
	imull	$1000, 4(%rcx,%rsi,4), %edx     ## imm = 0x3E8
	movl	%edx, -8(%rax)
	movq	$0, (%rax)
	addq	$2, %rsi
	addq	$32, %rax
	cmpq	%rsi, %rdi
	jne	LBB0_4
LBB0_5:
	testb	$1, %r9b
	je	LBB0_7
## %bb.6:
	imull	$1000, (%rcx,%rsi,4), %eax      ## imm = 0x3E8
	shlq	$4, %rsi
	movl	%eax, (%r8,%rsi)
	movq	$0, 8(%r8,%rsi)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_CLOCKS,4,2             ## @MAX_NUM_CLOCKS
	.no_dead_strip	_vega20_get_clk_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_get_clk_table
_vega20_get_clk_table:                  ; @vega20_get_clk_table
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_NUM_CLOCKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_NUM_CLOCKS@GOTPAGEOFF]
	ldr	w9, [x2]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, w8
	csel	w8, w9, w8, lt
	str	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x10, [x2, #8]
	ldr	x9, [x1, #8]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_6
LBB0_3:
	and	x11, x8, #0xfffffffc
	add	x12, x9, #32
	add	x13, x10, #8
	mov	w14, #1000
	mov	x15, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w16, w17, [x13, #-8]
	ldp	w0, w1, [x13], #16
	mul	w16, w16, w14
	mul	w17, w17, w14
	mul	w0, w0, w14
	stur	w16, [x12, #-32]
	stur	w17, [x12, #-16]
	str	w0, [x12]
	mul	w16, w1, w14
	str	w16, [x12, #16]
	stur	xzr, [x12, #-24]
	stur	xzr, [x12, #-8]
	str	xzr, [x12, #8]
	str	xzr, [x12, #24]
	add	x12, x12, #64
	subs	x15, x15, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x10, x11, lsl #2
	add	x9, x9, x11, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x11
	mov	w11, #1000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	mul	w12, w12, w11
	stur	w12, [x9, #-8]
	str	xzr, [x9], #16
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_CLOCKS,4,2             ; @MAX_NUM_CLOCKS
	.no_dead_strip	_vega20_get_clk_table
.subsections_via_symbols
