	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgbe_powerdown                 ## -- Begin function xgbe_powerdown
	.p2align	4, 0x90
_xgbe_powerdown:                        ## @xgbe_powerdown
	.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, %r12d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DBGPR
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r14, %r15
	movq	_XGMAC_IOCTL_CONTEXT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.2:
	cmpl	$0, (%r15)
	je	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_alert
	leaq	L_.str.2(%rip), %rdi
	callq	_DBGPR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_XGMAC_DRIVER_CONTEXT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_netif_device_detach
LBB0_6:
	movq	%rbx, %rdi
	callq	_netif_tx_stop_all_queues
	movq	%r15, %rdi
	callq	_xgbe_stop_timers
	movl	8(%r15), %edi
	callq	_flush_workqueue
	movq	%r15, %rdi
	callq	*24(%r15)
	movq	%r15, %rdi
	callq	*16(%r15)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_xgbe_napi_disable
	movl	$1, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rdi
	callq	_DBGPR
LBB0_7:
	movl	%ebx, %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_powerdown\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"<--xgbe_powerdown\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_powerdown                 ; -- Begin function xgbe_powerdown
	.p2align	2
_xgbe_powerdown:                        ; @xgbe_powerdown
	.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	x22, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGPR
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _XGMAC_IOCTL_CONTEXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XGMAC_IOCTL_CONTEXT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_alert
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGPR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x8, _XGMAC_DRIVER_CONTEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XGMAC_DRIVER_CONTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_netif_device_detach
LBB0_6:
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
	mov	x0, x19
	bl	_xgbe_stop_timers
	ldr	w0, [x19, #8]
	bl	_flush_workqueue
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	mov	w1, #0
	bl	_xgbe_napi_disable
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGPR
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-->xgbe_powerdown\n"

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

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

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