	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_open
_xgene_enet_open:                       ## @xgene_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
	movq	16(%rax), %r15
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_tx_queues
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_xgene_enet_napi_enable
	movq	%r14, %rdi
	callq	_xgene_enet_register_irq
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_phy_start
	jmp	LBB0_6
LBB0_5:
	movq	_PHY_POLL_LINK_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
	movq	%r14, %rdi
	callq	_netif_carrier_off
LBB0_6:
	movq	%rbx, %rdi
	callq	*8(%r15)
	movq	%rbx, %rdi
	callq	*(%r15)
	movq	%r14, %rdi
	callq	_netif_tx_start_all_queues
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_POLL_LINK_OFF,4,2          ## @PHY_POLL_LINK_OFF
	.no_dead_strip	_xgene_enet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_open
_xgene_enet_open:                       ; @xgene_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
	ldr	x21, [x0, #16]
	ldr	w1, [x0, #8]
	mov	x0, x19
	bl	_netif_set_real_num_tx_queues
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_netif_set_real_num_rx_queues
	cbnz	w0, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_xgene_enet_napi_enable
	mov	x0, x19
	bl	_xgene_enet_register_irq
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_phy_start
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _PHY_POLL_LINK_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_POLL_LINK_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_schedule_delayed_work
	mov	x0, x19
	bl	_netif_carrier_off
LBB0_6:
	ldr	x8, [x21, #8]
	mov	x0, x20
	blr	x8
	ldr	x8, [x21]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_netif_tx_start_all_queues
	mov	w0, #0
LBB0_7:
	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_POLL_LINK_OFF,4,2          ; @PHY_POLL_LINK_OFF
	.no_dead_strip	_xgene_enet_open
.subsections_via_symbols
