	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmc_reset
_lmc_reset:                             ## @lmc_reset
	.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, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_lmc_trace
	movq	_LMC_MII16_FIFO_RESET@GOTPCREL(%rip), %r14
	movl	20(%rbx), %ecx
	orl	(%r14), %ecx
	movl	%ecx, 20(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_lmc_mii_writereg
	movl	(%r14), %ecx
	notl	%ecx
	andl	20(%rbx), %ecx
	movl	%ecx, 20(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_lmc_mii_writereg
	movq	_LMC_GEP_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_lmc_gpio_mkoutput
	movl	(%r14), %edx
	notl	%edx
	andl	16(%rbx), %edx
	movl	%edx, 16(%rbx)
	movq	_csr_gp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LMC_CSR_WRITE
	movl	$50, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_lmc_gpio_mkinput
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	incl	4(%rbx)
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lmc_trace                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lmc_reset in"

	.comm	_LMC_MII16_FIFO_RESET,4,2       ## @LMC_MII16_FIFO_RESET
	.comm	_LMC_GEP_RESET,4,2              ## @LMC_GEP_RESET
	.comm	_csr_gp,4,2                     ## @csr_gp
L_.str.1:                               ## @.str.1
	.asciz	"lmc_reset out"

	.no_dead_strip	_lmc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmc_reset
_lmc_reset:                             ; @lmc_reset
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_lmc_trace
Lloh2:
	adrp	x20, _LMC_MII16_FIFO_RESET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _LMC_MII16_FIFO_RESET@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x19, #20]
	orr	w3, w9, w8
	str	w3, [x19, #20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_lmc_mii_writereg
	ldr	w8, [x20]
	ldr	w9, [x19, #20]
	bic	w3, w9, w8
	str	w3, [x19, #20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_lmc_mii_writereg
Lloh4:
	adrp	x20, _LMC_GEP_RESET@GOTPAGE
Lloh5:
	ldr	x20, [x20, _LMC_GEP_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lmc_gpio_mkoutput
	ldr	w8, [x20]
	ldr	w9, [x19, #16]
	bic	w2, w9, w8
	str	w2, [x19, #16]
Lloh6:
	adrp	x8, _csr_gp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _csr_gp@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LMC_CSR_WRITE
	mov	w0, #50
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_lmc_gpio_mkinput
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldp	w0, w8, [x19]
	add	w8, w8, #1
	str	w8, [x19, #4]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lmc_trace
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lmc_reset in"

	.comm	_LMC_MII16_FIFO_RESET,4,2       ; @LMC_MII16_FIFO_RESET
	.comm	_LMC_GEP_RESET,4,2              ; @LMC_GEP_RESET
	.comm	_csr_gp,4,2                     ; @csr_gp
l_.str.1:                               ; @.str.1
	.asciz	"lmc_reset out"

	.no_dead_strip	_lmc_reset
.subsections_via_symbols
