	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orion_mdio_remove
_orion_mdio_remove:                     ## @orion_mdio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %r15
	cmpq	$0, (%r15)
	jle	LBB0_2
## %bb.1:
	movq	_MVMDIO_ERR_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_2:
	movq	%r14, %rdi
	callq	_mdiobus_unregister
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_clk_disable_unprepare
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_clk_put
	incq	%rbx
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVMDIO_ERR_INT_MASK,8,3        ## @MVMDIO_ERR_INT_MASK
	.no_dead_strip	_orion_mdio_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orion_mdio_remove
_orion_mdio_remove:                     ; @orion_mdio_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
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
Lloh0:
	adrp	x9, _MVMDIO_ERR_INT_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVMDIO_ERR_INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_2:
	mov	x0, x19
	bl	_mdiobus_unregister
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x19, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x19, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	lsl	x21, x19, #2
	ldr	w0, [x8, x21]
	bl	_clk_disable_unprepare
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21]
	bl	_clk_put
	add	x19, x19, #1
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	x19, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
	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	_MVMDIO_ERR_INT_MASK,8,3        ; @MVMDIO_ERR_INT_MASK
	.no_dead_strip	_orion_mdio_remove
.subsections_via_symbols
