	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_pci_flush
_rtl_pci_flush:                         ## @rtl_pci_flush
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.3:
	decl	%ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	testl	%ebx, %ebx
	js	LBB0_1
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r13d
	jae	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_skb_queue_len
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_BEACON_QUEUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_TXCMD_QUEUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_ERFOFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_is_hal_stop
	testq	%rax, %rax
	jne	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$198, %r14d
	jg	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	testl	%ebx, %ebx
	jns	LBB0_6
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,4,2 ## @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_BEACON_QUEUE,4,2               ## @BEACON_QUEUE
	.comm	_TXCMD_QUEUE,4,2                ## @TXCMD_QUEUE
	.comm	_ERFOFF,8,3                     ## @ERFOFF
	.no_dead_strip	_rtl_pci_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_pci_flush
_rtl_pci_flush:                         ; @rtl_pci_flush
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x23
	bl	_rtl_pcipriv
	mov	x21, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_mac
	ldr	x8, [x0]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL_PCI_MAX_TX_QUEUE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w23, w8, #1
	b.lt	LBB0_1
; %bb.3:
	mov	w24, #0
Lloh3:
	adrp	x25, _BEACON_QUEUE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BEACON_QUEUE@GOTPAGEOFF]
Lloh5:
	adrp	x26, _TXCMD_QUEUE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TXCMD_QUEUE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _ERFOFF@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ERFOFF@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w23, w23, #1
	tbnz	w23, #31, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w19, w23
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	add	x0, x8, w23, uxtw #2
	bl	_skb_queue_len
	ldr	w8, [x25]
	ldr	w9, [x26]
	cmp	w0, #0
	ccmp	w23, w8, #4, ne
	ccmp	w23, w9, #4, ne
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x20]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_is_hal_stop
	cbnz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #198
	b.gt	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	tbz	w23, #31, LBB0_5
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_PCI_MAX_TX_QUEUE_COUNT,4,2 ; @RTL_PCI_MAX_TX_QUEUE_COUNT
	.comm	_BEACON_QUEUE,4,2               ; @BEACON_QUEUE
	.comm	_TXCMD_QUEUE,4,2                ; @TXCMD_QUEUE
	.comm	_ERFOFF,8,3                     ; @ERFOFF
	.no_dead_strip	_rtl_pci_flush
.subsections_via_symbols
