	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_femac_net_open
_hisi_femac_net_open:                   ## @hisi_femac_net_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_hisi_femac_port_reset
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_hisi_femac_set_hw_mac_addr
	movq	%r14, %rdi
	callq	_hisi_femac_rx_refill
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_netdev_reset_queue
	movq	%rbx, %rdi
	callq	_netif_start_queue
	leaq	16(%r14), %rdi
	callq	_napi_enable
	movq	$0, 8(%r14)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_start
LBB0_2:
	movq	_IRQ_ENA_PORT0_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GLB_IRQ_RAW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_IRQ_ENA_ALL@GOTPCREL(%rip), %rax
	movq	_IRQ_ENA_PORT0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_DEF_INT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hisi_femac_irq_enable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_ENA_PORT0_MASK,4,2         ## @IRQ_ENA_PORT0_MASK
	.comm	_GLB_IRQ_RAW,8,3                ## @GLB_IRQ_RAW
	.comm	_IRQ_ENA_ALL,4,2                ## @IRQ_ENA_ALL
	.comm	_IRQ_ENA_PORT0,4,2              ## @IRQ_ENA_PORT0
	.comm	_DEF_INT_MASK,4,2               ## @DEF_INT_MASK
	.no_dead_strip	_hisi_femac_net_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_femac_net_open
_hisi_femac_net_open:                   ; @hisi_femac_net_open
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_hisi_femac_port_reset
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_hisi_femac_set_hw_mac_addr
	mov	x0, x19
	bl	_hisi_femac_rx_refill
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_netdev_reset_queue
	mov	x0, x20
	bl	_netif_start_queue
	add	x0, x19, #16
	bl	_napi_enable
	str	xzr, [x19, #8]
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_start
LBB0_2:
Lloh0:
	adrp	x8, _IRQ_ENA_PORT0_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_ENA_PORT0_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _GLB_IRQ_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLB_IRQ_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh6:
	adrp	x8, _IRQ_ENA_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_ENA_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IRQ_ENA_PORT0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQ_ENA_PORT0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _DEF_INT_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DEF_INT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_hisi_femac_irq_enable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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	_IRQ_ENA_PORT0_MASK,4,2         ; @IRQ_ENA_PORT0_MASK
	.comm	_GLB_IRQ_RAW,8,3                ; @GLB_IRQ_RAW
	.comm	_IRQ_ENA_ALL,4,2                ; @IRQ_ENA_ALL
	.comm	_IRQ_ENA_PORT0,4,2              ; @IRQ_ENA_PORT0
	.comm	_DEF_INT_MASK,4,2               ; @DEF_INT_MASK
	.no_dead_strip	_hisi_femac_net_open
.subsections_via_symbols
