	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nps_enet_open
_nps_enet_open:                         ## @nps_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movq	_NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CFG_3_RX_IFG_TH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, (%rbx)
	movq	_NPS_ENET_GE_MAC_CFG_3_MAX_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CFG_3_MAX_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	movq	%r14, %rdi
	callq	_nps_enet_hw_disable_control
	movl	8(%rbx), %edi
	movq	_nps_enet_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_napi_enable
	movq	%r14, %rdi
	callq	_nps_enet_hw_reset
	movq	%r14, %rdi
	callq	_nps_enet_hw_enable_control
	movq	%r14, %rdi
	callq	_netif_start_queue
LBB0_2:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH,4,2 ## @NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH
	.comm	_CFG_3_RX_IFG_TH_SHIFT,4,2      ## @CFG_3_RX_IFG_TH_SHIFT
	.comm	_NPS_ENET_GE_MAC_CFG_3_MAX_LEN,4,2 ## @NPS_ENET_GE_MAC_CFG_3_MAX_LEN
	.comm	_CFG_3_MAX_LEN_SHIFT,4,2        ## @CFG_3_MAX_LEN_SHIFT
	.comm	_nps_enet_irq_handler,4,2       ## @nps_enet_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enet-rx-tx"

	.no_dead_strip	_nps_enet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nps_enet_open
_nps_enet_open:                         ; @nps_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
	str	wzr, [x0]
	stp	xzr, xzr, [x0, #16]
Lloh0:
	adrp	x8, _NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CFG_3_RX_IFG_TH_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CFG_3_RX_IFG_TH_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	str	w8, [x0]
Lloh6:
	adrp	x9, _NPS_ENET_GE_MAC_CFG_3_MAX_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NPS_ENET_GE_MAC_CFG_3_MAX_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CFG_3_MAX_LEN_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CFG_3_MAX_LEN_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x0, x19
	bl	_nps_enet_hw_disable_control
	ldr	w0, [x20, #8]
Lloh12:
	adrp	x8, _nps_enet_irq_handler@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nps_enet_irq_handler@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #4
	bl	_napi_enable
	mov	x0, x19
	bl	_nps_enet_hw_reset
	mov	x0, x19
	bl	_nps_enet_hw_enable_control
	mov	x0, x19
	bl	_netif_start_queue
LBB0_2:
	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 AdrpAdd	Lloh15, Lloh16
	.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	_NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH,4,2 ; @NPS_ENET_GE_MAC_CFG_3_RX_IFG_TH
	.comm	_CFG_3_RX_IFG_TH_SHIFT,4,2      ; @CFG_3_RX_IFG_TH_SHIFT
	.comm	_NPS_ENET_GE_MAC_CFG_3_MAX_LEN,4,2 ; @NPS_ENET_GE_MAC_CFG_3_MAX_LEN
	.comm	_CFG_3_MAX_LEN_SHIFT,4,2        ; @CFG_3_MAX_LEN_SHIFT
	.comm	_nps_enet_irq_handler,4,2       ; @nps_enet_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enet-rx-tx"

	.no_dead_strip	_nps_enet_open
.subsections_via_symbols
