	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa168_eth_remove
_pxa168_eth_remove:                     ## @pxa168_eth_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	movq	_HASH_ADDR_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %ecx
	callq	_dma_free_coherent
	movq	$0, 16(%rbx)
LBB0_2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_phy_disconnect
LBB0_4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_clk_disable_unprepare
LBB0_6:
	movl	4(%rbx), %edi
	callq	_mdiobus_unregister
	movl	4(%rbx), %edi
	callq	_mdiobus_free
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_cancel_work_sync
	movq	%r14, %rdi
	callq	_free_netdev
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_ADDR_TABLE_SIZE,4,2       ## @HASH_ADDR_TABLE_SIZE
	.no_dead_strip	_pxa168_eth_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa168_eth_remove
_pxa168_eth_remove:                     ; @pxa168_eth_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	_platform_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x2, [x0, #16]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _HASH_ADDR_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_ADDR_TABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x20, #24]
	bl	_dma_free_coherent
	str	xzr, [x20, #16]
LBB0_2:
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_phy_disconnect
LBB0_4:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_clk_disable_unprepare
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_mdiobus_unregister
	ldr	w0, [x20, #4]
	bl	_mdiobus_free
	mov	x0, x19
	bl	_unregister_netdev
	mov	x0, x20
	bl	_cancel_work_sync
	mov	x0, x19
	bl	_free_netdev
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_ADDR_TABLE_SIZE,4,2       ; @HASH_ADDR_TABLE_SIZE
	.no_dead_strip	_pxa168_eth_remove
.subsections_via_symbols
