	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_open
_fec_enet_open:                         ## @fec_enet_open
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_fec_enet_alloc_buffers
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	$0, 16(%rbx)
	movl	$0, (%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_fec_restart
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_mii_do_cmd
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_mii_do_cmd
	movq	_phy_cmd_config@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mii_do_cmd
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_schedule
	cmpq	$0, 16(%rbx)
	je	LBB0_3
LBB0_5:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mii_do_cmd
LBB0_6:
	movl	$1, (%rbx)
	movq	%r14, %rdi
	callq	_netif_start_queue
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_cmd_config,4,2             ## @phy_cmd_config
	.no_dead_strip	_fec_enet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_open
_fec_enet_open:                         ; @fec_enet_open
	.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, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_fec_enet_alloc_buffers
	cbnz	w0, LBB0_6
; %bb.1:
	str	xzr, [x20, #16]
	str	wzr, [x20]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	bl	_fec_restart
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_mii_do_cmd
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_mii_do_cmd
Lloh0:
	adrp	x8, _phy_cmd_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy_cmd_config@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mii_do_cmd
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mii_do_cmd
LBB0_5:
	str	w21, [x20]
	mov	x0, x19
	bl	_netif_start_queue
	mov	w0, #0
	str	w21, [x20, #4]
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_cmd_config,4,2             ; @phy_cmd_config
	.no_dead_strip	_fec_enet_open
.subsections_via_symbols
