	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_suspend                 ## -- Begin function stmmac_suspend
	.p2align	4, 0x90
_stmmac_suspend:                        ## @stmmac_suspend
	.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
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	32(%r15), %edi
	xorl	%esi, %esi
	callq	_phylink_mac_change
	movq	%r15, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_netif_device_detach
	movq	%r15, %rdi
	callq	_stmmac_stop_all_queues
	movq	%r15, %rdi
	callq	_stmmac_disable_all_queues
	movq	%r15, %rdi
	callq	_stmmac_stop_all_dma
	movl	24(%r15), %edi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	36(%r15), %edx
	movl	40(%r15), %esi
	movq	%r15, %rdi
	callq	_stmmac_pmt
	movl	$1, (%r15)
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	32(%r15), %edi
	callq	_phylink_stop
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	28(%r15), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stmmac_mac_set
	movl	24(%r15), %edi
	callq	_pinctrl_pm_select_sleep_state
	movq	16(%r15), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_clk_disable_unprepare
	movq	16(%r15), %rax
LBB0_6:
	movq	8(%rax), %rdi
	callq	_clk_disable_unprepare
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	callq	_clk_disable_unprepare
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_suspend                 ; -- Begin function stmmac_suspend
	.p2align	2
_stmmac_suspend:                        ; @stmmac_suspend
	.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
	bl	_dev_get_drvdata
	mov	x21, x0
	bl	_netdev_priv
	cbz	x21, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w0, [x19, #32]
	mov	w1, #0
	bl	_phylink_mac_change
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x21
	bl	_netif_device_detach
	mov	x0, x19
	bl	_stmmac_stop_all_queues
	mov	x0, x19
	bl	_stmmac_disable_all_queues
	mov	x0, x19
	bl	_stmmac_stop_all_dma
	ldr	w0, [x19, #24]
	bl	_device_may_wakeup
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w2, w1, [x19, #36]
	mov	x0, x19
	bl	_stmmac_pmt
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
	bl	_rtnl_lock
	ldr	w0, [x19, #32]
	bl	_phylink_stop
	bl	_rtnl_unlock
	mov	x0, x20
	bl	_mutex_lock
	ldr	w1, [x19, #28]
	mov	x0, x19
	mov	w2, #0
	bl	_stmmac_mac_set
	ldr	w0, [x19, #24]
	bl	_pinctrl_pm_select_sleep_state
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_clk_disable_unprepare
	ldr	x8, [x19, #16]
LBB0_6:
	ldr	x0, [x8, #8]
	bl	_clk_disable_unprepare
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	bl	_clk_disable_unprepare
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_8:
	mov	w0, #0
	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	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
.subsections_via_symbols
