	.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_insert
_rtl_pci_tx_chk_waitq_insert:           ## @rtl_pci_tx_chk_waitq_insert
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_get_tid
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_get_fc
	movl	%eax, %r12d
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_16
## %bb.1:
	cmpl	$0, 24(%r14)
	je	LBB0_16
## %bb.2:
	movq	(%r15), %r15
	movl	%r12d, %edi
	callq	_ieee80211_is_nullfunc
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:
	movl	%r12d, %edi
	callq	_ieee80211_is_qos_nullfunc
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	movl	%r12d, %edi
	callq	_ieee80211_is_pspoll
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	(%r15), %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rax
	movq	_RTL_AGG_OPERATIONAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.9:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	__rtl_mac_to_hwqueue
	movq	_VO_QUEUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_15
## %bb.10:
	cmpq	$7, %r15
	ja	LBB0_15
## %bb.11:
	movq	16(%r14), %rax
	cmpl	$0, (%rax,%r15,4)
	movl	$0, %eax
	je	LBB0_16
## %bb.12:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	shlq	$2, %r15
	addq	8(%r14), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	$1, %eax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_AGG_OPERATIONAL,8,3        ## @RTL_AGG_OPERATIONAL
	.comm	_VO_QUEUE,8,3                   ## @VO_QUEUE
	.no_dead_strip	_rtl_pci_tx_chk_waitq_insert
.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_insert
_rtl_pci_tx_chk_waitq_insert:           ; @rtl_pci_tx_chk_waitq_insert
	.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, x2
	mov	x24, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_get_tid
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_get_fc
	cbz	x24, LBB0_10
; %bb.1:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_10
; %bb.2:
	mov	x23, x0
	ldr	x24, [x24]
	bl	_ieee80211_is_nullfunc
	cbnz	x0, LBB0_10
; %bb.3:
	mov	x0, x23
	bl	_ieee80211_is_qos_nullfunc
	cbnz	x0, LBB0_10
; %bb.4:
	mov	x0, x23
	bl	_ieee80211_is_pspoll
	cbnz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x24]
	ldr	x8, [x8, x21, lsl #3]
Lloh0:
	adrp	x9, _RTL_AGG_OPERATIONAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL_AGG_OPERATIONAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x22
	mov	x1, x19
	bl	__rtl_mac_to_hwqueue
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _VO_QUEUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VO_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_11
; %bb.7:
	cmp	x21, #7
	b.hi	LBB0_11
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x21, lsl #2]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	add	x0, x8, x21, lsl #2
	mov	x1, x19
	bl	_skb_queue_tail
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_AGG_OPERATIONAL,8,3        ; @RTL_AGG_OPERATIONAL
	.comm	_VO_QUEUE,8,3                   ; @VO_QUEUE
	.no_dead_strip	_rtl_pci_tx_chk_waitq_insert
.subsections_via_symbols
