	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_dma_rx_process
_mt76_dma_rx_process:                   ## @mt76_dma_rx_process
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	xorl	%r15d, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_dev_kfree_skb
	movq	$0, 8(%rbx)
	movq	%r13, %rdi
	callq	_skb_free_frag
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r12d, %r15d
	jge	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	callq	_mt76_dma_dequeue
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	cmpq	$0, 8(%rbx)
	movl	(%rbx), %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	callq	_SKB_WITH_OVERHEAD
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx
	movl	4(%rbx), %edx
	addl	%ecx, %edx
	movq	8(%rbx), %rdi
	cmpl	%edx, %eax
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_mt76_add_fragment
	jmp	LBB0_18
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_build_skb
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	_MT_RXQ_MCU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	addq	(%r14), %rax
	cmpq	%rbx, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movl	-56(%rbp), %ecx
	movl	%ecx, (%rax)
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %esi
	movq	%r12, %rdi
	callq	___skb_put
	incl	%r15d
	cmpl	$0, -48(%rbp)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, 8(%rbx)
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_skb_free_frag
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	movq	%rbx, %rsi
	subq	(%r14), %rsi
	shrq	$4, %rsi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r12, %rdx
	callq	*(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_18
LBB0_1:
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mt76_dma_rx_fill
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_RXQ_MCU,8,3                 ## @MT_RXQ_MCU
	.no_dead_strip	_mt76_dma_rx_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_dma_rx_process
_mt76_dma_rx_process:                   ; @mt76_dma_rx_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x22, x2
	mov	w21, #0
Lloh0:
	adrp	x25, _MT_RXQ_MCU@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MT_RXQ_MCU@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x8, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w4, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_mt76_add_fragment
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, w22
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	add	x4, sp, #4
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_mt76_dma_dequeue
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_SKB_WITH_OVERHEAD
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [sp, #12]
	ldr	w9, [x19, #4]
	ldr	x8, [x19, #8]
	add	w9, w9, w3
	cmp	w0, w9
	b.ge	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x8
	bl	_dev_kfree_skb
	str	xzr, [x19, #8]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_skb_free_frag
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19]
	mov	x0, x23
	bl	_build_skb
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	w1, [x19, #4]
	bl	_skb_reserve
	ldr	x8, [x20]
	ldr	x9, [x25]
	add	x8, x8, x9, lsl #4
	cmp	x8, x19
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	w9, [sp, #4]
	str	w9, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #12]
	mov	x0, x24
	bl	___skb_put
	add	w21, w21, #1
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x24, [x19, #8]
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x9, x8, [x20]
	ldr	x8, [x8]
	sub	x9, x19, x9
	lsr	x1, x9, #4
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x24
	blr	x8
	b	LBB0_4
LBB0_17:
	mov	w21, #0
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_mt76_dma_rx_fill
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_RXQ_MCU,8,3                 ; @MT_RXQ_MCU
	.no_dead_strip	_mt76_dma_rx_process
.subsections_via_symbols
