	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_mac_link_up
_stmmac_mac_link_up:                    ## @stmmac_mac_link_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movl	(%rdi), %edi
	callq	_to_net_dev
	movl	%eax, %edi
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	24(%rax), %esi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_stmmac_mac_set
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_phy_init_eee
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_stmmac_eee_init
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_stmmac_set_eee_pls             ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stmmac_mac_link_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_mac_link_up
_stmmac_mac_link_up:                    ; @stmmac_mac_link_up
	.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	x20, x3
	ldr	w0, [x0]
	bl	_to_net_dev
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x0, #24]
	mov	w2, #1
	bl	_stmmac_mac_set
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	bl	_phy_init_eee
	lsr	x8, x0, #63
	eor	w8, w8, #0x1
	str	w8, [x19]
	mov	x0, x19
	bl	_stmmac_eee_init
	str	w0, [x19, #8]
	ldr	w1, [x19, #4]
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stmmac_set_eee_pls
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stmmac_mac_link_up
.subsections_via_symbols
