	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_remove
_macb_remove:                           ## @macb_remove
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_platform_get_drvdata
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_phy_disconnect
LBB0_3:
	movl	24(%r15), %edi
	callq	_mdiobus_unregister
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_of_phy_deregister_fixed_link
LBB0_6:
	movq	$0, (%r14)
	movl	24(%r15), %edi
	callq	_mdiobus_free
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_pm_runtime_disable
	movq	%rbx, %rdi
	callq	_pm_runtime_dont_use_autosuspend
	movq	%rbx, %rdi
	callq	_pm_runtime_suspended
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	20(%r15), %edi
	callq	_clk_disable_unprepare
	movl	20(%r15), %edi
	callq	_clk_unregister
	movl	16(%r15), %edi
	callq	_clk_disable_unprepare
	movl	12(%r15), %edi
	callq	_clk_disable_unprepare
	movl	8(%r15), %edi
	callq	_clk_disable_unprepare
	movl	4(%r15), %edi
	callq	_clk_disable_unprepare
	movq	%rbx, %rdi
	callq	_pm_runtime_set_suspended
LBB0_8:
	movl	(%r15), %edi
	callq	_of_node_put
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_macb_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_remove
_macb_remove:                           ; @macb_remove
	.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	x20, x0
	ldr	x22, [x0]
	bl	_platform_get_drvdata
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_phy_disconnect
LBB0_3:
	ldr	w0, [x21, #24]
	bl	_mdiobus_unregister
	cbz	x22, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_of_phy_deregister_fixed_link
LBB0_6:
	str	xzr, [x19]
	ldr	w0, [x21, #24]
	bl	_mdiobus_free
	mov	x0, x19
	bl	_unregister_netdev
	mov	x0, x20
	bl	_pm_runtime_disable
	mov	x0, x20
	bl	_pm_runtime_dont_use_autosuspend
	mov	x0, x20
	bl	_pm_runtime_suspended
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x21, #20]
	bl	_clk_disable_unprepare
	ldr	w0, [x21, #20]
	bl	_clk_unregister
	ldr	w0, [x21, #16]
	bl	_clk_disable_unprepare
	ldr	w0, [x21, #12]
	bl	_clk_disable_unprepare
	ldr	w0, [x21, #8]
	bl	_clk_disable_unprepare
	ldr	w0, [x21, #4]
	bl	_clk_disable_unprepare
	mov	x0, x20
	bl	_pm_runtime_set_suspended
LBB0_8:
	ldr	w0, [x21]
	bl	_of_node_put
	mov	x0, x19
	bl	_free_netdev
LBB0_9:
	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
	.no_dead_strip	_macb_remove
.subsections_via_symbols
