	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_disable
_rtl_disable:                           ## @rtl_disable
	.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
	movq	_RTL8152_UNPLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_drop_queued_tx             ## TAILCALL
LBB0_1:
	movq	_MCU_TYPE_PLA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_PLA_RCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_read_dword
	movq	_RCR_ACPT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_ocp_write_dword
	movq	%r15, %rdi
	callq	_rtl_drop_queued_tx
	movq	_RTL8152_MAX_TX@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_usb_kill_urb
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rxdy_gated_en
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_PLA_OOB_CTRL@GOTPCREL(%rip), %r12
	movq	_FIFO_EMPTY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_ocp_read_byte
	notl	%eax
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_5
LBB0_7:
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_PLA_TCR0@GOTPCREL(%rip), %r12
	movq	_TCR0_TX_EMPTY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_ocp_read_word
	testl	%eax, (%r13)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	_rtl_stop_rx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8152_nic_reset              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8152_UNPLUG,4,2             ## @RTL8152_UNPLUG
	.comm	_MCU_TYPE_PLA,4,2               ## @MCU_TYPE_PLA
	.comm	_PLA_RCR,4,2                    ## @PLA_RCR
	.comm	_RCR_ACPT_ALL,4,2               ## @RCR_ACPT_ALL
	.comm	_RTL8152_MAX_TX,4,2             ## @RTL8152_MAX_TX
	.comm	_PLA_OOB_CTRL,4,2               ## @PLA_OOB_CTRL
	.comm	_FIFO_EMPTY,4,2                 ## @FIFO_EMPTY
	.comm	_PLA_TCR0,4,2                   ## @PLA_TCR0
	.comm	_TCR0_TX_EMPTY,4,2              ## @TCR0_TX_EMPTY
	.no_dead_strip	_rtl_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_disable
_rtl_disable:                           ; @rtl_disable
	.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	x19, x0
Lloh0:
	adrp	x8, _RTL8152_UNPLUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8152_UNPLUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_rtl_drop_queued_tx
LBB0_2:
Lloh3:
	adrp	x20, _MCU_TYPE_PLA@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MCU_TYPE_PLA@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _PLA_RCR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PLA_RCR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_read_dword
Lloh7:
	adrp	x8, _RCR_ACPT_ALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RCR_ACPT_ALL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w3, w0, w8
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ocp_write_dword
	mov	x0, x19
	bl	_rtl_drop_queued_tx
Lloh10:
	adrp	x21, _RTL8152_MAX_TX@GOTPAGE
Lloh11:
	ldr	x21, [x21, _RTL8152_MAX_TX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x22, lsl #2]
	bl	_usb_kill_urb
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_rxdy_gated_en
	mov	w21, #1000
Lloh12:
	adrp	x22, _PLA_OOB_CTRL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _PLA_OOB_CTRL@GOTPAGEOFF]
Lloh14:
	adrp	x23, _FIFO_EMPTY@GOTPAGE
Lloh15:
	ldr	x23, [x23, _FIFO_EMPTY@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ocp_read_byte
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	w21, w21, #1
	b.ne	LBB0_6
LBB0_8:
	mov	w21, #1000
Lloh16:
	adrp	x22, _PLA_TCR0@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PLA_TCR0@GOTPAGEOFF]
Lloh18:
	adrp	x23, _TCR0_TX_EMPTY@GOTPAGE
Lloh19:
	ldr	x23, [x23, _TCR0_TX_EMPTY@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ocp_read_word
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	w21, w21, #1
	b.ne	LBB0_9
LBB0_11:
	mov	x0, x19
	bl	_rtl_stop_rx
	mov	x0, x19
	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
	b	_rtl8152_nic_reset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8152_UNPLUG,4,2             ; @RTL8152_UNPLUG
	.comm	_MCU_TYPE_PLA,4,2               ; @MCU_TYPE_PLA
	.comm	_PLA_RCR,4,2                    ; @PLA_RCR
	.comm	_RCR_ACPT_ALL,4,2               ; @RCR_ACPT_ALL
	.comm	_RTL8152_MAX_TX,4,2             ; @RTL8152_MAX_TX
	.comm	_PLA_OOB_CTRL,4,2               ; @PLA_OOB_CTRL
	.comm	_FIFO_EMPTY,4,2                 ; @FIFO_EMPTY
	.comm	_PLA_TCR0,4,2                   ; @PLA_TCR0
	.comm	_TCR0_TX_EMPTY,4,2              ; @TCR0_TX_EMPTY
	.no_dead_strip	_rtl_disable
.subsections_via_symbols
