	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_qplib_service_creq
_bnxt_qplib_service_creq:               ## @bnxt_qplib_service_creq
	.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
	movq	%rdi, %r12
	movq	48(%rdi), %rax
	movl	(%rax), %edi
	callq	_bnxt_qplib_is_chip_gen_p5
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CREQ_ENTRY_POLL_BUDGET@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	32(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	testq	%r13, %r13
	jle	LBB0_15
## %bb.1:
	leaq	24(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %r14
	incq	%r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_bnxt_qplib_process_qp_event
	incl	20(%r12)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	decq	%r13
	cmpq	$1, %r13
	jle	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_HWQ_CMP
	movq	%rax, %rbx
	movq	40(%r12), %r15
	movq	%rax, %rdi
	callq	_get_creq_pg
	movq	(%r15,%rax,8), %r15
	movq	%rbx, %rdi
	callq	_get_creq_idx
	leaq	(%r15,%rax,8), %r15
	movl	36(%r12), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_CREQ_CMP_VALID
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	_CREQ_BASE_TYPE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	andq	(%r15), %rdx
	cmpq	$129, %rdx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$128, %rdx
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_bnxt_qplib_process_func_event
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	movl	$129, %edx
	leaq	L_.str(%rip), %rsi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_dev_warn
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r12)
	jmp	LBB0_12
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r14, 24(%r12)
	movl	(%r12), %ecx
	movl	4(%r12), %edi
	movl	36(%r12), %edx
	movq	%r14, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_bnxt_qplib_ring_creq_db_rearm
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CREQ_ENTRY_POLL_BUDGET,8,3     ## @CREQ_ENTRY_POLL_BUDGET
	.comm	_CREQ_BASE_TYPE_MASK,8,3        ## @CREQ_BASE_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aeqe:%#x Not handled\n"

	.comm	_ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT,8,3 ## @ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT
L_.str.1:                               ## @.str.1
	.asciz	"creqe with event 0x%x not handled\n"

	.no_dead_strip	_bnxt_qplib_service_creq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_qplib_service_creq
_bnxt_qplib_service_creq:               ; @bnxt_qplib_service_creq
	.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, x0
	ldr	x8, [x0, #48]
	ldr	w0, [x8]
	bl	_bnxt_qplib_is_chip_gen_p5
	mov	x22, x0
Lloh0:
	adrp	x8, _CREQ_ENTRY_POLL_BUDGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CREQ_ENTRY_POLL_BUDGET@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	add	x19, x20, #32
	mov	x0, x19
	bl	_spin_lock_irqsave
	cmp	x21, #1
	b.lt	LBB0_15
; %bb.1:
	str	w22, [sp, #12]                  ; 4-byte Folded Spill
	add	x23, x20, #24
	ldr	x22, [x20, #24]
	add	x27, x21, #1
Lloh3:
	adrp	x28, _CREQ_BASE_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x28, [x28, _CREQ_BASE_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
Lloh7:
	adrp	x21, _ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x26
	bl	_bnxt_qplib_process_qp_event
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	sub	x27, x27, #1
	cmp	x27, #1
	b.le	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_HWQ_CMP
	mov	x26, x0
	ldr	x25, [x20, #40]
	bl	_get_creq_pg
	ldr	x25, [x25, x0, lsl #3]
	mov	x0, x26
	bl	_get_creq_idx
	add	x26, x25, x0, lsl #3
	ldr	w2, [x20, #36]
	mov	x0, x26
	mov	x1, x22
	bl	_CREQ_CMP_VALID
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_dma_rmb
	ldr	x8, [x26]
	ldr	x9, [x28]
	and	x2, x9, x8
	cmp	x2, #129
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x2, #128
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	cmp	x2, x8
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x26
	bl	_bnxt_qplib_process_func_event
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x24
	mov	w2, #129
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_dev_warn
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_3
LBB0_13:
	ldr	x8, [x23]
	cmp	x8, x22
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	b.eq	LBB0_15
; %bb.14:
	str	x22, [x20, #24]
	ldr	w2, [x20, #36]
	ldp	w3, w0, [x20]
	mov	x1, x22
	bl	_bnxt_qplib_ring_creq_db_rearm
LBB0_15:
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CREQ_ENTRY_POLL_BUDGET,8,3     ; @CREQ_ENTRY_POLL_BUDGET
	.comm	_CREQ_BASE_TYPE_MASK,8,3        ; @CREQ_BASE_TYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aeqe:%#x Not handled\n"

	.comm	_ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT,8,3 ; @ASYNC_EVENT_CMPL_TYPE_HWRM_ASYNC_EVENT
l_.str.1:                               ; @.str.1
	.asciz	"creqe with event 0x%x not handled\n"

	.no_dead_strip	_bnxt_qplib_service_creq
.subsections_via_symbols
