	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_qplib_process_qp_event
_bnxt_qplib_process_qp_event:           ## @bnxt_qplib_process_qp_event
	.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, %rbx
	movq	%rdi, %r15
	cmpl	$128, (%rsi)
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r12
	movq	16(%r15), %rdi
	movq	48(%r15), %rax
	movq	(%rax,%r12,8), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%r15), %rdi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	testq	%r14, %r14
	je	LBB0_16
## %bb.2:
	movq	%r14, %rdi
	callq	_bnxt_qplib_mark_qp_error
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	*40(%r15)
	jmp	LBB0_16
LBB0_3:
	leaq	56(%r15), %rdi
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave_nested
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, %rcx
	movl	4(%rbx), %r8d
	movq	_RCFW_CMD_IS_BLOCKING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_RCFW_MAX_COOKIE_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	andq	%rcx, %rax
	movq	(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r12
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r12d
LBB0_6:
	movq	32(%r15), %r14
	movq	%r12, %r13
	shlq	$4, %r13
	movq	8(%r14,%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	movl	(%rdi), %ecx
	cmpl	%r8d, %ecx
	jne	LBB0_9
## %bb.8:
	leaq	(%r14,%r13), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_11
LBB0_9:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.10:
	movq	16(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_dev_err
LBB0_11:
	movl	24(%r15), %esi
	movq	%r12, %rdi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	16(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_warn
LBB0_13:
	movl	(%r14,%r13), %eax
	addl	%eax, 60(%r15)
	movl	$0, (%r14,%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_15
## %bb.14:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_wake_up
LBB0_15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_16:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received QP error notification\n"

L_.str.1:                               ## @.str.1
	.asciz	"qpid 0x%x, req_err=0x%x, resp_err=0x%x\n"

	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.comm	_RCFW_CMD_IS_BLOCKING,8,3       ## @RCFW_CMD_IS_BLOCKING
	.comm	_RCFW_MAX_COOKIE_VALUE,8,3      ## @RCFW_MAX_COOKIE_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"CMD %s cookie sent=%#x, recd=%#x\n"

L_.str.3:                               ## @.str.3
	.asciz	"mismatch"

L_.str.5:                               ## @.str.5
	.asciz	"CMD bit %d was not requested\n"

	.no_dead_strip	_bnxt_qplib_process_qp_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_qplib_process_qp_event
_bnxt_qplib_process_qp_event:           ; @bnxt_qplib_process_qp_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	x8, [x19, #48]
	ldr	x20, [x8, x0, lsl #3]
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #16]
	ldp	w9, w8, [x21]
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	cbz	x20, LBB0_13
; %bb.2:
	mov	x0, x20
	bl	_bnxt_qplib_mark_qp_error
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	b	LBB0_13
LBB0_3:
	add	x20, x19, #56
Lloh4:
	adrp	x8, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_spin_lock_irqsave_nested
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh7:
	adrp	x8, _RCFW_CMD_IS_BLOCKING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RCFW_CMD_IS_BLOCKING@GOTPAGEOFF]
Lloh9:
	ldr	x25, [x8]
Lloh10:
	adrp	x8, _RCFW_MAX_COOKIE_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCFW_MAX_COOKIE_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	and	x8, x8, x0
	ldr	x9, [x19]
	udiv	x10, x8, x9
	msub	x22, x10, x9, x8
	ldr	x24, [x19, #32]
	add	x26, x24, x22, lsl #4
	ldr	x0, [x26, #8]!
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w4, [x21, #4]
	ldr	w3, [x0]
	cmp	w3, w4
	b.ne	LBB0_6
; %bb.5:
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
	str	xzr, [x26]
	b	LBB0_8
LBB0_6:
	cbz	w3, LBB0_8
; %bb.7:
	ldr	x0, [x19, #16]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_8:
	and	x21, x25, x23
	ldr	w1, [x19, #24]
	mov	x0, x22
	bl	_test_and_clear_bit
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #16]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
LBB0_10:
	lsl	x8, x22, #4
	ldr	w9, [x24, x8]
	ldr	w10, [x19, #60]
	add	w9, w10, w9
	str	w9, [x19, #60]
	str	wzr, [x24, x8]
	cbnz	x21, LBB0_12
; %bb.11:
	add	x0, x19, #8
	bl	_wake_up
LBB0_12:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_13:
	mov	w0, #0
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received QP error notification\n"

l_.str.1:                               ; @.str.1
	.asciz	"qpid 0x%x, req_err=0x%x, resp_err=0x%x\n"

	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.comm	_RCFW_CMD_IS_BLOCKING,8,3       ; @RCFW_CMD_IS_BLOCKING
	.comm	_RCFW_MAX_COOKIE_VALUE,8,3      ; @RCFW_MAX_COOKIE_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"CMD %s cookie sent=%#x, recd=%#x\n"

l_.str.3:                               ; @.str.3
	.asciz	"mismatch"

l_.str.5:                               ; @.str.5
	.asciz	"CMD bit %d was not requested\n"

	.no_dead_strip	_bnxt_qplib_process_qp_event
.subsections_via_symbols
