	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_pci_tx_chk_waitq
__rtl_pci_tx_chk_waitq:                 ## @_rtl_pci_tx_chk_waitq
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_pcipriv
	movl	%eax, %edi
	callq	_rtl_pcidev
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 48(%r15)
	je	LBB0_15
## %bb.1:
	movq	%r14, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 40(%rax)
	je	LBB0_5
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 32(%rax)
	je	LBB0_3
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%rax)
	jne	LBB0_15
LBB0_5:
	addq	$8, -48(%rbp)                   ## 8-byte Folded Spill
	movl	$7, %r12d
	leaq	-112(%rbp), %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	subq	$1, %r12
	jb	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	_ac_to_hwq@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r12d, %edi
	callq	_rtl_tid_to_ac
	cmpl	$0, 8(%r15)
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%r14,%rax,8), %rax
	shlq	$4, %rax
	leaq	(%rcx,%rax), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	addq	$8, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	*(%rax)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, 8(%r15)
	movq	%r14, %rbx
	jne	LBB0_14
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_ERFON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock
	leaq	(,%r12,4), %rbx
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r13
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_queue_len
	subq	%rax, %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %r13
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_skb_dequeue
	movq	%rax, %r13
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	__rtl_update_earlymode_info
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ac_to_hwq,8,3                  ## @ac_to_hwq
	.comm	_ERFON,8,3                      ## @ERFON
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.no_dead_strip	__rtl_pci_tx_chk_waitq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_pci_tx_chk_waitq
__rtl_pci_tx_chk_waitq:                 ; @_rtl_pci_tx_chk_waitq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_pcipriv
	bl	_rtl_pcidev
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	ldr	w8, [x20, #48]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
LBB0_6:
	add	x24, x20, #8
	mov	w8, #7
Lloh0:
	adrp	x22, _ERFON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ERFON@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_spin_unlock
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	sub	x8, x25, #1
	cbz	x25, LBB0_3
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x25, x8
Lloh2:
	adrp	x8, _ac_to_hwq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ac_to_hwq@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x8]
	mov	x0, x25
	bl	_rtl_tid_to_ac
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x26, x0, lsl #3]
	add	x28, x8, x9, lsl #4
	add	x26, x28, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x2, x27
	blr	x8
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x24
	bl	_spin_lock
	ldr	x8, [x21]
	add	x0, x8, x25, lsl #2
	bl	_skb_queue_empty
	cbnz	w0, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x27, [x28]
	mov	x0, x26
	bl	_skb_queue_len
	ldr	x8, [x23]
	sub	x9, x27, x0
	cmp	x9, x8
	b.le	LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x21]
	add	x0, x8, x25, lsl #2
	bl	_skb_dequeue
	mov	x27, x0
	mov	x0, x24
	bl	_spin_unlock
	mov	x0, x27
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x27
	mov	x3, x25
	bl	__rtl_update_earlymode_info
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ac_to_hwq,8,3                  ; @ac_to_hwq
	.comm	_ERFON,8,3                      ; @ERFON
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.no_dead_strip	__rtl_pci_tx_chk_waitq
.subsections_via_symbols
