	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lmc_running_reset
_lmc_running_reset:                     ## @lmc_running_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_to_sc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_lmc_trace
	movq	_csr_intr@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_LMC_CSR_WRITE
	movq	%rbx, %rdi
	callq	_lmc_dec_reset
	movq	%rbx, %rdi
	callq	_lmc_reset
	movq	%rbx, %rdi
	callq	_lmc_softreset
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*8(%rax)
	movq	24(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movq	$0, 16(%rbx)
	incl	8(%rbx)
	movq	_TULIP_DEFAULT_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_LMC_CSR_WRITE
	movq	_TULIP_CMD_TXRUN@GOTPCREL(%rip), %rax
	movq	_TULIP_CMD_RXRUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	4(%rbx), %edx
	movl	%edx, 4(%rbx)
	movq	_csr_command@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LMC_CSR_WRITE
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lmc_trace                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lmc_running_reset in"

	.comm	_csr_intr,4,2                   ## @csr_intr
	.comm	_TULIP_DEFAULT_INTR_MASK,4,2    ## @TULIP_DEFAULT_INTR_MASK
	.comm	_TULIP_CMD_TXRUN,4,2            ## @TULIP_CMD_TXRUN
	.comm	_TULIP_CMD_RXRUN,4,2            ## @TULIP_CMD_RXRUN
	.comm	_csr_command,4,2                ## @csr_command
L_.str.1:                               ## @.str.1
	.asciz	"lmc_running_reset_out"

	.no_dead_strip	_lmc_running_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lmc_running_reset
_lmc_running_reset:                     ; @lmc_running_reset
	.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, x0
	bl	_dev_to_sc
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lmc_trace
Lloh2:
	adrp	x21, _csr_intr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _csr_intr@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_LMC_CSR_WRITE
	mov	x0, x20
	bl	_lmc_dec_reset
	mov	x0, x20
	bl	_lmc_reset
	mov	x0, x20
	bl	_lmc_softreset
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	w1, #1
	blr	x8
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, #0
	blr	x8
	mov	x0, x19
	bl	_netif_wake_queue
	str	xzr, [x20, #16]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh4:
	adrp	x8, _TULIP_DEFAULT_INTR_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TULIP_DEFAULT_INTR_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	str	w2, [x20]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_LMC_CSR_WRITE
Lloh7:
	adrp	x8, _TULIP_CMD_TXRUN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TULIP_CMD_TXRUN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _TULIP_CMD_RXRUN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TULIP_CMD_RXRUN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #4]
	orr	w2, w8, w9
	str	w2, [x20, #4]
Lloh13:
	adrp	x8, _csr_command@GOTPAGE
Lloh14:
	ldr	x8, [x8, _csr_command@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LMC_CSR_WRITE
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, 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	_lmc_trace
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lmc_running_reset in"

	.comm	_csr_intr,4,2                   ; @csr_intr
	.comm	_TULIP_DEFAULT_INTR_MASK,4,2    ; @TULIP_DEFAULT_INTR_MASK
	.comm	_TULIP_CMD_TXRUN,4,2            ; @TULIP_CMD_TXRUN
	.comm	_TULIP_CMD_RXRUN,4,2            ; @TULIP_CMD_RXRUN
	.comm	_csr_command,4,2                ; @csr_command
l_.str.1:                               ; @.str.1
	.asciz	"lmc_running_reset_out"

	.no_dead_strip	_lmc_running_reset
.subsections_via_symbols
