	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_dma_rx_fill
_mt76_dma_rx_fill:                      ## @mt76_dma_rx_fill
	.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	%rsi, %r12
	movq	%rdi, %r15
	movl	16(%rsi), %edi
	callq	_SKB_WITH_OVERHEAD
	movl	%eax, %r13d
	movslq	(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	8(%r12), %eax
	decl	%eax
	xorl	%ebx, %ebx
	cmpl	%eax, 4(%r12)
	jge	LBB0_10
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	20(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	subl	-64(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_page_frag_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movl	(%r15), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_dma_map_single
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r14, -80(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -88(%rbp)
	movq	$0, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	-88(%rbp), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_mt76_dma_add_buf
	incl	%ebx
	movl	8(%r12), %eax
	decl	%eax
	cmpl	%eax, 4(%r12)
	jl	LBB0_2
	jmp	LBB0_8
LBB0_4:
	movq	%r13, %rdi
	callq	_skb_free_frag
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mt76_dma_kick_queue
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_mt76_dma_rx_fill
.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_fill
_mt76_dma_rx_fill:                      ; @mt76_dma_rx_fill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #16]
	bl	_SKB_WITH_OVERHEAD
	mov	x23, x0
	ldrsw	x27, [x20]
	add	x19, x20, #12
	mov	x0, x19
	bl	_spin_lock_bh
	ldp	w8, w9, [x20, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w22, #0
	add	x24, x20, #20
	sub	w28, w23, w27
Lloh0:
	adrp	x19, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #16]
	ldr	w2, [x19]
	mov	x0, x24
	bl	_page_frag_alloc
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x25
	mov	x2, x23
	bl	_dma_map_single
	mov	x26, x0
	ldr	w0, [x21]
	mov	x1, x26
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x26, x27
	str	x8, [sp, #24]
	str	w28, [sp, #16]
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	mov	w4, #0
	mov	x5, x25
	mov	x6, #0
	bl	_mt76_dma_add_buf
	add	w22, w22, #1
	ldp	w8, w9, [x20, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_2
	b	LBB0_8
LBB0_5:
	mov	w22, #0
	b	LBB0_10
LBB0_6:
	mov	x0, x25
	bl	_skb_free_frag
LBB0_7:
	cbz	w22, LBB0_9
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_mt76_dma_kick_queue
LBB0_9:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_mt76_dma_rx_fill
.subsections_via_symbols
