	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_tx_isr
_rtw_pci_tx_isr:                        ## @rtw_pci_tx_isr
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r15
	movq	_rtw_pci_tx_queue_idx_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %esi
	callq	_rtw_read32
	shrl	$16, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	leaq	(%rbx,%rbx,4), %rdx
	movl	4(%r15,%rdx,4), %ecx
	movl	%eax, %r14d
	subl	%ecx, %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jge	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	subl	%ecx, %r14d
	addl	8(%r15,%rdx,4), %r14d
LBB0_2:
	leaq	(%r15,%rdx,4), %rax
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.3:
	leaq	(%r15,%rdx,4), %r12
	addq	$16, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_dev_kfree_skb_irq
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	movq	%r12, %rdi
	callq	_skb_dequeue
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_rtw_pci_get_tx_data
	movq	%rax, %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	4(%r15), %esi
	movl	(%r13), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_unmap_single
	movq	_RTW_TX_QUEUE_H2C@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -16(%r12)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-4(%r12), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	-8(%r12), %edx
	callq	_avail_desc
	cmpl	$5, %eax
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_skb_get_queue_mapping
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ieee80211_wake_queue
	movl	$0, -16(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_pull
	movq	%r13, %rdi
	callq	_IEEE80211_SKB_CB
	movl	(%rax), %ecx
	movq	_IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_rtw_tx_report_enqueue
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPCREL(%rip), %rdx
	andl	%ecx, %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rdx
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_ieee80211_tx_info_clear_status
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ieee80211_tx_status_irqsafe
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtw_pci_tx_queue_idx_addr,8,3  ## @rtw_pci_tx_queue_idx_addr
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_RTW_TX_QUEUE_H2C,8,3           ## @RTW_TX_QUEUE_H2C
	.comm	_IEEE80211_TX_CTL_REQ_TX_STATUS,4,2 ## @IEEE80211_TX_CTL_REQ_TX_STATUS
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_NOACK_TRANSMITTED,4,2 ## @IEEE80211_TX_STAT_NOACK_TRANSMITTED
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.no_dead_strip	_rtw_pci_tx_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_pci_tx_isr
_rtw_pci_tx_isr:                        ; @rtw_pci_tx_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x22, [x1, #8]
Lloh0:
	adrp	x8, _rtw_pci_tx_queue_idx_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rtw_pci_tx_queue_idx_addr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, x2, lsl #2]
	bl	_rtw_read32
	ubfx	w9, w0, #16, #12
	mov	w8, #20
	madd	x10, x19, x8, x22
	ldr	w8, [x10, #4]!
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	subs	w28, w9, w8
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #20
	madd	x8, x19, x8, x22
	ldr	w8, [x8, #8]
	add	w28, w28, w8
LBB0_2:
	cbz	w28, LBB0_12
; %bb.3:
	mov	w8, #20
	madd	x26, x19, x8, x22
	add	x23, x26, #16
	add	x9, x26, #12
	add	x8, x26, #8
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
Lloh3:
	adrp	x22, _PCI_DMA_TODEVICE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh5:
	adrp	x27, _RTW_TX_QUEUE_H2C@GOTPAGE
Lloh6:
	ldr	x27, [x27, _RTW_TX_QUEUE_H2C@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_dev_kfree_skb_irq
	cbz	w28, LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w28, w28, #1
	mov	x0, x23
	bl	_skb_dequeue
	mov	x24, x0
	bl	_rtw_pci_get_tx_data
	mov	x25, x0
	ldr	w0, [x20]
	ldr	w1, [x25, #4]
	ldr	w2, [x24]
	ldr	w3, [x22]
	bl	_pci_unmap_single
	ldr	x8, [x27]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	cbz	w8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [x8]
	bl	_avail_desc
	cmp	w0, #5
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_skb_get_queue_mapping
	mov	x1, x0
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_ieee80211_wake_queue
	str	wzr, [x26]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x24
	bl	_skb_pull
	mov	x0, x24
	bl	_IEEE80211_SKB_CB
	ldr	w8, [x0]
Lloh7:
	adrp	x9, _IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_TX_CTL_REQ_TX_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x24
	bl	_rtw_tx_report_enqueue
	cbnz	w28, LBB0_5
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
Lloh13:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh15:
	adrp	x10, _IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IEEE80211_TX_STAT_NOACK_TRANSMITTED@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	bl	_ieee80211_tx_info_clear_status
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_ieee80211_tx_status_irqsafe
	cbnz	w28, LBB0_5
LBB0_12:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_rtw_pci_tx_queue_idx_addr,8,3  ; @rtw_pci_tx_queue_idx_addr
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_RTW_TX_QUEUE_H2C,8,3           ; @RTW_TX_QUEUE_H2C
	.comm	_IEEE80211_TX_CTL_REQ_TX_STATUS,4,2 ; @IEEE80211_TX_CTL_REQ_TX_STATUS
	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_STAT_NOACK_TRANSMITTED,4,2 ; @IEEE80211_TX_STAT_NOACK_TRANSMITTED
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.no_dead_strip	_rtw_pci_tx_isr
.subsections_via_symbols
