	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genesis_reset
_genesis_reset:                         ## @genesis_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GMAC_IRQ_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_skge_write8
	movq	_XM_GP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XM_GP_RES_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_write32
	movq	_XM_IMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_XM_IMSK_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_write16
	movq	_XM_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_xm_write32
	movq	_XM_TX_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_xm_write16
	movq	_XM_RX_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_xm_write16
	movq	(%r15), %rax
	movq	_SK_PHY_BCOM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_PHY_BCOM_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_xm_write16
LBB0_2:
	movq	_XM_HSM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_genesis_reset.zero(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_outhash
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_read32
	movl	%eax, %ebx
	movl	(%r12), %edx
	movq	_XM_MD_FTF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%ebx, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xm_write32
	movl	(%r12), %edx
	movq	_XM_MD_FRF@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xm_write32                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @genesis_reset.zero
_genesis_reset.zero:
	.space	32

	.comm	_GMAC_IRQ_MSK,4,2               ## @GMAC_IRQ_MSK
	.comm	_XM_GP_PORT,4,2                 ## @XM_GP_PORT
	.comm	_XM_GP_RES_STAT,4,2             ## @XM_GP_RES_STAT
	.comm	_XM_IMSK,4,2                    ## @XM_IMSK
	.comm	_XM_IMSK_DISABLE,4,2            ## @XM_IMSK_DISABLE
	.comm	_XM_MODE,4,2                    ## @XM_MODE
	.comm	_XM_TX_CMD,4,2                  ## @XM_TX_CMD
	.comm	_XM_RX_CMD,4,2                  ## @XM_RX_CMD
	.comm	_SK_PHY_BCOM,8,3                ## @SK_PHY_BCOM
	.comm	_PHY_BCOM_INT_MASK,4,2          ## @PHY_BCOM_INT_MASK
	.comm	_XM_HSM,4,2                     ## @XM_HSM
	.comm	_XM_MD_FTF,4,2                  ## @XM_MD_FTF
	.comm	_XM_MD_FRF,4,2                  ## @XM_MD_FRF
	.no_dead_strip	_genesis_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genesis_reset
_genesis_reset:                         ; @genesis_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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GMAC_IRQ_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMAC_IRQ_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SK_REG
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_skge_write8
Lloh3:
	adrp	x8, _XM_GP_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XM_GP_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _XM_GP_RES_STAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XM_GP_RES_STAT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_xm_write32
Lloh9:
	adrp	x8, _XM_IMSK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XM_IMSK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _XM_IMSK_DISABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XM_IMSK_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_xm_write16
Lloh15:
	adrp	x22, _XM_MODE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _XM_MODE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_xm_write32
Lloh17:
	adrp	x8, _XM_TX_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XM_TX_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_xm_write16
Lloh20:
	adrp	x8, _XM_RX_CMD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XM_RX_CMD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_xm_write16
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _SK_PHY_BCOM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SK_PHY_BCOM@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh26:
	adrp	x8, _PHY_BCOM_INT_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PHY_BCOM_INT_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #65535
	bl	_xm_write16
LBB0_2:
Lloh29:
	adrp	x8, _XM_HSM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _XM_HSM@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x3, _genesis_reset.zero@PAGE
Lloh33:
	add	x3, x3, _genesis_reset.zero@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_xm_outhash
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_xm_read32
	mov	x21, x0
	ldr	w2, [x22]
Lloh34:
	adrp	x8, _XM_MD_FTF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XM_MD_FTF@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w3, w8, w0
	mov	x0, x20
	mov	x1, x19
	bl	_xm_write32
	ldr	w2, [x22]
Lloh37:
	adrp	x8, _XM_MD_FRF@GOTPAGE
Lloh38:
	ldr	x8, [x8, _XM_MD_FRF@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w3, w8, w21
	mov	x0, x20
	mov	x1, 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	_xm_write32
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @genesis_reset.zero
_genesis_reset.zero:
	.space	32

	.comm	_GMAC_IRQ_MSK,4,2               ; @GMAC_IRQ_MSK
	.comm	_XM_GP_PORT,4,2                 ; @XM_GP_PORT
	.comm	_XM_GP_RES_STAT,4,2             ; @XM_GP_RES_STAT
	.comm	_XM_IMSK,4,2                    ; @XM_IMSK
	.comm	_XM_IMSK_DISABLE,4,2            ; @XM_IMSK_DISABLE
	.comm	_XM_MODE,4,2                    ; @XM_MODE
	.comm	_XM_TX_CMD,4,2                  ; @XM_TX_CMD
	.comm	_XM_RX_CMD,4,2                  ; @XM_RX_CMD
	.comm	_SK_PHY_BCOM,8,3                ; @SK_PHY_BCOM
	.comm	_PHY_BCOM_INT_MASK,4,2          ; @PHY_BCOM_INT_MASK
	.comm	_XM_HSM,4,2                     ; @XM_HSM
	.comm	_XM_MD_FTF,4,2                  ; @XM_MD_FTF
	.comm	_XM_MD_FRF,4,2                  ; @XM_MD_FRF
	.no_dead_strip	_genesis_reset
.subsections_via_symbols
