	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_set_preferred_training_settings ## -- Begin function dc_link_set_preferred_training_settings
	.p2align	4, 0x90
_dc_link_set_preferred_training_settings: ## @dc_link_set_preferred_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
	movl	%r8d, %r15d
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	(%rdx), %eax
	movl	%eax, 8(%rbx)
	testq	%r12, %r12
	je	LBB0_5
LBB0_4:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	testl	%r15d, %r15d
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	testq	%r12, %r12
	jne	LBB0_4
LBB0_5:
	movq	_LANE_COUNT_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_LINK_RATE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	testl	%r15d, %r15d
	jne	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dc_link_set_preferred_link_settings ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LANE_COUNT_UNKNOWN,4,2         ## @LANE_COUNT_UNKNOWN
	.comm	_LINK_RATE_UNKNOWN,4,2          ## @LINK_RATE_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_link_set_preferred_training_settings ; -- Begin function dc_link_set_preferred_training_settings
	.p2align	2
_dc_link_set_preferred_training_settings: ; @dc_link_set_preferred_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	x20, x4
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
	cbz	x2, LBB0_4
; %bb.1:
	ldr	w8, [x2]
	str	w8, [x19, #8]
	cbz	x22, LBB0_5
LBB0_2:
	ldr	x8, [x22]
	str	x8, [x19]
	cbz	w20, LBB0_6
LBB0_3:
	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_4:
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cbnz	x22, LBB0_2
LBB0_5:
Lloh0:
	adrp	x8, _LANE_COUNT_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LANE_COUNT_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LINK_RATE_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LINK_RATE_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	cbnz	w20, LBB0_3
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, 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
	b	_dc_link_set_preferred_link_settings
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LANE_COUNT_UNKNOWN,4,2         ; @LANE_COUNT_UNKNOWN
	.comm	_LINK_RATE_UNKNOWN,4,2          ; @LINK_RATE_UNKNOWN
.subsections_via_symbols
