	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_shutdown_nic
_jme_shutdown_nic:                      ## @jme_shutdown_nic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_jme_linkstat_from_phy
	movq	_PHY_LINK_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_jme_stop_irq
	movq	_JME_TIMER2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TMCSR_EN@GOTPCREL(%rip), %rax
	movl	$16777214, %edx                 ## imm = 0xFFFFFE
	orl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_jwrite32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_LINK_UP,4,2                ## @PHY_LINK_UP
	.comm	_JME_TIMER2,4,2                 ## @JME_TIMER2
	.comm	_TMCSR_EN,4,2                   ## @TMCSR_EN
	.no_dead_strip	_jme_shutdown_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_shutdown_nic
_jme_shutdown_nic:                      ; @jme_shutdown_nic
	.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
	bl	_jme_linkstat_from_phy
Lloh0:
	adrp	x8, _PHY_LINK_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_LINK_UP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_jme_stop_irq
Lloh3:
	adrp	x8, _JME_TIMER2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JME_TIMER2@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TMCSR_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TMCSR_EN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
	orr	w2, w8, #0xfffffe
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jwrite32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_LINK_UP,4,2                ; @PHY_LINK_UP
	.comm	_JME_TIMER2,4,2                 ; @JME_TIMER2
	.comm	_TMCSR_EN,4,2                   ; @TMCSR_EN
	.no_dead_strip	_jme_shutdown_nic
.subsections_via_symbols
