	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netx_eth_open
_netx_eth_open:                         ## @netx_eth_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_netx_eth_interrupt@GOTPCREL(%rip), %rsi
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	shll	$8, %ecx
	orl	(%rax), %ecx
	shll	$16, %edx
	movl	12(%rax), %edi
	shll	$24, %edi
	orl	%edx, %edi
	movq	_NETX_XPEC_RAM_START_OFS@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	orl	%ecx, %edi
	movq	_ETH_MAC_4321@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	(%rbx), %rax
	movl	20(%rax), %edi
	shll	$8, %edi
	orl	16(%rax), %edi
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movq	_ETH_MAC_65@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	_LOCAL_CONFIG_LINK_STATUS_IRQ_EN@GOTPCREL(%rip), %rax
	movq	_LOCAL_CONFIG_CON_LO_IRQ_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_LOCAL_CONFIG_CON_HI_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_LOCAL_CONFIG_IND_LO_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_LOCAL_CONFIG_IND_HI_IRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movq	_ETH_MAC_LOCAL_CONFIG@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_netif_msg_link
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_mii_check_media
	movq	%rbx, %rdi
	callq	_netif_start_queue
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_netx_eth_interrupt,4,2         ## @netx_eth_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_NETX_XPEC_RAM_START_OFS,8,3    ## @NETX_XPEC_RAM_START_OFS
	.comm	_ETH_MAC_4321,8,3               ## @ETH_MAC_4321
	.comm	_ETH_MAC_65,8,3                 ## @ETH_MAC_65
	.comm	_LOCAL_CONFIG_LINK_STATUS_IRQ_EN,4,2 ## @LOCAL_CONFIG_LINK_STATUS_IRQ_EN
	.comm	_LOCAL_CONFIG_CON_LO_IRQ_EN,4,2 ## @LOCAL_CONFIG_CON_LO_IRQ_EN
	.comm	_LOCAL_CONFIG_CON_HI_IRQ_EN,4,2 ## @LOCAL_CONFIG_CON_HI_IRQ_EN
	.comm	_LOCAL_CONFIG_IND_LO_IRQ_EN,4,2 ## @LOCAL_CONFIG_IND_LO_IRQ_EN
	.comm	_LOCAL_CONFIG_IND_HI_IRQ_EN,4,2 ## @LOCAL_CONFIG_IND_HI_IRQ_EN
	.comm	_ETH_MAC_LOCAL_CONFIG,8,3       ## @ETH_MAC_LOCAL_CONFIG
	.no_dead_strip	_netx_eth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netx_eth_open
_netx_eth_open:                         ; @netx_eth_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
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldp	w3, w0, [x19, #8]
Lloh3:
	adrp	x1, _netx_eth_interrupt@GOTPAGE
Lloh4:
	ldr	x1, [x1, _netx_eth_interrupt@GOTPAGEOFF]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w0, w9, w8, lsl #24
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x21, _NETX_XPEC_RAM_START_OFS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NETX_XPEC_RAM_START_OFS@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh10:
	adrp	x10, _ETH_MAC_4321@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ETH_MAC_4321@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #16]
	orr	w0, w9, w8, lsl #8
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
Lloh13:
	adrp	x10, _ETH_MAC_65@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ETH_MAC_65@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
Lloh16:
	adrp	x8, _LOCAL_CONFIG_LINK_STATUS_IRQ_EN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOCAL_CONFIG_LINK_STATUS_IRQ_EN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _LOCAL_CONFIG_CON_LO_IRQ_EN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LOCAL_CONFIG_CON_LO_IRQ_EN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _LOCAL_CONFIG_CON_HI_IRQ_EN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _LOCAL_CONFIG_CON_HI_IRQ_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh24:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _LOCAL_CONFIG_IND_LO_IRQ_EN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LOCAL_CONFIG_IND_LO_IRQ_EN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _LOCAL_CONFIG_IND_HI_IRQ_EN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _LOCAL_CONFIG_IND_HI_IRQ_EN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
Lloh31:
	adrp	x10, _ETH_MAC_LOCAL_CONFIG@GOTPAGE
Lloh32:
	ldr	x10, [x10, _ETH_MAC_LOCAL_CONFIG@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel
	mov	x0, x20
	bl	_netif_msg_link
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_mii_check_media
	mov	x0, x19
	bl	_netif_start_queue
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_netx_eth_interrupt,4,2         ; @netx_eth_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_NETX_XPEC_RAM_START_OFS,8,3    ; @NETX_XPEC_RAM_START_OFS
	.comm	_ETH_MAC_4321,8,3               ; @ETH_MAC_4321
	.comm	_ETH_MAC_65,8,3                 ; @ETH_MAC_65
	.comm	_LOCAL_CONFIG_LINK_STATUS_IRQ_EN,4,2 ; @LOCAL_CONFIG_LINK_STATUS_IRQ_EN
	.comm	_LOCAL_CONFIG_CON_LO_IRQ_EN,4,2 ; @LOCAL_CONFIG_CON_LO_IRQ_EN
	.comm	_LOCAL_CONFIG_CON_HI_IRQ_EN,4,2 ; @LOCAL_CONFIG_CON_HI_IRQ_EN
	.comm	_LOCAL_CONFIG_IND_LO_IRQ_EN,4,2 ; @LOCAL_CONFIG_IND_LO_IRQ_EN
	.comm	_LOCAL_CONFIG_IND_HI_IRQ_EN,4,2 ; @LOCAL_CONFIG_IND_HI_IRQ_EN
	.comm	_ETH_MAC_LOCAL_CONFIG,8,3       ; @ETH_MAC_LOCAL_CONFIG
	.no_dead_strip	_netx_eth_open
.subsections_via_symbols
