	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fe_open
_fe_open:                               ## @fe_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_fe_init_dma
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_fe_free_dma
	jmp	LBB0_10
LBB0_2:
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_FE_TX_WB_DDONE@GOTPCREL(%rip), %rax
	movq	_FE_RX_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_FE_TX_DMA_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_FE_FLAG_RX_2B_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	je	LBB0_4
## %bb.3:
	movq	_FE_RX_2B_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %edi
	movq	8(%rbx), %rax
	orl	(%rax), %edi
	movq	_FE_REG_PDMA_GLO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fe_reg_w32
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_6:
	movq	8(%rbx), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_netif_carrier_on
LBB0_9:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_napi_enable
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	orl	4(%rax), %edi
	callq	_fe_int_enable
	movq	%r14, %rdi
	callq	_netif_start_queue
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_TX_WB_DDONE,4,2             ## @FE_TX_WB_DDONE
	.comm	_FE_RX_DMA_EN,4,2               ## @FE_RX_DMA_EN
	.comm	_FE_TX_DMA_EN,4,2               ## @FE_TX_DMA_EN
	.comm	_FE_FLAG_RX_2B_OFFSET,4,2       ## @FE_FLAG_RX_2B_OFFSET
	.comm	_FE_RX_2B_OFFSET,4,2            ## @FE_RX_2B_OFFSET
	.comm	_FE_REG_PDMA_GLO_CFG,4,2        ## @FE_REG_PDMA_GLO_CFG
	.no_dead_strip	_fe_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fe_open
_fe_open:                               ; @fe_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	x21, x0
	bl	_fe_init_dma
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_fe_free_dma
	b	LBB0_8
LBB0_2:
	add	x22, x21, #32
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _FE_TX_WB_DDONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_TX_WB_DDONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FE_RX_DMA_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FE_RX_DMA_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _FE_TX_DMA_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FE_TX_DMA_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
Lloh9:
	adrp	x10, _FE_FLAG_RX_2B_OFFSET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FE_FLAG_RX_2B_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _FE_RX_2B_OFFSET@GOTPAGE
Lloh13:
	ldr	x11, [x11, _FE_RX_2B_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
	ldr	x9, [x21, #8]
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh15:
	adrp	x8, _FE_REG_PDMA_GLO_CFG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FE_REG_PDMA_GLO_CFG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_fe_reg_w32
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_7:
	add	x0, x21, #16
	bl	_napi_enable
	ldr	x8, [x21, #8]
	ldp	w9, w8, [x8, #4]
	orr	w0, w8, w9
	bl	_fe_int_enable
	mov	x0, x19
	bl	_netif_start_queue
LBB0_8:
	mov	x0, x20
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_TX_WB_DDONE,4,2             ; @FE_TX_WB_DDONE
	.comm	_FE_RX_DMA_EN,4,2               ; @FE_RX_DMA_EN
	.comm	_FE_TX_DMA_EN,4,2               ; @FE_TX_DMA_EN
	.comm	_FE_FLAG_RX_2B_OFFSET,4,2       ; @FE_FLAG_RX_2B_OFFSET
	.comm	_FE_RX_2B_OFFSET,4,2            ; @FE_RX_2B_OFFSET
	.comm	_FE_REG_PDMA_GLO_CFG,4,2        ; @FE_REG_PDMA_GLO_CFG
	.no_dead_strip	_fe_open
.subsections_via_symbols
