	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_rx                      ## -- Begin function i2400m_rx
	.p2align	4, 0x90
_i2400m_rx:                             ## @i2400m_rx
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_i2400m_dev
	movq	%rax, %r15
	movq	(%r13), %r9
	leaq	L_.str(%rip), %rdx
	movl	$4, %edi
	movq	%rax, %rsi
	movq	%r12, %rcx
	movq	%r13, %r8
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	callq	_d_fnstart
	movq	(%r13), %rdx
	movq	8(%r13), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2400m_rx_msg_hdr_check
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	16(,%rax,4), %rdi
	movq	_I2400M_PL_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, %r15
	movq	(%r13), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_3
## %bb.19:
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	$4, %r8d
	movq	%r15, %r9
	movq	%rdi, %r15
	callq	_dev_err
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_3:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
## %bb.4:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	shlq	$2, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	shlq	$2, -88(%rbp)                   ## 8-byte Folded Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_i2400m_pld_size
	movq	%rax, %r14
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_i2400m_rx_pl_descr_check
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, -80(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edx
	movq	(%r12), %rcx
	addq	%r13, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %r8
	addq	%r15, %r8
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2400m_rx_payload
	movq	_I2400M_PL_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ALIGN
	addq	%rax, %r15
	xorl	%eax, %eax
	callq	_cond_resched
	addq	$4, %r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_8:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_kfree_skb
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	40(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, (%r12)
	cmpl	4(%r12), %eax
	jle	LBB0_10
## %bb.9:
	movl	%eax, 4(%r12)
LBB0_10:
	cmpl	8(%r12), %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_12
## %bb.11:
	movl	%eax, 8(%r12)
LBB0_12:
	incl	44(%r12)
	movq	(%r13), %rax
	addq	%rax, 16(%r12)
	cmpq	24(%r12), %rax
	jae	LBB0_14
## %bb.13:
	movq	%rax, 24(%r12)
LBB0_14:
	cmpq	32(%r12), %rax
	jbe	LBB0_16
## %bb.15:
	movq	%rax, 32(%r12)
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_17:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
LBB0_18:
	movl	%ebx, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %edi
	movq	%r15, %rsi
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_d_fnend
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(i2400m %p skb %p [size %zu])\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2400M_PL_ALIGN,4,2            ## @I2400M_PL_ALIGN
L_.str.1:                               ## @.str.1
	.asciz	"RX: HW BUG? message too short (%u bytes) for %u payload descriptors (%zu each, total %zu)\n"

L_.str.2:                               ## @.str.2
	.asciz	"(i2400m %p skb %p [size %zu]) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_rx                      ; -- Begin function i2400m_rx
	.p2align	2
_i2400m_rx:                             ; @i2400m_rx
	.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	x19, x1
	mov	x20, x0
	bl	_i2400m_dev
	mov	x22, x0
	ldr	x21, [x19]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #4
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x21
	bl	_d_fnstart
	ldp	x2, x25, [x19]
	mov	x0, x20
	mov	x1, x25
	bl	_i2400m_rx_msg_hdr_check
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	ldr	w0, [x25, #8]
	bl	_le16_to_cpu
	mov	x24, x0
	mov	w8, w0
	lsl	x28, x8, #2
	add	x0, x28, #16
Lloh5:
	adrp	x8, _I2400M_PL_ALIGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2400M_PL_ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x26, x0
	ldr	x2, [x19]
	cmp	x0, x2
	b.ls	LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x24
	mov	w4, #4
	mov	x5, x26
	bl	_dev_err
	b	LBB0_18
LBB0_3:
	mov	x23, x0
	b	LBB0_18
LBB0_4:
	stp	x22, x21, [sp]                  ; 16-byte Folded Spill
	cbz	w24, LBB0_8
; %bb.5:
	mov	x22, #0
	sub	w8, w24, #1
	lsl	x21, x8, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x0, x8, x22
	bl	_i2400m_pld_size
	mov	x27, x0
	ldr	x8, [x25]
	add	x1, x8, x22
	ldr	x3, [x19]
	mov	x0, x20
	mov	x2, x26
	bl	_i2400m_rx_pl_descr_check
	mov	x23, x0
	tbnz	w0, #31, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, #1
	ccmp	x21, x22, #4, ne
	cset	w2, eq
	ldr	x8, [x25]
	add	x3, x8, x22
	ldr	x8, [x19, #8]
	add	x4, x8, x26
	mov	x0, x20
	mov	x1, x19
	bl	_i2400m_rx_payload
Lloh10:
	adrp	x8, _I2400M_PL_ALIGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2400M_PL_ALIGN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_ALIGN
	add	x26, x0, x26
	bl	_cond_resched
	add	x22, x22, #4
	cmp	x28, x22
	b.ne	LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_kfree_skb
	add	x25, x20, #40
	mov	x0, x25
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20]
	add	w8, w8, w24
	str	w8, [x20]
	cmp	w24, w9
	b.le	LBB0_10
; %bb.9:
	str	w24, [x20, #4]
LBB0_10:
	ldr	w8, [x20, #8]
	cmp	w24, w8
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b.ge	LBB0_12
; %bb.11:
	str	w24, [x20, #8]
LBB0_12:
	ldr	w8, [x20, #44]
	add	w8, w8, #1
	str	w8, [x20, #44]
	ldr	x8, [x19]
	ldp	x9, x10, [x20, #16]
	add	x9, x9, x8
	str	x9, [x20, #16]
	cmp	x8, x10
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	b.hs	LBB0_14
; %bb.13:
	str	x8, [x20, #24]
LBB0_14:
	ldr	x9, [x20, #32]
	cmp	x8, x9
	b.ls	LBB0_16
; %bb.15:
	str	x8, [x20, #32]
LBB0_16:
	mov	x0, x25
	bl	_spin_unlock_irqrestore
	b	LBB0_18
LBB0_17:
	ldp	x22, x21, [sp]                  ; 16-byte Folded Reload
LBB0_18:
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #4
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x21
	mov	x6, x23
	bl	_d_fnend
	mov	x0, x23
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(i2400m %p skb %p [size %zu])\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2400M_PL_ALIGN,4,2            ; @I2400M_PL_ALIGN
l_.str.1:                               ; @.str.1
	.asciz	"RX: HW BUG? message too short (%u bytes) for %u payload descriptors (%zu each, total %zu)\n"

l_.str.2:                               ; @.str.2
	.asciz	"(i2400m %p skb %p [size %zu]) = %d\n"

.subsections_via_symbols
