	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_remove
_smsc9420_remove:                       ## @smsc9420_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	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_unregister_netdev
	movl	(%rbx), %edi
	callq	_BUG_ON
	movl	4(%rbx), %edi
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, 20(%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	shll	$2, %esi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	callq	_pci_free_consistent
	movq	8(%rbx), %rdi
	movq	_LAN9420_CPSR_ENDIAN_OFFSET@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	callq	_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r15, %rdi
	callq	_free_netdev
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_disable_device             ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_LAN9420_CPSR_ENDIAN_OFFSET,8,3 ## @LAN9420_CPSR_ENDIAN_OFFSET
	.no_dead_strip	_smsc9420_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_remove
_smsc9420_remove:                       ; @smsc9420_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	_pci_get_drvdata
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_unregister_netdev
	ldr	w0, [x21]
	bl	_BUG_ON
	ldr	w0, [x21, #4]
	bl	_BUG_ON
	ldr	w8, [x21, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x21, #20]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh0:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TX_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TX_RING_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	w1, w8, #2
	ldp	w3, w2, [x21, #16]
	mov	x0, x19
	bl	_pci_free_consistent
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _LAN9420_CPSR_ENDIAN_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LAN9420_CPSR_ENDIAN_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_iounmap
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x20
	bl	_free_netdev
	mov	x0, x19
	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
	b	_pci_disable_device
LBB0_2:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_LAN9420_CPSR_ENDIAN_OFFSET,8,3 ; @LAN9420_CPSR_ENDIAN_OFFSET
	.no_dead_strip	_smsc9420_remove
.subsections_via_symbols
