	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_SYS_EN                   ## -- Begin function mthca_SYS_EN
	.p2align	4, 0x90
_mthca_SYS_EN:                          ## @mthca_SYS_EN
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_CMD_SYS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_CMD_TIME_CLASS_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-20(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mthca_cmd_imm
	movl	%eax, %ebx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_2
## %bb.1:
	movl	-20(%rbp), %eax
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$15, %edx
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$3, %ecx
	movl	%eax, %r8d
	shrl	%r8d
	andl	$7, %r8d
	testb	$1, %al
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mthca_warn
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_SYS_EN,4,2                 ## @CMD_SYS_EN
	.comm	_CMD_TIME_CLASS_D,4,2           ## @CMD_TIME_CLASS_D
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SYS_EN DDR error: syn=%x, sock=%d, sladdr=%d, SPD source=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"NVMEM"

L_.str.2:                               ## @.str.2
	.asciz	"DIMM"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_SYS_EN                   ; -- Begin function mthca_SYS_EN
	.p2align	2
_mthca_SYS_EN:                          ; @mthca_SYS_EN
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CMD_SYS_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SYS_EN@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _CMD_TIME_CLASS_D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_TIME_CLASS_D@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	add	x2, sp, #12
	mov	w1, #0
	mov	w3, #0
	mov	w4, #0
	bl	_mthca_cmd_imm
	mov	x20, x0
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [sp, #12]
	ubfx	w2, w8, #6, #4
	ubfx	w3, w8, #4, #2
	ubfx	w4, w8, #1, #3
Lloh9:
	adrp	x9, l_.str.1@PAGE
Lloh10:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh11:
	adrp	x10, l_.str.2@PAGE
Lloh12:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, #0x1
	csel	x5, x10, x9, eq
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mthca_warn
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_SYS_EN,4,2                 ; @CMD_SYS_EN
	.comm	_CMD_TIME_CLASS_D,4,2           ; @CMD_TIME_CLASS_D
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SYS_EN DDR error: syn=%x, sock=%d, sladdr=%d, SPD source=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"NVMEM"

l_.str.2:                               ; @.str.2
	.asciz	"DIMM"

.subsections_via_symbols
