	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_cq_event
_mlx4_ib_cq_event:                      ## @mlx4_ib_cq_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_MLX4_EVENT_TYPE_CQ_ERROR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.1:
	callq	_to_mibcq
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movl	16(%rax), %edx
	movl	%edx, -4(%rbp)
	movq	_IB_EVENT_CQ_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -8(%rbp)
	movq	%rax, -16(%rbp)
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdi
	callq	*%rcx
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_4:
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EVENT_TYPE_CQ_ERROR,4,2   ## @MLX4_EVENT_TYPE_CQ_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected event type %d on CQ %06x\n"

	.comm	_IB_EVENT_CQ_ERR,4,2            ## @IB_EVENT_CQ_ERR
	.no_dead_strip	_mlx4_ib_cq_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_cq_event
_mlx4_ib_cq_event:                      ; @mlx4_ib_cq_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MLX4_EVENT_TYPE_CQ_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_EVENT_TYPE_CQ_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.1:
	bl	_to_mibcq
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _IB_EVENT_CQ_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_EVENT_CQ_ERR@GOTPAGEOFF]
	ldr	w10, [x0, #16]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w10, [sp, #8]
	str	x0, [sp]
	ldr	w1, [x0]
	mov	x0, sp
	blr	x8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_4:
	ldr	w2, [x0]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_pr_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EVENT_TYPE_CQ_ERROR,4,2   ; @MLX4_EVENT_TYPE_CQ_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected event type %d on CQ %06x\n"

	.comm	_IB_EVENT_CQ_ERR,4,2            ; @IB_EVENT_CQ_ERR
	.no_dead_strip	_mlx4_ib_cq_event
.subsections_via_symbols
