	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_powerup                   ## -- Begin function xgbe_powerup
	.p2align	4, 0x90
_xgbe_powerup:                          ## @xgbe_powerup
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DBGPR
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_XGMAC_IOCTL_CONTEXT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%rbx)
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xgbe_napi_enable
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_XGMAC_DRIVER_CONTEXT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_netif_device_attach
LBB0_6:
	movq	%r14, %rdi
	callq	_netif_tx_start_all_queues
	movq	%rbx, %rdi
	callq	_xgbe_start_timers
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rdi
	callq	_DBGPR
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_alert
	leaq	L_.str.2(%rip), %rdi
	callq	_DBGPR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-->xgbe_powerup\n"

	.comm	_XGMAC_IOCTL_CONTEXT,4,2        ## @XGMAC_IOCTL_CONTEXT
L_.str.1:                               ## @.str.1
	.asciz	"Device is already powered up\n"

L_.str.2:                               ## @.str.2
	.asciz	"<--xgbe_powerup\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XGMAC_DRIVER_CONTEXT,4,2       ## @XGMAC_DRIVER_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_powerup                   ; -- Begin function xgbe_powerup
	.p2align	2
_xgbe_powerup:                          ; @xgbe_powerup
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGPR
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _XGMAC_IOCTL_CONTEXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XGMAC_IOCTL_CONTEXT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_xgbe_napi_enable
	ldr	x8, [x20, #24]
	mov	x0, x20
	blr	x8
	ldr	x8, [x20, #16]
	mov	x0, x20
	blr	x8
Lloh5:
	adrp	x8, _XGMAC_DRIVER_CONTEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XGMAC_DRIVER_CONTEXT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_netif_device_attach
LBB0_5:
	mov	x0, x19
	bl	_netif_tx_start_all_queues
	mov	x0, x20
	bl	_xgbe_start_timers
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGPR
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_alert
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGPR
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-->xgbe_powerup\n"

	.comm	_XGMAC_IOCTL_CONTEXT,4,2        ; @XGMAC_IOCTL_CONTEXT
l_.str.1:                               ; @.str.1
	.asciz	"Device is already powered up\n"

l_.str.2:                               ; @.str.2
	.asciz	"<--xgbe_powerup\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XGMAC_DRIVER_CONTEXT,4,2       ; @XGMAC_DRIVER_CONTEXT
.subsections_via_symbols
