	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genesis_stop
_genesis_stop:                          ## @genesis_stop
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movl	(%rdi), %r14d
	movq	_XM_MMU_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_xm_read16
	movq	_XM_MMU_ENA_RX@GOTPCREL(%rip), %rdx
	movq	_XM_MMU_ENA_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_xm_write16
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_genesis_reset
	movq	_B3_PA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_PA_CLR_TO_TX1@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PA_CLR_TO_TX2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_skge_write16
	movq	_TX_MFF_CTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_MFF_CLR_MAC_RST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skge_write16
	movl	$-999, %r12d                    ## imm = 0xFC19
	movq	_MFF_SET_MAC_RST@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skge_write16
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skge_read16
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r12), %eax
	testl	%r12d, %r12d
	movl	%eax, %r12d
	jne	LBB0_4
LBB0_6:
	movq	(%r13), %rax
	movq	_SK_PHY_XMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_B2_GP_IO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_skge_read32
	testl	%r14d, %r14d
	movq	_GP_DIR_2@GOTPCREL(%rip), %rcx
	cmoveq	_GP_DIR_0@GOTPCREL(%rip), %rcx
	movq	_GP_IO_2@GOTPCREL(%rip), %rdx
	cmoveq	_GP_IO_0@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	movl	(%rdx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_skge_write32
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_skge_read32
LBB0_8:
	movq	_XM_MMU_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_xm_read16
	movq	_XM_MMU_ENA_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_XM_MMU_ENA_RX@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_xm_write16
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xm_read16                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XM_MMU_CMD,4,2                 ## @XM_MMU_CMD
	.comm	_XM_MMU_ENA_RX,4,2              ## @XM_MMU_ENA_RX
	.comm	_XM_MMU_ENA_TX,4,2              ## @XM_MMU_ENA_TX
	.comm	_B3_PA_CTRL,4,2                 ## @B3_PA_CTRL
	.comm	_PA_CLR_TO_TX1,4,2              ## @PA_CLR_TO_TX1
	.comm	_PA_CLR_TO_TX2,4,2              ## @PA_CLR_TO_TX2
	.comm	_TX_MFF_CTRL1,4,2               ## @TX_MFF_CTRL1
	.comm	_MFF_CLR_MAC_RST,4,2            ## @MFF_CLR_MAC_RST
	.comm	_MFF_SET_MAC_RST,4,2            ## @MFF_SET_MAC_RST
	.comm	_SK_PHY_XMAC,8,3                ## @SK_PHY_XMAC
	.comm	_B2_GP_IO,4,2                   ## @B2_GP_IO
	.comm	_GP_DIR_0,4,2                   ## @GP_DIR_0
	.comm	_GP_IO_0,4,2                    ## @GP_IO_0
	.comm	_GP_DIR_2,4,2                   ## @GP_DIR_2
	.comm	_GP_IO_2,4,2                    ## @GP_IO_2
	.no_dead_strip	_genesis_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genesis_stop
_genesis_stop:                          ; @genesis_stop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x0, #8]
	ldr	w20, [x0]
Lloh0:
	adrp	x22, _XM_MMU_CMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XM_MMU_CMD@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_xm_read16
Lloh2:
	adrp	x23, _XM_MMU_ENA_RX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _XM_MMU_ENA_RX@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x24, _XM_MMU_ENA_TX@GOTPAGE
Lloh5:
	ldr	x24, [x24, _XM_MMU_ENA_TX@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w3, w0, w8
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_xm_write16
	mov	x0, x19
	mov	x1, x20
	bl	_genesis_reset
Lloh6:
	adrp	x8, _B3_PA_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B3_PA_CTRL@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PA_CLR_TO_TX1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PA_CLR_TO_TX1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _PA_CLR_TO_TX2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PA_CLR_TO_TX2@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write16
Lloh13:
	adrp	x21, _TX_MFF_CTRL1@GOTPAGE
Lloh14:
	ldr	x21, [x21, _TX_MFF_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh15:
	adrp	x8, _MFF_CLR_MAC_RST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MFF_CLR_MAC_RST@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write16
	mov	w25, #-999
Lloh18:
	adrp	x26, _MFF_SET_MAC_RST@GOTPAGE
Lloh19:
	ldr	x26, [x26, _MFF_SET_MAC_RST@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	ldr	w2, [x26]
	mov	x0, x19
	bl	_skge_write16
	ldr	w1, [x21]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x19
	bl	_skge_read16
	ldr	w8, [x26]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w25, #0, #4, ne
	add	w25, w25, #1
	b.ne	LBB0_1
; %bb.2:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _SK_PHY_XMAC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SK_PHY_XMAC@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh23:
	adrp	x21, _B2_GP_IO@GOTPAGE
Lloh24:
	ldr	x21, [x21, _B2_GP_IO@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_skge_read32
Lloh25:
	adrp	x8, _GP_DIR_0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GP_DIR_0@GOTPAGEOFF]
Lloh27:
	adrp	x9, _GP_DIR_2@GOTPAGE
Lloh28:
	ldr	x9, [x9, _GP_DIR_2@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh29:
	adrp	x9, _GP_IO_0@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GP_IO_0@GOTPAGEOFF]
Lloh31:
	adrp	x10, _GP_IO_2@GOTPAGE
Lloh32:
	ldr	x10, [x10, _GP_IO_2@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	bl	_skge_write32
	ldr	w1, [x21]
	mov	x0, x19
	bl	_skge_read32
LBB0_4:
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_xm_read16
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	bic	w3, w0, w8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_xm_write16
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_xm_read16
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_XM_MMU_CMD,4,2                 ; @XM_MMU_CMD
	.comm	_XM_MMU_ENA_RX,4,2              ; @XM_MMU_ENA_RX
	.comm	_XM_MMU_ENA_TX,4,2              ; @XM_MMU_ENA_TX
	.comm	_B3_PA_CTRL,4,2                 ; @B3_PA_CTRL
	.comm	_PA_CLR_TO_TX1,4,2              ; @PA_CLR_TO_TX1
	.comm	_PA_CLR_TO_TX2,4,2              ; @PA_CLR_TO_TX2
	.comm	_TX_MFF_CTRL1,4,2               ; @TX_MFF_CTRL1
	.comm	_MFF_CLR_MAC_RST,4,2            ; @MFF_CLR_MAC_RST
	.comm	_MFF_SET_MAC_RST,4,2            ; @MFF_SET_MAC_RST
	.comm	_SK_PHY_XMAC,8,3                ; @SK_PHY_XMAC
	.comm	_B2_GP_IO,4,2                   ; @B2_GP_IO
	.comm	_GP_DIR_0,4,2                   ; @GP_DIR_0
	.comm	_GP_IO_0,4,2                    ; @GP_IO_0
	.comm	_GP_DIR_2,4,2                   ; @GP_DIR_2
	.comm	_GP_IO_2,4,2                    ; @GP_IO_2
	.no_dead_strip	_genesis_stop
.subsections_via_symbols
