	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_training_settings
_initialize_training_settings:          ## @initialize_training_settings
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movl	20(%rbx), %eax
	movl	%eax, 84(%r12)
	movl	16(%rbx), %eax
	movl	%eax, 80(%r12)
	movq	8(%r15), %rax
	movq	_LINK_RATE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
LBB0_2:
	movq	%rax, 56(%r12)
	movq	16(%r15), %rax
	movq	_LANE_COUNT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
LBB0_4:
	movq	%rax, 64(%r12)
	cmpq	$0, (%r15)
	je	LBB0_6
LBB0_5:
	movq	_LINK_SPREAD_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	56(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_5
LBB0_9:
	movq	_LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
	movq	48(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, 48(%r12)
LBB0_12:
	movq	40(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, 40(%r12)
LBB0_14:
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, 24(%r12)
LBB0_16:
	movq	_LANE_COUNT_DP_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	testq	%r9, %r9
	je	LBB0_29
## %bb.17:
	movq	48(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_19
## %bb.18:
	movq	_VOLTAGE_SWING_LEVEL0@GOTPCREL(%rip), %rcx
LBB0_19:
	movq	24(%r12), %rdx
	movq	40(%r12), %rsi
	testq	%rsi, %rsi
	jne	LBB0_21
## %bb.20:
	movq	_PRE_EMPHASIS_DISABLED@GOTPCREL(%rip), %rsi
LBB0_21:
	testq	%rdx, %rdx
	jne	LBB0_23
## %bb.22:
	movq	_POST_CURSOR2_DISABLED@GOTPCREL(%rip), %rdx
LBB0_23:
	movq	32(%r12), %r8
	cmpq	$1, %r9
	jne	LBB0_25
## %bb.24:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_25:
	movq	%r9, %r10
	andq	$-2, %r10
	leaq	20(%r8), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %eax
	movl	%eax, -12(%rdi)
	movl	(%rsi), %eax
	movl	%eax, -16(%rdi)
	movl	(%rdx), %eax
	movl	%eax, -20(%rdi)
	movl	(%rcx), %eax
	movl	%eax, (%rdi)
	movl	(%rsi), %eax
	movl	%eax, -4(%rdi)
	movl	(%rdx), %eax
	movl	%eax, -8(%rdi)
	addq	$2, %rbx
	addq	$24, %rdi
	cmpq	%rbx, %r10
	jne	LBB0_26
LBB0_27:
	testb	$1, %r9b
	je	LBB0_29
## %bb.28:
	movl	(%rcx), %eax
	leaq	(%rbx,%rbx,2), %rcx
	movl	%eax, 8(%r8,%rcx,4)
	movl	(%rsi), %eax
	movl	%eax, 4(%r8,%rcx,4)
	movl	(%rdx), %eax
	movl	%eax, (%r8,%rcx,4)
LBB0_29:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	(%rax), %rax
	jmp	LBB0_32
LBB0_31:
	movq	%r15, %rdi
	movl	$100, %esi
	callq	_get_training_aux_rd_interval
LBB0_32:
	movq	%rax, 16(%r12)
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	(%rax), %rax
	jmp	LBB0_35
LBB0_34:
	movq	%r15, %rdi
	movl	$400, %esi                      ## imm = 0x190
	callq	_get_training_aux_rd_interval
LBB0_35:
	movq	%rax, 8(%r12)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movl	(%rax), %eax
	jmp	LBB0_38
LBB0_37:
	movq	%r15, %rdi
	callq	_get_supported_tp
LBB0_38:
	movl	%eax, 4(%r12)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movl	(%rax), %eax
	jmp	LBB0_41
LBB0_40:
	movl	$1, %eax
LBB0_41:
	movl	%eax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_RATE_UNKNOWN,8,3          ## @LINK_RATE_UNKNOWN
	.comm	_LANE_COUNT_UNKNOWN,8,3         ## @LANE_COUNT_UNKNOWN
	.comm	_LINK_SPREAD_DISABLED,8,3       ## @LINK_SPREAD_DISABLED
	.comm	_LINK_SPREAD_05_DOWNSPREAD_30KHZ,8,3 ## @LINK_SPREAD_05_DOWNSPREAD_30KHZ
	.comm	_LANE_COUNT_DP_MAX,8,3          ## @LANE_COUNT_DP_MAX
	.comm	_VOLTAGE_SWING_LEVEL0,4,2       ## @VOLTAGE_SWING_LEVEL0
	.comm	_PRE_EMPHASIS_DISABLED,4,2      ## @PRE_EMPHASIS_DISABLED
	.comm	_POST_CURSOR2_DISABLED,4,2      ## @POST_CURSOR2_DISABLED
	.no_dead_strip	_initialize_training_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_training_settings
_initialize_training_settings:          ; @initialize_training_settings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x3
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	d0, [x22, #16]
	str	d0, [x19, #80]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _LINK_RATE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINK_RATE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
LBB0_2:
	str	x8, [x19, #56]
	ldr	x8, [x21, #16]
Lloh3:
	adrp	x9, _LANE_COUNT_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LANE_COUNT_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x22, #8]
LBB0_4:
	str	x8, [x19, #64]
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _LINK_SPREAD_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LINK_SPREAD_DISABLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_8
; %bb.7:
Lloh8:
	adrp	x9, _LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh10:
	adrp	x10, _LINK_SPREAD_DISABLED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _LINK_SPREAD_DISABLED@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LINK_SPREAD_05_DOWNSPREAD_30KHZ@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_11
; %bb.10:
	str	x8, [x19, #48]
LBB0_11:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_13
; %bb.12:
	str	x8, [x19, #40]
LBB0_13:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_15
; %bb.14:
	str	x8, [x19, #24]
LBB0_15:
Lloh14:
	adrp	x8, _LANE_COUNT_DP_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LANE_COUNT_DP_MAX@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x8]
	cbz	x11, LBB0_20
; %bb.16:
Lloh17:
	adrp	x8, _VOLTAGE_SWING_LEVEL0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VOLTAGE_SWING_LEVEL0@GOTPAGEOFF]
	ldp	x10, x9, [x19, #40]
	cmp	x9, #0
	csel	x8, x8, x9, eq
Lloh19:
	adrp	x9, _PRE_EMPHASIS_DISABLED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PRE_EMPHASIS_DISABLED@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x9, x10, eq
	ldp	x10, x12, [x19, #24]
Lloh21:
	adrp	x13, _POST_CURSOR2_DISABLED@GOTPAGE
Lloh22:
	ldr	x13, [x13, _POST_CURSOR2_DISABLED@GOTPAGEOFF]
	cmp	x10, #0
	csel	x10, x13, x10, eq
	cmp	x11, #4
	b.hs	LBB0_33
; %bb.17:
	mov	x13, #0
LBB0_18:
	sub	x11, x11, x13
	mov	w14, #12
	madd	x12, x13, x14, x12
	add	x12, x12, #8
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8]
	str	w13, [x12]
	ldr	w13, [x9]
	stur	w13, [x12, #-4]
	ldr	w13, [x10]
	stur	w13, [x12, #-8]
	add	x12, x12, #12
	subs	x11, x11, #1
	b.ne	LBB0_19
LBB0_20:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	x0, [x8]
	b	LBB0_23
LBB0_22:
	mov	x0, x21
	mov	w1, #100
	bl	_get_training_aux_rd_interval
LBB0_23:
	str	x0, [x19, #16]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x0, [x8]
	b	LBB0_26
LBB0_25:
	mov	x0, x21
	mov	w1, #400
	bl	_get_training_aux_rd_interval
LBB0_26:
	str	x0, [x19, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_28
; %bb.27:
	ldr	w0, [x8]
	b	LBB0_29
LBB0_28:
	mov	x0, x21
	bl	_get_supported_tp
LBB0_29:
	str	w0, [x19, #4]
	ldr	x8, [x20]
	cbz	x8, LBB0_31
; %bb.30:
	ldr	w8, [x8]
	b	LBB0_32
LBB0_31:
	mov	w8, #1
LBB0_32:
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_33:
	mov	x13, #0
	sub	x15, x11, #1
	add	x16, x12, #4
	mov	w14, #12
	umulh	x14, x15, x14
	cmp	xzr, x14
	cset	w14, ne
	add	x15, x15, x15, lsl #1
	lsl	x15, x15, #2
	add	x17, x16, x15
	cmp	x17, x16
	b.lo	LBB0_18
; %bb.34:
	tbnz	w14, #0, LBB0_18
; %bb.35:
	add	x16, x12, x15
	cmp	x16, x12
	b.lo	LBB0_18
; %bb.36:
	tbnz	w14, #0, LBB0_18
; %bb.37:
	add	x16, x12, #8
	add	x15, x16, x15
	cmp	x15, x16
	b.lo	LBB0_18
; %bb.38:
	tbnz	w14, #0, LBB0_18
; %bb.39:
	mov	x13, #0
	mov	w14, #12
	madd	x16, x11, x14, x12
	add	x17, x8, #4
	add	x14, x9, #4
	add	x15, x10, #4
	cmp	x12, x14
	ccmp	x9, x16, #2, lo
	cset	w14, lo
	cmp	x12, x15
	ccmp	x10, x16, #2, lo
	cset	w15, lo
	cmp	x8, x16
	ccmp	x12, x17, #2, lo
	b.lo	LBB0_18
; %bb.40:
	tbnz	w14, #0, LBB0_18
; %bb.41:
	tbnz	w15, #0, LBB0_18
; %bb.42:
	and	x13, x11, #0xfffffffffffffffc
	mov	x14, x13
	mov	x15, x12
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ld1r.4s	{ v1 }, [x9]
	ld1r.4s	{ v0 }, [x10]
	ld1r.4s	{ v2 }, [x8]
	st3.4s	{ v0, v1, v2 }, [x15], #48
	subs	x14, x14, #4
	b.ne	LBB0_43
; %bb.44:
	cmp	x11, x13
	b.ne	LBB0_18
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_RATE_UNKNOWN,8,3          ; @LINK_RATE_UNKNOWN
	.comm	_LANE_COUNT_UNKNOWN,8,3         ; @LANE_COUNT_UNKNOWN
	.comm	_LINK_SPREAD_DISABLED,8,3       ; @LINK_SPREAD_DISABLED
	.comm	_LINK_SPREAD_05_DOWNSPREAD_30KHZ,8,3 ; @LINK_SPREAD_05_DOWNSPREAD_30KHZ
	.comm	_LANE_COUNT_DP_MAX,8,3          ; @LANE_COUNT_DP_MAX
	.comm	_VOLTAGE_SWING_LEVEL0,4,2       ; @VOLTAGE_SWING_LEVEL0
	.comm	_PRE_EMPHASIS_DISABLED,4,2      ; @PRE_EMPHASIS_DISABLED
	.comm	_POST_CURSOR2_DISABLED,4,2      ; @POST_CURSOR2_DISABLED
	.no_dead_strip	_initialize_training_settings
.subsections_via_symbols
