	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_rx_handle_edma             ## -- Begin function wil_rx_handle_edma
	.p2align	4, 0x90
_wil_rx_handle_edma:                    ## @wil_rx_handle_edma
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpl	$0, 32(%r13)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_err                        ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wil_err
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	24(%r13), %r15
	movq	%rbx, %r12
	shlq	$4, %r12
	xorl	%edi, %edi
	cmpl	$0, 12(%r15,%r12)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jg	LBB0_5
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_wil_rx_reorder
	cmpl	$0, (%r14)
	jle	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wil_sring_reap_rx_edma
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %r15
	decl	(%r14)
	cmpq	$0, 16(%r13)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %rbx
	movq	%r15, %rdi
	callq	_wil_skb_rxstatus
	movq	%rax, %rdi
	callq	_wil_rx_status_get_mid
	movl	%eax, %r14d
	movq	8(%r13), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_txrx
	movq	%r15, %rdi
	callq	_kfree_skb
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_vif_to_ndev
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_wil_netif_rx_any
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, (%r14)
	jg	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx,%r12), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	decl	%eax
	cltd
	idivl	4(%rcx,%r12)
	movq	%r13, %rdi
	callq	_wil_w
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_15:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wil_rx_refill_edma             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx IRQ while Rx not yet initialized\n"

L_.str.1:                               ## @.str.1
	.asciz	"rx_handle\n"

L_.str.2:                               ## @.str.2
	.asciz	"Rx IRQ while Rx status ring %d not yet initialized\n"

L_.str.3:                               ## @.str.3
	.asciz	"RX desc invalid mid %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_rx_handle_edma             ; -- Begin function wil_rx_handle_edma
	.p2align	2
_wil_rx_handle_edma:                    ; @wil_rx_handle_edma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	w8, [x0, #32]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_wil_err
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_txrx
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.3:
	mov	x27, #0
Lloh4:
	adrp	x21, l_.str.3@PAGE
Lloh5:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x27, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_wil_err
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	b.ge	LBB0_16
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x28, [x19, #24]
	add	x23, x28, x27, lsl #4
	ldr	w8, [x23, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	cmp	w8, #1
	b.ge	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x28, x27, lsl #4
	ldr	w9, [x23]
	sub	w9, w9, #1
	ldp	w8, w1, [x8, #4]
	sdiv	w10, w9, w8
	msub	w2, w10, w8, w9
	mov	x0, x19
	bl	_wil_w
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_wil_rx_reorder
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_8
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	bl	_wil_sring_reap_rx_edma
	cbz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x24, x0
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x24
	bl	_wil_skb_rxstatus
	bl	_wil_rx_status_get_mid
	mov	x25, x0
	ldr	x8, [x19, #8]
	ldr	x26, [x8, w0, sxtw #3]
	cmp	x26, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	str	x25, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_wil_dbg_txrx
	mov	x0, x24
	bl	_kfree_skb
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x26
	bl	_vif_to_ndev
	mov	x1, x0
	mov	x0, x24
	bl	_wil_netif_rx_any
	b	LBB0_10
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_wil_rx_refill_edma
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx IRQ while Rx not yet initialized\n"

l_.str.1:                               ; @.str.1
	.asciz	"rx_handle\n"

l_.str.2:                               ; @.str.2
	.asciz	"Rx IRQ while Rx status ring %d not yet initialized\n"

l_.str.3:                               ; @.str.3
	.asciz	"RX desc invalid mid %d"

.subsections_via_symbols
