	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_ll2_complete_rx_packet
_qedr_ll2_complete_rx_packet:           ## @qedr_ll2_complete_rx_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %r14
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	subl	(%rax), %edx
	cmpq	$0, 24(%r15)
	cmovel	%ecx, %edx
	movq	8(%r13), %rax
	movq	16(%r13), %rbx
	leaq	8(%r13), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %r12
	movl	%edx, 20(%rbx,%r12,8)
	movl	16(%r15), %eax
	movl	%eax, 16(%rbx,%r12,8)
	movl	12(%r15), %eax
	movq	8(%rbx,%r12,8), %rcx
	movl	%eax, (%rcx)
	movl	8(%r15), %edi
	callq	_ntohl
	movq	(%rbx,%r12,8), %rcx
	movl	%eax, (%rcx)
	movl	(%r15), %edi
	callq	_ntohs
	movq	8(%r13), %rcx
	movq	16(%r13), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, 16(%rcx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_qedr_inc_sw_gsi_cons
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qedr_ll2_complete_rx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_ll2_complete_rx_packet
_qedr_ll2_complete_rx_packet:           ; @qedr_ll2_complete_rx_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	ldp	x21, x19, [x0]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	mov	x22, x21
	ldr	x10, [x22, #8]!
	mov	w23, #24
	madd	x24, x10, x23, x9
	ldr	x9, [x24, #8]
	ldp	w0, w10, [x20, #8]
	str	w10, [x9]
	ldr	x9, [x20, #24]
	cmp	x9, #0
	csneg	w8, wzr, w8, eq
	ldr	w9, [x20, #16]
	stp	w9, w8, [x24, #16]
	bl	_ntohl
	ldr	x8, [x24]
	str	w0, [x8]
	ldr	w0, [x20]
	bl	_ntohs
	ldr	x8, [x21, #16]
	ldr	x9, [x22]
	mul	x9, x9, x23
	ldr	x8, [x8, x9]
	str	w0, [x8, #16]
	mov	x0, x22
	bl	_qedr_inc_sw_gsi_cons
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qedr_ll2_complete_rx_packet
.subsections_via_symbols
