	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_stop
_smsc911x_stop:                         ## @smsc911x_stop
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_INT_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_smsc911x_reg_read
	movq	_INT_CFG_IRQ_EN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_smsc911x_reg_write
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	%r14, %rdi
	callq	_napi_disable
	movq	_RX_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smsc911x_reg_read
	addl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_smsc911x_tx_update_txcounters
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
	movq	(%rbx), %rdi
	callq	_phy_disconnect
	movq	$0, (%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_netif_carrier_off
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_SMSC_TRACE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_CFG,4,2                    ## @INT_CFG
	.comm	_INT_CFG_IRQ_EN_,4,2            ## @INT_CFG_IRQ_EN_
	.comm	_RX_DROP,4,2                    ## @RX_DROP
	.comm	_ifdown,4,2                     ## @ifdown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interface stopped"

	.no_dead_strip	_smsc911x_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_stop
_smsc911x_stop:                         ; @smsc911x_stop
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _INT_CFG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INT_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_smsc911x_reg_read
Lloh2:
	adrp	x8, _INT_CFG_IRQ_EN_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_CFG_IRQ_EN_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc911x_reg_write
	mov	x0, x20
	bl	_netif_stop_queue
	mov	x0, x19
	bl	_napi_disable
Lloh5:
	adrp	x8, _RX_DROP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RX_DROP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc911x_reg_read
	ldr	w8, [x20, #12]
	add	w8, w8, w0
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_smsc911x_tx_update_txcounters
	ldr	w0, [x20, #8]
	mov	x1, x20
	bl	_free_irq
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
	ldr	x0, [x20]
	bl	_phy_disconnect
	str	xzr, [x20]
LBB0_2:
	mov	x0, x20
	bl	_netif_carrier_off
Lloh8:
	adrp	x8, _ifdown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_CFG,4,2                    ; @INT_CFG
	.comm	_INT_CFG_IRQ_EN_,4,2            ; @INT_CFG_IRQ_EN_
	.comm	_RX_DROP,4,2                    ; @RX_DROP
	.comm	_ifdown,4,2                     ; @ifdown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface stopped"

	.no_dead_strip	_smsc911x_stop
.subsections_via_symbols
