	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_process_rcv_diag
_qlcnic_process_rcv_diag:               ## @qlcnic_process_rcv_diag
	.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
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	32(%rdi), %r14
	xorl	%edi, %edi
	cmpl	%esi, (%r15)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	(%r14), %r14
	movslq	%ebx, %rbx
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_refhandle
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_totallength
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	(%r14,%rbx,8), %r12d
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	leaq	(%r14,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_status
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_pkt_offset
	movl	%eax, %r13d
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_qlcnic_process_rxbuf
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movl	4(%r14,%rbx,8), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%esi, %ebx
	cmovll	%ebx, %esi
	movq	%rax, %rdi
	callq	_skb_put
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_pull
LBB0_5:
	movl	(%r12), %edi
	movl	24(%r15), %esi
	callq	_qlcnic_check_loopback_buff
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dump_skb
	jmp	LBB0_8
LBB0_6:
	movq	16(%r15), %rax
	incl	(%rax)
LBB0_8:
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	incl	8(%r15)
	addl	%ebx, 4(%r15)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qlcnic_process_rcv_diag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_process_rcv_diag
_qlcnic_process_rcv_diag:               ; @qlcnic_process_rcv_diag
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, le
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x27, [x20]
	add	x23, x27, w21, sxtw #3
	mov	x0, x22
	bl	_qlcnic_get_sts_refhandle
	mov	x24, x0
	mov	x0, x22
	bl	_qlcnic_get_sts_totallength
	mov	x20, x0
	ldr	w8, [x23]
	cmp	w24, w8
	cset	w0, ge
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.2:
	mov	x0, x22
	bl	_qlcnic_get_sts_status
	mov	x26, x0
	mov	x0, x22
	bl	_qlcnic_get_sts_pkt_offset
	mov	x25, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x26
	bl	_qlcnic_process_rxbuf
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	sxtw	x8, w21
	add	x8, x27, x8, lsl #3
	ldr	w8, [x8, #4]
	cmp	w20, w8
	csel	w1, w20, w8, lt
	bl	_skb_put
	cbz	w25, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x25
	bl	_skb_pull
LBB0_5:
	ldr	w0, [x22]
	ldr	w1, [x19, #24]
	bl	_qlcnic_check_loopback_buff
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x19
	bl	_dump_skb
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_8:
	mov	x0, x22
	bl	_dev_kfree_skb_any
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	mov.s	v1[0], w20
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
LBB0_9:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qlcnic_process_rcv_diag
.subsections_via_symbols
