	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_up                    ## -- Begin function emac_mac_up
	.p2align	4, 0x90
_emac_mac_up:                           ## @emac_mac_up
	.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, %rbx
	movq	32(%rdi), %r14
	callq	_emac_mac_rx_tx_ring_reset_all
	movq	%rbx, %rdi
	callq	_emac_mac_config
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_emac_mac_rx_descs_refill
	movq	_PHY_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rsi
	movl	%eax, (%rsi)
	movq	_emac_adjust_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_phy_connect_direct
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_phy_attached_print
	movq	_DIS_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	movq	_EMAC_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movl	24(%rbx), %edi
	movq	_EMAC_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	8(%rbx), %rdi
	callq	_phy_start
	movq	%rbx, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_netif_start_queue
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_POLL,4,2                   ## @PHY_POLL
	.comm	_emac_adjust_link,4,2           ## @emac_adjust_link
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ## @PHY_INTERFACE_MODE_SGMII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not connect phy\n"

	.comm	_DIS_INT,8,3                    ## @DIS_INT
	.comm	_EMAC_INT_STATUS,8,3            ## @EMAC_INT_STATUS
	.comm	_EMAC_INT_MASK,8,3              ## @EMAC_INT_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_up                    ; -- Begin function emac_mac_up
	.p2align	2
_emac_mac_up:                           ; @emac_mac_up
	.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
	ldr	x19, [x0, #32]
	bl	_emac_mac_rx_tx_ring_reset_all
	mov	x0, x20
	bl	_emac_mac_config
	mov	x0, x20
	mov	x1, x20
	bl	_emac_mac_rx_descs_refill
Lloh0:
	adrp	x8, _PHY_POLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_POLL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [x20, #8]
	str	w8, [x1]
Lloh3:
	adrp	x8, _emac_adjust_link@GOTPAGE
Lloh4:
	ldr	x8, [x8, _emac_adjust_link@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_phy_connect_direct
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_3
LBB0_2:
	ldr	x0, [x20, #8]
	mov	x1, #0
	bl	_phy_attached_print
Lloh11:
	adrp	x8, _DIS_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIS_INT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mvn	w0, w8
	ldr	x8, [x20, #16]
Lloh14:
	adrp	x9, _EMAC_INT_STATUS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EMAC_INT_STATUS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20, #24]
	ldr	x8, [x20, #16]
Lloh17:
	adrp	x9, _EMAC_INT_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EMAC_INT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x20, #8]
	bl	_phy_start
	mov	x0, x20
	bl	_napi_enable
	mov	x0, x19
	bl	_netif_start_queue
LBB0_3:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_POLL,4,2                   ; @PHY_POLL
	.comm	_emac_adjust_link,4,2           ; @emac_adjust_link
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ; @PHY_INTERFACE_MODE_SGMII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not connect phy\n"

	.comm	_DIS_INT,8,3                    ; @DIS_INT
	.comm	_EMAC_INT_STATUS,8,3            ; @EMAC_INT_STATUS
	.comm	_EMAC_INT_MASK,8,3              ; @EMAC_INT_MASK
.subsections_via_symbols
