	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_gmac_reset
_sky2_gmac_reset:                       ## @sky2_gmac_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_GMAC_IRQ_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_sky2_write8
	movq	_GM_MC_ADDR_H1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_GM_MC_ADDR_H2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_GM_MC_ADDR_H3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_GM_MC_ADDR_H4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_gma_write16
	movq	_GM_RX_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gma_read16
	movq	_GM_RXCR_UCF_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_GM_RXCR_MCF_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gma_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMAC_IRQ_MSK,4,2               ## @GMAC_IRQ_MSK
	.comm	_GM_MC_ADDR_H1,4,2              ## @GM_MC_ADDR_H1
	.comm	_GM_MC_ADDR_H2,4,2              ## @GM_MC_ADDR_H2
	.comm	_GM_MC_ADDR_H3,4,2              ## @GM_MC_ADDR_H3
	.comm	_GM_MC_ADDR_H4,4,2              ## @GM_MC_ADDR_H4
	.comm	_GM_RX_CTRL,4,2                 ## @GM_RX_CTRL
	.comm	_GM_RXCR_UCF_ENA,4,2            ## @GM_RXCR_UCF_ENA
	.comm	_GM_RXCR_MCF_ENA,4,2            ## @GM_RXCR_MCF_ENA
	.no_dead_strip	_sky2_gmac_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_gmac_reset
_sky2_gmac_reset:                       ; @sky2_gmac_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	_sky2_write8
Lloh3:
	adrp	x8, _GM_MC_ADDR_H1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GM_MC_ADDR_H1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_gma_write16
Lloh6:
	adrp	x8, _GM_MC_ADDR_H2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GM_MC_ADDR_H2@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_gma_write16
Lloh9:
	adrp	x8, _GM_MC_ADDR_H3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GM_MC_ADDR_H3@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_gma_write16
Lloh12:
	adrp	x8, _GM_MC_ADDR_H4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GM_MC_ADDR_H4@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_gma_write16
Lloh15:
	adrp	x21, _GM_RX_CTRL@GOTPAGE
Lloh16:
	ldr	x21, [x21, _GM_RX_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_gma_read16
Lloh17:
	adrp	x8, _GM_RXCR_UCF_ENA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GM_RXCR_UCF_ENA@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _GM_RXCR_MCF_ENA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GM_RXCR_MCF_ENA@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w3, w8, w9
	ldr	w2, [x21]
	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	_gma_write16
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_GMAC_IRQ_MSK,4,2               ; @GMAC_IRQ_MSK
	.comm	_GM_MC_ADDR_H1,4,2              ; @GM_MC_ADDR_H1
	.comm	_GM_MC_ADDR_H2,4,2              ; @GM_MC_ADDR_H2
	.comm	_GM_MC_ADDR_H3,4,2              ; @GM_MC_ADDR_H3
	.comm	_GM_MC_ADDR_H4,4,2              ; @GM_MC_ADDR_H4
	.comm	_GM_RX_CTRL,4,2                 ; @GM_RX_CTRL
	.comm	_GM_RXCR_UCF_ENA,4,2            ; @GM_RXCR_UCF_ENA
	.comm	_GM_RXCR_MCF_ENA,4,2            ; @GM_RXCR_MCF_ENA
	.no_dead_strip	_sky2_gmac_reset
.subsections_via_symbols
