	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_reset                 ## -- Begin function emac_mac_reset
	.p2align	4, 0x90
_emac_mac_reset:                        ## @emac_mac_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_emac_mac_stop
	movq	_EMAC_DMA_MAS_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movq	_SOFT_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_emac_reg_update32
	movl	$100, %edi
	movl	$150, %esi
	callq	_usleep_range
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movq	_INT_RD_CLR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_emac_reg_update32              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_DMA_MAS_CTRL,8,3          ## @EMAC_DMA_MAS_CTRL
	.comm	_SOFT_RST,4,2                   ## @SOFT_RST
	.comm	_INT_RD_CLR_EN,4,2              ## @INT_RD_CLR_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_reset                 ; -- Begin function emac_mac_reset
	.p2align	2
_emac_mac_reset:                        ; @emac_mac_reset
	.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	_emac_mac_stop
Lloh0:
	adrp	x20, _EMAC_DMA_MAS_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EMAC_DMA_MAS_CTRL@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
Lloh2:
	adrp	x8, _SOFT_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOFT_RST@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_emac_reg_update32
	mov	w0, #100
	mov	w1, #150
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
Lloh5:
	adrp	x8, _INT_RD_CLR_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INT_RD_CLR_EN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emac_reg_update32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_DMA_MAS_CTRL,8,3          ; @EMAC_DMA_MAS_CTRL
	.comm	_SOFT_RST,4,2                   ; @SOFT_RST
	.comm	_INT_RD_CLR_EN,4,2              ; @INT_RD_CLR_EN
.subsections_via_symbols
