	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_remove
_au1000_remove:                         ## @au1000_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_unregister_netdev
	movl	40(%r13), %edi
	callq	_mdiobus_unregister
	movl	40(%r13), %edi
	callq	_mdiobus_free
	movq	_NUM_RX_DMA@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_au1000_ReleaseDB
	movl	(%r12), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_NUM_TX_DMA@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_au1000_ReleaseDB
	movl	(%r12), %eax
	jmp	LBB0_9
LBB0_10:
	movq	_MAX_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	_NUM_TX_BUFFS@GOTPCREL(%rip), %rcx
	movq	_NUM_RX_BUFFS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addl	(%rcx), %esi
	imull	(%rax), %esi
	movq	16(%r13), %rdx
	movl	12(%r13), %ecx
	movq	_DMA_ATTR_NON_CONSISTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	callq	_dma_free_attrs
	movl	8(%r13), %edi
	callq	_iounmap
	movl	4(%r13), %edi
	callq	_iounmap
	movl	(%r13), %edi
	callq	_iounmap
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_platform_get_resource
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	movq	%r14, %rdi
	callq	_free_netdev
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_RX_DMA,4,2                 ## @NUM_RX_DMA
	.comm	_NUM_TX_DMA,4,2                 ## @NUM_TX_DMA
	.comm	_MAX_BUF_SIZE,4,2               ## @MAX_BUF_SIZE
	.comm	_NUM_TX_BUFFS,4,2               ## @NUM_TX_BUFFS
	.comm	_NUM_RX_BUFFS,4,2               ## @NUM_RX_BUFFS
	.comm	_DMA_ATTR_NON_CONSISTENT,4,2    ## @DMA_ATTR_NON_CONSISTENT
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.no_dead_strip	_au1000_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_remove
_au1000_remove:                         ; @au1000_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x19
	bl	_unregister_netdev
	ldr	w0, [x21, #40]
	bl	_mdiobus_unregister
	ldr	w0, [x21, #40]
	bl	_mdiobus_free
Lloh0:
	adrp	x22, _NUM_RX_DMA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_RX_DMA@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #32]
	ldr	x1, [x9, x23, lsl #3]
	cbz	x1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_au1000_ReleaseDB
	ldr	w8, [x22]
	b	LBB0_2
LBB0_5:
Lloh2:
	adrp	x22, _NUM_TX_DMA@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NUM_TX_DMA@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x23, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #24]
	ldr	x1, [x9, x23, lsl #3]
	cbz	x1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_au1000_ReleaseDB
	ldr	w8, [x22]
	b	LBB0_7
LBB0_10:
Lloh4:
	adrp	x8, _MAX_BUF_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_BUF_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x9, _NUM_TX_BUFFS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NUM_TX_BUFFS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _NUM_RX_BUFFS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NUM_RX_BUFFS@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	add	w9, w10, w9
	mul	w1, w9, w8
	ldr	x2, [x21, #16]
	ldr	w3, [x21, #12]
Lloh13:
	adrp	x8, _DMA_ATTR_NON_CONSISTENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_ATTR_NON_CONSISTENT@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_dma_free_attrs
	ldr	w0, [x21, #8]
	bl	_iounmap
	ldr	w0, [x21, #4]
	bl	_iounmap
	ldr	w0, [x21]
	bl	_iounmap
Lloh16:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh17:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #2
	bl	_platform_get_resource
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_release_mem_region
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_release_mem_region
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_platform_get_resource
	ldr	w20, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
	mov	x0, x19
	bl	_free_netdev
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_RX_DMA,4,2                 ; @NUM_RX_DMA
	.comm	_NUM_TX_DMA,4,2                 ; @NUM_TX_DMA
	.comm	_MAX_BUF_SIZE,4,2               ; @MAX_BUF_SIZE
	.comm	_NUM_TX_BUFFS,4,2               ; @NUM_TX_BUFFS
	.comm	_NUM_RX_BUFFS,4,2               ; @NUM_RX_BUFFS
	.comm	_DMA_ATTR_NON_CONSISTENT,4,2    ; @DMA_ATTR_NON_CONSISTENT
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.no_dead_strip	_au1000_remove
.subsections_via_symbols
