	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function post_qp_event
_post_qp_event:                         ## @post_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rcx, %rsi
	callq	_dump_err_cqe
	movq	24(%rbx), %rax
	movq	_C4IW_QP_STATE_RTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_C4IW_QP_STATE_TERMINATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	16(%rbx), %edi
	movq	_C4IW_QP_ATTR_NEXT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_c4iw_modify_qp
LBB0_2:
	movl	%r12d, -72(%rbp)
	leaq	8(%r14), %r15
	movl	24(%r14), %eax
	movl	%eax, -48(%rbp)
	movq	_IB_EVENT_CQ_ERR@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r15, -56(%rbp)
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, -64(%rbp)
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdi
	callq	*%rax
LBB0_7:
	leaq	32(%r14), %rdi
	callq	_t4_clear_cq_armed
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	8(%r14), %esi
	movq	%r15, %rdi
	callq	*16(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C4IW_QP_STATE_RTS,8,3          ## @C4IW_QP_STATE_RTS
	.comm	_C4IW_QP_STATE_TERMINATE,4,2    ## @C4IW_QP_STATE_TERMINATE
	.comm	_C4IW_QP_ATTR_NEXT_STATE,4,2    ## @C4IW_QP_ATTR_NEXT_STATE
	.comm	_IB_EVENT_CQ_ERR,4,2            ## @IB_EVENT_CQ_ERR
	.no_dead_strip	_post_qp_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function post_qp_event
_post_qp_event:                         ; @post_qp_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x4
	mov	x20, x2
	mov	x19, x1
	mov	x1, x3
	bl	_dump_err_cqe
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _C4IW_QP_STATE_RTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _C4IW_QP_STATE_RTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _C4IW_QP_STATE_TERMINATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _C4IW_QP_STATE_TERMINATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x20, #16]
Lloh6:
	adrp	x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C4IW_QP_ATTR_NEXT_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x20
	mov	w4, #0
	bl	_c4iw_modify_qp
LBB0_2:
	add	x21, x19, #8
	ldr	w8, [x19, #24]
	str	w22, [sp, #16]
	str	w8, [sp, #40]
Lloh9:
	adrp	x8, _IB_EVENT_CQ_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_EVENT_CQ_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	str	x21, [sp, #32]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
	b	LBB0_6
LBB0_4:
	str	x20, [sp, #24]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
LBB0_5:
	ldr	w1, [x20]
	add	x0, sp, #16
	blr	x8
LBB0_6:
	add	x0, x19, #32
	bl	_t4_clear_cq_armed
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	ldr	w1, [x19, #8]
	mov	x0, x21
	blr	x8
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_C4IW_QP_STATE_RTS,8,3          ; @C4IW_QP_STATE_RTS
	.comm	_C4IW_QP_STATE_TERMINATE,4,2    ; @C4IW_QP_STATE_TERMINATE
	.comm	_C4IW_QP_ATTR_NEXT_STATE,4,2    ; @C4IW_QP_ATTR_NEXT_STATE
	.comm	_IB_EVENT_CQ_ERR,4,2            ; @IB_EVENT_CQ_ERR
	.no_dead_strip	_post_qp_event
.subsections_via_symbols
