	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asic_internal_ss_get_ss_asignment
_asic_internal_ss_get_ss_asignment:     ## @asic_internal_ss_get_ss_asignment
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	(%rbx), %edi
	callq	_asic_internal_ss_get_ss_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movq	%r13, %r14
	subq	%rax, %r14
	movq	%r14, %rbx
	sarq	$3, %rbx
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movslq	%eax, %rcx
	movl	$1, %eax
	cmpq	%rcx, %rbx
	jge	LBB0_15
## %bb.3:
	addq	$20, %r13
	addq	$192, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	sarq	$3, %rbx
	movl	(%r15), %edi
	callq	_le16_to_cpu
	cltq
	addq	$192, %r13
	addq	$192, %r14
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, -20(%r13)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_le32_to_cpu
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_6
## %bb.8:
	movl	-4(%r13), %edi
	callq	_le16_to_cpu
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movl	-8(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	callq	_GET_DATA_TABLE_MAJOR_REVISION
	cmpl	$2, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_GET_DATA_TABLE_MINOR_REVISION
	cmpl	$1, %eax
	jg	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_GET_DATA_TABLE_MAJOR_REVISION
	cmpl	$3, %eax
	jne	LBB0_12
LBB0_11:
	movslq	4(%rbx), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
LBB0_12:
	movl	-12(%r13), %eax
	movq	_pp_atomctrl_spread_spectrum_mode_down@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rdx
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_pp_atomctrl_spread_spectrum_mode_center@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_14:
	testl	%eax, %eax
	cmoveq	%rcx, %rdx
	movq	%rdx, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_7:
	movl	$1, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pp_atomctrl_spread_spectrum_mode_down,8,3 ## @pp_atomctrl_spread_spectrum_mode_down
	.comm	_pp_atomctrl_spread_spectrum_mode_center,8,3 ## @pp_atomctrl_spread_spectrum_mode_center
	.no_dead_strip	_asic_internal_ss_get_ss_asignment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asic_internal_ss_get_ss_asignment
_asic_internal_ss_get_ss_asignment:     ; @asic_internal_ss_get_ss_asignment
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x3
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [x20]
	bl	_asic_internal_ss_get_ss_table
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x23, [x0, #8]
	sub	x24, x23, x0
	ldr	w0, [x0]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x24, asr #3
	b.le	LBB0_11
; %bb.2:
	add	x23, x23, #12
	add	x24, x24, #192
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x23, x23, #192
	cmp	x8, x24, asr #3
	add	x24, x24, #192
	b.le	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x23, #-12]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #8]
	bl	_le32_to_cpu
	cmp	x0, x21
	b.lt	LBB0_3
; %bb.6:
	ldr	w0, [x23, #4]
	bl	_le16_to_cpu
	str	w0, [x19]
	ldr	w0, [x23]
	bl	_le16_to_cpu
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_GET_DATA_TABLE_MAJOR_REVISION
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_GET_DATA_TABLE_MINOR_REVISION
	cmp	w0, #1
	b.gt	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_GET_DATA_TABLE_MAJOR_REVISION
	cmp	w0, #3
	b.ne	LBB0_10
LBB0_9:
	ldrsw	x8, [x19, #4]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	str	w8, [x19, #4]
LBB0_10:
	mov	w0, #0
	ldur	w8, [x23, #-4]
Lloh0:
	adrp	x9, _pp_atomctrl_spread_spectrum_mode_down@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pp_atomctrl_spread_spectrum_mode_down@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _pp_atomctrl_spread_spectrum_mode_center@GOTPAGE
Lloh4:
	ldr	x10, [x10, _pp_atomctrl_spread_spectrum_mode_center@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	w8, #1
	csel	x10, x10, x9, eq
	cmp	w8, #0
	csel	x8, x9, x10, eq
	str	x8, [x19, #8]
	b	LBB0_13
LBB0_11:
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pp_atomctrl_spread_spectrum_mode_down,8,3 ; @pp_atomctrl_spread_spectrum_mode_down
	.comm	_pp_atomctrl_spread_spectrum_mode_center,8,3 ; @pp_atomctrl_spread_spectrum_mode_center
	.no_dead_strip	_asic_internal_ss_get_ss_asignment
.subsections_via_symbols
