	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_drv_remove
_smsc911x_drv_remove:                   ## @smsc911x_drv_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_platform_get_drvdata
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_BUG_ON
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_SMSC_TRACE
	movq	%r14, %rdi
	callq	_unregister_netdev
	movl	4(%rbx), %edi
	callq	_mdiobus_unregister
	movl	4(%rbx), %edi
	callq	_mdiobus_free
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
LBB0_2:
	movl	(%rax), %r12d
	movq	%rax, %rdi
	callq	_resource_size
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_release_mem_region
	movl	(%rbx), %edi
	callq	_iounmap
	movq	%r15, %rdi
	callq	_smsc911x_disable_resources
	movq	%r15, %rdi
	callq	_smsc911x_free_resources
	movq	%r14, %rdi
	callq	_free_netdev
	movq	%r15, %rdi
	callq	_pm_runtime_put
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifdown,4,2                     ## @ifdown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopping driver"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"smsc911x-memory"

	.no_dead_strip	_smsc911x_drv_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_drv_remove
_smsc911x_drv_remove:                   ; @smsc911x_drv_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
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh0:
	adrp	x8, _ifdown@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_SMSC_TRACE
	mov	x0, x20
	bl	_unregister_netdev
	ldr	w0, [x21, #4]
	bl	_mdiobus_unregister
	ldr	w0, [x21, #4]
	bl	_mdiobus_free
Lloh5:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_platform_get_resource_byname
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
LBB0_2:
	ldr	w22, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x22
	bl	_release_mem_region
	ldr	w0, [x21]
	bl	_iounmap
	mov	x0, x19
	bl	_smsc911x_disable_resources
	mov	x0, x19
	bl	_smsc911x_free_resources
	mov	x0, x20
	bl	_free_netdev
	mov	x0, x19
	bl	_pm_runtime_put
	mov	x0, x19
	bl	_pm_runtime_disable
	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 AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ifdown,4,2                     ; @ifdown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopping driver"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"smsc911x-memory"

	.no_dead_strip	_smsc911x_drv_remove
.subsections_via_symbols
