	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_pci_stop
_rtl_pci_stop:                          ## @rtl_pci_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	%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, %r14
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r13
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	callq	*24(%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	24(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
LBB0_2:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_4:
	movq	%r13, %rdi
	callq	_set_hal_stop
	movl	$1, (%rbx)
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*16(%rax)
	movq	%r12, %rdi
	addq	$20, %rdi
	callq	_cancel_work_sync
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.5:
	movl	$102, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	decl	%ebx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_mdelay
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r15)
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
LBB0_9:
	movl	$1, (%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	cmpl	$0, 16(%r12)
	je	LBB0_10
## %bb.11:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_LED_CTL_POWER_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	$0, (%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_pci_enable_aspm            ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_CTL_POWER_OFF,4,2          ## @LED_CTL_POWER_OFF
	.no_dead_strip	_rtl_pci_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_pci_stop
_rtl_pci_stop:                          ; @rtl_pci_stop
	.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
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
LBB0_2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
LBB0_4:
	mov	x0, x23
	bl	_set_hal_stop
	mov	w23, #1
	str	w23, [x22]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	add	x0, x20, #20
	bl	_cancel_work_sync
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.5:
	mov	w22, #102
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	subs	w22, w22, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_mdelay
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cbnz	w8, LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_spin_lock_irqsave
LBB0_9:
	str	w23, [x21]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _LED_CTL_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LED_CTL_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	wzr, [x21]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	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_pci_enable_aspm
LBB0_11:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_CTL_POWER_OFF,4,2          ; @LED_CTL_POWER_OFF
	.no_dead_strip	_rtl_pci_stop
.subsections_via_symbols
