	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmc_ds3_init
_lmc_ds3_init:                          ## @lmc_ds3_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_LMC_CTL_CARDTYPE_LMC5245@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$17, %edx
	movl	%ebx, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	xorl	%ecx, %ecx
	callq	_lmc_mii_writereg
	incl	%ebx
	cmpl	$21, %ebx
	jne	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$17, %edx
	movl	$1, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	movl	$37, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$17, %edx
	movl	$5, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	movl	$128, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$17, %edx
	movl	$14, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	movl	$48, %ecx
	callq	_lmc_mii_writereg
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$17, %edx
	movl	%ebx, %ecx
	callq	_lmc_mii_writereg
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	callq	_lmc_mii_readreg
	incl	%ebx
	cmpl	$21, %ebx
	jne	LBB0_3
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LMC_CTL_CARDTYPE_LMC5245,4,2   ## @LMC_CTL_CARDTYPE_LMC5245
	.no_dead_strip	_lmc_ds3_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmc_ds3_init
_lmc_ds3_init:                          ; @lmc_ds3_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w20, #0
Lloh0:
	adrp	x8, _LMC_CTL_CARDTYPE_LMC5245@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LMC_CTL_CARDTYPE_LMC5245@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #17
	mov	x3, x20
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	mov	w3, #0
	bl	_lmc_mii_writereg
	add	w20, w20, #1
	cmp	w20, #21
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #17
	mov	w3, #1
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	mov	w3, #37
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #17
	mov	w3, #5
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	mov	w3, #128
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #17
	mov	w3, #14
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	mov	w3, #48
	bl	_lmc_mii_writereg
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #17
	mov	x3, x20
	bl	_lmc_mii_writereg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	bl	_lmc_mii_readreg
	add	w20, w20, #1
	cmp	w20, #21
	b.ne	LBB0_3
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LMC_CTL_CARDTYPE_LMC5245,4,2   ; @LMC_CTL_CARDTYPE_LMC5245
	.no_dead_strip	_lmc_ds3_init
.subsections_via_symbols
