	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_remove
_mv88e6xxx_remove:                      ## @mv88e6xxx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mv88e6xxx_hwtstamp_free
	movq	%rbx, %rdi
	callq	_mv88e6xxx_ptp_free
LBB0_2:
	movq	%rbx, %rdi
	callq	_mv88e6xxx_phy_destroy
	movq	%rbx, %rdi
	callq	_mv88e6xxx_unregister_switch
	movq	%rbx, %rdi
	callq	_mv88e6xxx_mdios_unregister
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g1_vtu_prob_irq_free
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g1_atu_prob_irq_free
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g2_irq_free
LBB0_4:
	cmpq	$0, (%rbx)
	jle	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mv88e6xxx_g1_irq_free          ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mv88e6xxx_irq_poll_free        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mv88e6xxx_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_remove
_mv88e6xxx_remove:                      ; @mv88e6xxx_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_dev_get_drvdata
	ldr	x19, [x0]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mv88e6xxx_hwtstamp_free
	mov	x0, x19
	bl	_mv88e6xxx_ptp_free
LBB0_2:
	mov	x0, x19
	bl	_mv88e6xxx_phy_destroy
	mov	x0, x19
	bl	_mv88e6xxx_unregister_switch
	mov	x0, x19
	bl	_mv88e6xxx_mdios_unregister
	mov	x0, x19
	bl	_mv88e6xxx_g1_vtu_prob_irq_free
	mov	x0, x19
	bl	_mv88e6xxx_g1_atu_prob_irq_free
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mv88e6xxx_g2_irq_free
LBB0_4:
	ldr	x8, [x19]
	mov	x0, x19
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_g1_irq_free
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_irq_poll_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mv88e6xxx_remove
.subsections_via_symbols
