	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_rx_isr
_rtw_pci_rx_isr:                        ## @rtw_pci_rx_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	(%rsi), %r14
	movq	_RTW_RX_QUEUE_MPDU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rbx
	movq	_RTK_PCI_RXBD_IDX_MPDUQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtw_read32
	shrl	$16, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	(%r14,%rbx,8), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jge	LBB0_2
## %bb.1:
	movl	%eax, %edx
	subl	%ecx, %edx
	addl	4(%r14,%rbx,8), %edx
LBB0_2:
	leaq	(%r14,%rbx,8), %r13
	movl	8(%r14,%rbx,8), %r12d
	testl	%edx, %edx
	je	LBB0_10
## %bb.3:
	leaq	(%r14,%rbx,8), %r14
	addq	$16, %r14
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_pull
	movl	-124(%rbp), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_rtw_rx_stats
	movq	(%r15), %rdi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_ieee80211_rx_irqsafe
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movl	-72(%rbp), %r8d                 ## 4-byte Reload
	callq	_rtw_pci_sync_rx_desc_device
	incl	%r12d
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	cmpl	-12(%r14), %r12d
	movl	$0, %eax
	cmovgel	%eax, %r12d
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	%eax, %edx
	movq	%rbx, %r13
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edx
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_rtw_pci_dma_check
	movq	(%r14), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movl	4(%r15), %edi
	movq	_RTK_PCI_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	callq	_dma_sync_single_for_cpu
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	8(%rbx), %rsi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%r15, %rdi
	leaq	-136(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	*(%rax)
	movq	%r13, %rbx
	movl	-136(%rbp), %r13d
	addl	-76(%rbp), %r13d                ## 4-byte Folded Reload
	addl	-132(%rbp), %r13d
	movl	-128(%rbp), %r15d
	addl	%r13d, %r15d
	movl	%r15d, %edi
	callq	_dev_alloc_skb
	xorl	%edi, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_skb_put_data
	cmpq	$0, -120(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_rtw_fw_c2h_cmd_rx_irqsafe
	jmp	LBB0_8
LBB0_10:
	movl	%r12d, 8(%r13)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	movq	_RTK_PCI_RXBD_IDX_MPDUQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_rtw_write16
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_RX_QUEUE_MPDU,8,3          ## @RTW_RX_QUEUE_MPDU
	.comm	_RTK_PCI_RXBD_IDX_MPDUQ,4,2     ## @RTK_PCI_RXBD_IDX_MPDUQ
	.comm	_RTK_PCI_RX_BUF_SIZE,4,2        ## @RTK_PCI_RX_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx routine starvation\n"

	.no_dead_strip	_rtw_pci_rx_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_rx_isr
_rtw_pci_rx_isr:                        ; @rtw_pci_rx_isr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [x8, #4]
	stp	w8, w9, [sp, #32]               ; 8-byte Folded Spill
	ldr	x21, [x1]
Lloh0:
	adrp	x8, _RTW_RX_QUEUE_MPDU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_RX_QUEUE_MPDU@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	w8, #24
	madd	x20, x24, x8, x21
Lloh3:
	adrp	x8, _RTK_PCI_RXBD_IDX_MPDUQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTK_PCI_RXBD_IDX_MPDUQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rtw_read32
	ubfx	w9, w0, #16, #12
	ldr	w8, [x20]
	subs	w23, w9, w8
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x8, x24, x8, x21
	ldr	w8, [x8, #4]
	add	w23, w23, w8
LBB0_2:
	mov	w8, #24
	madd	x8, x24, x8, x21
	ldr	w22, [x8, #8]!
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cbz	w23, LBB0_9
; %bb.3:
	mov	w8, #24
	madd	x8, x24, x8, x21
	add	x9, x8, #16
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	add	x28, x8, #4
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_skb_pull
	ldr	w1, [sp, #68]
	mov	x0, x19
	mov	x2, x25
	bl	_rtw_rx_stats
	ldr	x0, [x25]
	add	x1, sp, #48
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
	mov	x1, x25
	bl	_ieee80211_rx_irqsafe
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	mov	x3, x22
	ldr	w4, [sp, #32]                   ; 4-byte Folded Reload
	bl	_rtw_pci_sync_rx_desc_device
	add	w8, w22, #1
	ldr	w9, [x28]
	cmp	w8, w9
	csinc	w22, wzr, w22, ge
	cbz	w23, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_rtw_pci_dma_check
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x21, [x8, w22, sxtw #3]
	ldr	x8, [x21]
	ldr	w24, [x8]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _RTK_PCI_RX_BUF_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTK_PCI_RX_BUF_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, x24
	bl	_dma_sync_single_for_cpu
	ldr	x1, [x21, #8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	add	x2, sp, #56
	add	x3, sp, #48
	mov	x0, x19
	blr	x8
	ldp	w8, w9, [sp, #56]
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	add	w8, w8, w10
	add	w26, w8, w9
	ldr	w8, [sp, #64]
	add	w27, w8, w26
	mov	x0, x27
	bl	_dev_alloc_skb
	mov	x25, x0
	cmp	x0, #0
	cset	w0, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x25
	mov	x2, x27
	bl	_skb_put_data
	ldr	x8, [sp, #72]
	cbz	x8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	bl	_rtw_fw_c2h_cmd_rx_irqsafe
	b	LBB0_5
LBB0_9:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w22, [x8]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	str	w8, [x20]
Lloh14:
	adrp	x8, _RTK_PCI_RXBD_IDX_MPDUQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTK_PCI_RXBD_IDX_MPDUQ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_rtw_write16
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_RX_QUEUE_MPDU,8,3          ; @RTW_RX_QUEUE_MPDU
	.comm	_RTK_PCI_RXBD_IDX_MPDUQ,4,2     ; @RTK_PCI_RXBD_IDX_MPDUQ
	.comm	_RTK_PCI_RX_BUF_SIZE,4,2        ; @RTK_PCI_RX_BUF_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx routine starvation\n"

	.no_dead_strip	_rtw_pci_rx_isr
.subsections_via_symbols
