	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_remove
_ravb_remove:                           ## @ravb_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
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_RCAR_GEN2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ravb_ptp_stop
LBB0_2:
	movl	(%r15), %edi
	movl	24(%rbx), %esi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	callq	_dma_free_coherent
	movq	_CCC_OPC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CCC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ravb_write
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	movq	%r15, %rdi
	callq	_unregister_netdev
	movq	_RAVB_NC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	callq	_netif_napi_del
	movq	_RAVB_BE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	callq	_netif_napi_del
	movq	%rbx, %rdi
	callq	_ravb_mdio_release
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r15, %rdi
	callq	_free_netdev
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_GEN2,8,3                  ## @RCAR_GEN2
	.comm	_CCC_OPC_RESET,4,2              ## @CCC_OPC_RESET
	.comm	_CCC,4,2                        ## @CCC
	.comm	_RAVB_NC,8,3                    ## @RAVB_NC
	.comm	_RAVB_BE,8,3                    ## @RAVB_BE
	.no_dead_strip	_ravb_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_remove
_ravb_remove:                           ; @ravb_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	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RCAR_GEN2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCAR_GEN2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ravb_ptp_stop
LBB0_2:
	ldr	w0, [x20]
	ldp	w2, w1, [x21, #20]
	ldr	w3, [x21, #16]
	bl	_dma_free_coherent
Lloh3:
	adrp	x8, _CCC_OPC_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCC_OPC_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CCC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ravb_write
	mov	x0, x19
	bl	_pm_runtime_put_sync
	mov	x0, x20
	bl	_unregister_netdev
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _RAVB_NC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RAVB_NC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_netif_napi_del
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _RAVB_BE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RAVB_BE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_netif_napi_del
	mov	x0, x21
	bl	_ravb_mdio_release
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x20
	bl	_free_netdev
	mov	x0, x19
	mov	x1, #0
	bl	_platform_set_drvdata
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_GEN2,8,3                  ; @RCAR_GEN2
	.comm	_CCC_OPC_RESET,4,2              ; @CCC_OPC_RESET
	.comm	_CCC,4,2                        ; @CCC
	.comm	_RAVB_NC,8,3                    ; @RAVB_NC
	.comm	_RAVB_BE,8,3                    ; @RAVB_BE
	.no_dead_strip	_ravb_remove
.subsections_via_symbols
