	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_resume                  ## -- Begin function stmmac_resume
	.p2align	4, 0x90
_stmmac_resume:                         ## @stmmac_resume
	.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, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	4(%rbx), %edi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	40(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stmmac_pmt
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	$0, 32(%rbx)
	jmp	LBB0_7
LBB0_3:
	movl	4(%rbx), %edi
	callq	_pinctrl_pm_select_default_state
	movq	24(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_clk_prepare_enable
	movq	24(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_clk_prepare_enable
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_clk_prepare_enable
LBB0_5:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_stmmac_mdio_reset
LBB0_7:
	movq	%r14, %rdi
	callq	_netif_device_attach
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_stmmac_reset_queues_param
	movq	%rbx, %rdi
	callq	_stmmac_clear_descriptors
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_stmmac_hw_setup
	movq	%rbx, %rdi
	callq	_stmmac_init_coalesce
	movq	%r14, %rdi
	callq	_stmmac_set_rx_mode
	movq	%rbx, %rdi
	callq	_stmmac_enable_all_queues
	movq	%rbx, %rdi
	callq	_stmmac_start_all_queues
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	4(%rbx), %edi
	callq	_device_may_wakeup
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	(%rbx), %edi
	callq	_phylink_start
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_9:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_phylink_mac_change
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stmmac_resume                  ; -- Begin function stmmac_resume
	.p2align	2
_stmmac_resume:                         ; @stmmac_resume
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_device_may_wakeup
	cbz	x0, LBB0_3
; %bb.2:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w1, [x19, #40]
	mov	x0, x19
	mov	w2, #0
	bl	_stmmac_pmt
	mov	x0, x21
	bl	_mutex_unlock
	str	xzr, [x19, #32]
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_pinctrl_pm_select_default_state
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #16]
	bl	_clk_prepare_enable
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	bl	_clk_prepare_enable
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_clk_prepare_enable
LBB0_5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_stmmac_mdio_reset
LBB0_7:
	mov	x0, x20
	bl	_netif_device_attach
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_stmmac_reset_queues_param
	mov	x0, x19
	bl	_stmmac_clear_descriptors
	mov	x0, x20
	mov	w1, #0
	bl	_stmmac_hw_setup
	mov	x0, x19
	bl	_stmmac_init_coalesce
	mov	x0, x20
	bl	_stmmac_set_rx_mode
	mov	x0, x19
	bl	_stmmac_enable_all_queues
	mov	x0, x19
	bl	_stmmac_start_all_queues
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19, #4]
	bl	_device_may_wakeup
	cbnz	x0, LBB0_9
; %bb.8:
	bl	_rtnl_lock
	ldr	w0, [x19]
	bl	_phylink_start
	bl	_rtnl_unlock
LBB0_9:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_phylink_mac_change
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
