	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_powerup
_emac_powerup:                          ## @emac_powerup
	.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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_EMAC_RX_CTL_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	callq	_readl
	orl	$8, %eax
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	_EMAC_MAC_CTL0_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_EMAC_MAC_CTL0_SOFT_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_EMAC_MAC_MCFG_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	andl	$-61, %eax
	leal	52(%rax), %edi
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_EMAC_RX_FBC_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_EMAC_INT_CTL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_EMAC_INT_STA_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$1, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	_emac_setup
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edi
	shll	$16, %ecx
	shll	$8, %edi
	orl	%ecx, %edi
	orl	8(%rax), %edi
	movq	_EMAC_MAC_A1_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	(%r14), %rax
	movl	12(%rax), %ecx
	movl	16(%rax), %edi
	shll	$16, %ecx
	shll	$8, %edi
	orl	%ecx, %edi
	orl	20(%rax), %edi
	movq	_EMAC_MAC_A0_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movl	$1, %edi
	callq	_mdelay
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_RX_CTL_REG,8,3            ## @EMAC_RX_CTL_REG
	.comm	_EMAC_MAC_CTL0_REG,8,3          ## @EMAC_MAC_CTL0_REG
	.comm	_EMAC_MAC_CTL0_SOFT_RESET,4,2   ## @EMAC_MAC_CTL0_SOFT_RESET
	.comm	_EMAC_MAC_MCFG_REG,8,3          ## @EMAC_MAC_MCFG_REG
	.comm	_EMAC_RX_FBC_REG,8,3            ## @EMAC_RX_FBC_REG
	.comm	_EMAC_INT_CTL_REG,8,3           ## @EMAC_INT_CTL_REG
	.comm	_EMAC_INT_STA_REG,8,3           ## @EMAC_INT_STA_REG
	.comm	_EMAC_MAC_A1_REG,8,3            ## @EMAC_MAC_A1_REG
	.comm	_EMAC_MAC_A0_REG,8,3            ## @EMAC_MAC_A0_REG
	.no_dead_strip	_emac_powerup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_powerup
_emac_powerup:                          ; @emac_powerup
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _EMAC_RX_CTL_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EMAC_RX_CTL_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, #0x8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _EMAC_MAC_CTL0_REG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EMAC_MAC_CTL0_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh4:
	adrp	x8, _EMAC_MAC_CTL0_SOFT_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMAC_MAC_CTL0_SOFT_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh7:
	adrp	x21, _EMAC_MAC_MCFG_REG@GOTPAGE
Lloh8:
	ldr	x21, [x21, _EMAC_MAC_MCFG_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	w8, #13
	bfi	w0, w8, #2, #4
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _EMAC_RX_FBC_REG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EMAC_RX_FBC_REG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _EMAC_INT_CTL_REG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EMAC_INT_CTL_REG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh15:
	adrp	x21, _EMAC_INT_STA_REG@GOTPAGE
Lloh16:
	ldr	x21, [x21, _EMAC_INT_STA_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_emac_setup
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	ldr	w8, [x8, #8]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _EMAC_MAC_A1_REG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EMAC_MAC_A1_REG@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
	ldp	w9, w10, [x8, #12]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	ldr	w8, [x8, #20]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _EMAC_MAC_A0_REG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EMAC_MAC_A0_REG@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_mdelay
	mov	w0, #0
	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
	ret
	.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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_RX_CTL_REG,8,3            ; @EMAC_RX_CTL_REG
	.comm	_EMAC_MAC_CTL0_REG,8,3          ; @EMAC_MAC_CTL0_REG
	.comm	_EMAC_MAC_CTL0_SOFT_RESET,4,2   ; @EMAC_MAC_CTL0_SOFT_RESET
	.comm	_EMAC_MAC_MCFG_REG,8,3          ; @EMAC_MAC_MCFG_REG
	.comm	_EMAC_RX_FBC_REG,8,3            ; @EMAC_RX_FBC_REG
	.comm	_EMAC_INT_CTL_REG,8,3           ; @EMAC_INT_CTL_REG
	.comm	_EMAC_INT_STA_REG,8,3           ; @EMAC_INT_STA_REG
	.comm	_EMAC_MAC_A1_REG,8,3            ; @EMAC_MAC_A1_REG
	.comm	_EMAC_MAC_A0_REG,8,3            ; @EMAC_MAC_A0_REG
	.no_dead_strip	_emac_powerup
.subsections_via_symbols
