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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_get_socclocks
_vega20_get_socclocks:                  ; @vega20_get_socclocks
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	x8, [x9]
Lloh0:
	adrp	x10, _GNLD_DPM_SOCCLK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GNLD_DPM_SOCCLK@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w8, [x8, x10, lsl #2]
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _MAX_NUM_CLOCKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_NUM_CLOCKS@GOTPAGEOFF]
	ldr	w10, [x9, #8]
Lloh5:
	ldr	w8, [x8]
	cmp	w10, w8
	csel	w8, w10, w8, lt
	str	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x10, [x9, #16]
	ldr	x9, [x1, #8]
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	b	LBB0_8
LBB0_4:
	mov	w0, #-1
	ret
LBB0_5:
	and	x11, x8, #0xfffffffc
	add	x12, x9, #32
	add	x13, x10, #8
	mov	w14, #1000
	mov	x15, x11
LBB0_6:                                 ; =>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_6
; %bb.7:
	cmp	x11, x8
	b.eq	LBB0_10
LBB0_8:
	add	x10, x10, x11, lsl #2
	add	x9, x9, x11, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x11
	mov	w11, #1000
LBB0_9:                                 ; =>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_9
LBB0_10:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GNLD_DPM_SOCCLK,8,3            ; @GNLD_DPM_SOCCLK
	.comm	_MAX_NUM_CLOCKS,4,2             ; @MAX_NUM_CLOCKS
	.no_dead_strip	_vega20_get_socclocks
.subsections_via_symbols
