	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_stop
_rtl8180_stop:                          ## @rtl8180_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, %r15
	movq	8(%rdi), %r14
	callq	_rtl8180_int_disable
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread8
	movq	_RTL818X_CMD_TX_ENABLE@GOTPCREL(%rip), %rcx
	movq	_RTL818X_CMD_RX_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_iowrite8
	movq	16(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movq	8(%r14), %rsi
	movq	_RTL818X_EEPROM_CMD_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rtl818x_iowrite8
	movq	8(%r14), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread8
	movq	8(%r14), %rsi
	addq	$4, %rsi
	movq	_RTL818X_CONFIG4_VCOOFF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	8(%r14), %rsi
	movq	_RTL818X_EEPROM_CMD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rtl818x_iowrite8
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_free_irq
	movq	%r15, %rdi
	callq	_rtl8180_free_rx_ring
	cmpl	$0, (%r15)
	js	LBB0_3
## %bb.1:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rtl8180_free_tx_ring
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_CMD_TX_ENABLE,4,2      ## @RTL818X_CMD_TX_ENABLE
	.comm	_RTL818X_CMD_RX_ENABLE,4,2      ## @RTL818X_CMD_RX_ENABLE
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ## @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_CONFIG4_VCOOFF,4,2     ## @RTL818X_CONFIG4_VCOOFF
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ## @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8180_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_stop
_rtl8180_stop:                          ; @rtl8180_stop
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_rtl8180_int_disable
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	mov	x0, x20
	bl	_rtl818x_ioread8
Lloh0:
	adrp	x8, _RTL818X_CMD_TX_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL818X_CMD_TX_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RTL818X_CMD_RX_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RTL818X_CMD_RX_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x1, [x20, #8]
Lloh6:
	adrp	x8, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	mov	x0, x20
	bl	_rtl818x_ioread8
	ldr	x8, [x20, #8]
	add	x1, x8, #4
Lloh9:
	adrp	x8, _RTL818X_CONFIG4_VCOOFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTL818X_CONFIG4_VCOOFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x1, [x20, #8]
Lloh12:
	adrp	x8, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x19
	bl	_rtl8180_free_rx_ring
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	w20, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_rtl8180_free_tx_ring
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL818X_CMD_TX_ENABLE,4,2      ; @RTL818X_CMD_TX_ENABLE
	.comm	_RTL818X_CMD_RX_ENABLE,4,2      ; @RTL818X_CMD_RX_ENABLE
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ; @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_CONFIG4_VCOOFF,4,2     ; @RTL818X_CONFIG4_VCOOFF
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ; @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8180_stop
.subsections_via_symbols
