	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_qp_event
_mlx4_ib_qp_event:                      ## @mlx4_ib_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_to_mibqp
	movq	%rax, %r15
	movq	%rax, %rbx
	cmpl	$134, %r14d
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_to_mibqp
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_to_mibqp
	movl	%r13d, 4(%rax)
LBB0_2:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:
	addq	$8, %r15
	movl	24(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	%r15, -56(%rbp)
	leal	-128(%r14), %eax
	cmpl	$7, %eax
	ja	LBB0_15
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_IB_EVENT_QP_REQ_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_15:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_11:
	movq	_IB_EVENT_QP_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movq	_IB_EVENT_QP_ACCESS_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	movq	_IB_EVENT_QP_LAST_WQE_REACHED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_IB_EVENT_SQ_DRAINED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_12:
	movq	_IB_EVENT_PATH_MIG_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_IB_EVENT_PATH_MIG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_IB_EVENT_COMM_EST@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdi
	callq	*%rcx
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_IB_EVENT_PATH_MIG,4,2          ## @IB_EVENT_PATH_MIG
	.comm	_IB_EVENT_COMM_EST,4,2          ## @IB_EVENT_COMM_EST
	.comm	_IB_EVENT_SQ_DRAINED,4,2        ## @IB_EVENT_SQ_DRAINED
	.comm	_IB_EVENT_QP_LAST_WQE_REACHED,4,2 ## @IB_EVENT_QP_LAST_WQE_REACHED
	.comm	_IB_EVENT_QP_FATAL,4,2          ## @IB_EVENT_QP_FATAL
	.comm	_IB_EVENT_PATH_MIG_ERR,4,2      ## @IB_EVENT_PATH_MIG_ERR
	.comm	_IB_EVENT_QP_REQ_ERR,4,2        ## @IB_EVENT_QP_REQ_ERR
	.comm	_IB_EVENT_QP_ACCESS_ERR,4,2     ## @IB_EVENT_QP_ACCESS_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected event type %d on QP %06x\n"

	.no_dead_strip	_mlx4_ib_qp_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_qp_event
_mlx4_ib_qp_event:                      ; @mlx4_ib_qp_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	bl	_to_mibqp
	mov	x21, x0
	cmp	w19, #134
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_to_mibqp
	ldr	w22, [x0]
	mov	x0, x20
	bl	_to_mibqp
	str	w22, [x0, #4]
LBB0_2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_15
; %bb.3:
	add	x9, x21, #8
	ldr	w10, [x21, #24]
	str	w10, [sp, #24]
	str	x9, [sp, #16]
	sub	w10, w19, #128
	cmp	w10, #7
	b.hi	LBB0_6
; %bb.4:
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
Lloh2:
	adrp	x10, _IB_EVENT_QP_REQ_ERR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IB_EVENT_QP_REQ_ERR@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	ldr	w2, [x20]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_pr_warn
LBB0_7:
Lloh6:
	adrp	x10, _IB_EVENT_QP_FATAL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_EVENT_QP_FATAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh8:
	adrp	x10, _IB_EVENT_QP_ACCESS_ERR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IB_EVENT_QP_ACCESS_ERR@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh10:
	adrp	x10, _IB_EVENT_QP_LAST_WQE_REACHED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IB_EVENT_QP_LAST_WQE_REACHED@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh12:
	adrp	x10, _IB_EVENT_SQ_DRAINED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IB_EVENT_SQ_DRAINED@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x10, _IB_EVENT_PATH_MIG_ERR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_EVENT_PATH_MIG_ERR@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x10, _IB_EVENT_PATH_MIG@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IB_EVENT_PATH_MIG@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x10, _IB_EVENT_COMM_EST@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IB_EVENT_COMM_EST@GOTPAGEOFF]
LBB0_14:
	ldr	w10, [x10]
	str	w10, [sp, #8]
	ldr	w1, [x9]
	add	x0, sp, #8
	blr	x8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
                                        ; -- End function
	.comm	_IB_EVENT_PATH_MIG,4,2          ; @IB_EVENT_PATH_MIG
	.comm	_IB_EVENT_COMM_EST,4,2          ; @IB_EVENT_COMM_EST
	.comm	_IB_EVENT_SQ_DRAINED,4,2        ; @IB_EVENT_SQ_DRAINED
	.comm	_IB_EVENT_QP_LAST_WQE_REACHED,4,2 ; @IB_EVENT_QP_LAST_WQE_REACHED
	.comm	_IB_EVENT_QP_FATAL,4,2          ; @IB_EVENT_QP_FATAL
	.comm	_IB_EVENT_PATH_MIG_ERR,4,2      ; @IB_EVENT_PATH_MIG_ERR
	.comm	_IB_EVENT_QP_REQ_ERR,4,2        ; @IB_EVENT_QP_REQ_ERR
	.comm	_IB_EVENT_QP_ACCESS_ERR,4,2     ; @IB_EVENT_QP_ACCESS_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected event type %d on QP %06x\n"

	.no_dead_strip	_mlx4_ib_qp_event
.subsections_via_symbols
