	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qedr_affiliated_event
_qedr_affiliated_event:                 ## @qedr_affiliated_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_IS_ROCE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leal	-128(%r14), %edx
	cmpl	$6, %edx
	ja	LBB0_6
## %bb.2:
	movq	_IB_EVENT_SRQ_LIMIT_REACHED@GOTPCREL(%rip), %rax
	movq	_IB_EVENT_QP_REQ_ERR@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_9:
	movq	_IB_EVENT_QP_ACCESS_ERR@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rax
	movq	%rax, -32(%rbp)
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	jmp	LBB0_8
LBB0_3:
	cmpl	$135, %r14d
	je	LBB0_4
## %bb.5:
	cmpl	$136, %r14d
	jne	LBB0_6
LBB0_12:
	movq	_IB_EVENT_SRQ_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_ERR                         ## TAILCALL
LBB0_4:
	movq	_IB_EVENT_SRQ_LIMIT_REACHED@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%r15, %rdi
	callq	_xa_lock_irqsave
	movq	%r15, %rdi
	callq	_xa_load
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	16(%rbx), %ecx
	movl	%ecx, -40(%rbp)
	movq	%rbx, -64(%rbp)
	movl	(%rbx), %esi
	leaq	-64(%rbp), %rdi
	callq	*%rax
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
LBB0_17:
	movq	%r15, %rdi
	callq	_xa_unlock_irqrestore
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_DP_NOTICE
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$134, %edx
LBB0_8:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP_ERR                         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_IB_EVENT_CQ_ERR,8,3            ## @IB_EVENT_CQ_ERR
	.comm	_IB_EVENT_SQ_DRAINED,8,3        ## @IB_EVENT_SQ_DRAINED
	.comm	_IB_EVENT_QP_FATAL,8,3          ## @IB_EVENT_QP_FATAL
	.comm	_IB_EVENT_QP_REQ_ERR,8,3        ## @IB_EVENT_QP_REQ_ERR
	.comm	_IB_EVENT_QP_ACCESS_ERR,8,3     ## @IB_EVENT_QP_ACCESS_ERR
	.comm	_IB_EVENT_SRQ_LIMIT_REACHED,8,3 ## @IB_EVENT_SRQ_LIMIT_REACHED
	.comm	_IB_EVENT_SRQ_ERR,8,3           ## @IB_EVENT_SRQ_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported event %d on handle=%llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error: CQ event with NULL pointer ibcq. Handle=%llx\n"

L_.str.2:                               ## @.str.2
	.asciz	"CQ event %d on handle %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error: QP event with NULL pointer ibqp. Handle=%llx\n"

L_.str.4:                               ## @.str.4
	.asciz	"QP event %d on handle %p\n"

L_.str.5:                               ## @.str.5
	.asciz	"SRQ event with NULL pointer ibsrq. Handle=%llx\n"

L_.str.6:                               ## @.str.6
	.asciz	"SRQ event %d on handle %p\n"

	.comm	_EVENT_TYPE_NOT_DEFINED,4,2     ## @EVENT_TYPE_NOT_DEFINED
	.no_dead_strip	_qedr_affiliated_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qedr_affiliated_event
_qedr_affiliated_event:                 ; @qedr_affiliated_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	x20, x1
	mov	x19, x0
	bl	_IS_ROCE
	cbz	x0, LBB0_6
; %bb.1:
	sub	w10, w20, #128
	cmp	w10, #6
	b.hi	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IB_EVENT_QP_REQ_ERR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_EVENT_QP_REQ_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x11, lJTI0_0@PAGE
Lloh5:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_3
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_3:
Lloh6:
	adrp	x9, _IB_EVENT_QP_ACCESS_ERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_EVENT_QP_ACCESS_ERR@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x9]
	str	x8, [sp, #40]
LBB0_5:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_6:
	cmp	w20, #135
	b.eq	LBB0_12
; %bb.7:
	cmp	w20, #136
	b.ne	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _IB_EVENT_SRQ_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_EVENT_SRQ_ERR@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x2, x20
LBB0_11:
	bl	_DP_ERR
	b	LBB0_18
LBB0_12:
Lloh16:
	adrp	x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	x0, x19
	bl	_xa_lock_irqsave
	mov	x0, x19
	bl	_xa_load
	mov	x21, x0
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_17
; %bb.15:
	ldr	w9, [x21, #16]
	str	w9, [sp, #32]
	str	x21, [sp, #8]
	ldr	w1, [x21]
	add	x0, sp, #8
	blr	x8
	b	LBB0_17
LBB0_16:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_17:
	mov	x0, x19
	bl	_xa_unlock_irqrestore
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_DP_NOTICE
LBB0_18:
	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
LBB0_19:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #134
	b	LBB0_11
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
                                        ; -- End function
	.comm	_IB_EVENT_CQ_ERR,8,3            ; @IB_EVENT_CQ_ERR
	.comm	_IB_EVENT_SQ_DRAINED,8,3        ; @IB_EVENT_SQ_DRAINED
	.comm	_IB_EVENT_QP_FATAL,8,3          ; @IB_EVENT_QP_FATAL
	.comm	_IB_EVENT_QP_REQ_ERR,8,3        ; @IB_EVENT_QP_REQ_ERR
	.comm	_IB_EVENT_QP_ACCESS_ERR,8,3     ; @IB_EVENT_QP_ACCESS_ERR
	.comm	_IB_EVENT_SRQ_LIMIT_REACHED,8,3 ; @IB_EVENT_SRQ_LIMIT_REACHED
	.comm	_IB_EVENT_SRQ_ERR,8,3           ; @IB_EVENT_SRQ_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported event %d on handle=%llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error: CQ event with NULL pointer ibcq. Handle=%llx\n"

l_.str.2:                               ; @.str.2
	.asciz	"CQ event %d on handle %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error: QP event with NULL pointer ibqp. Handle=%llx\n"

l_.str.4:                               ; @.str.4
	.asciz	"QP event %d on handle %p\n"

l_.str.5:                               ; @.str.5
	.asciz	"SRQ event with NULL pointer ibsrq. Handle=%llx\n"

l_.str.6:                               ; @.str.6
	.asciz	"SRQ event %d on handle %p\n"

	.comm	_EVENT_TYPE_NOT_DEFINED,4,2     ; @EVENT_TYPE_NOT_DEFINED
	.no_dead_strip	_qedr_affiliated_event
.subsections_via_symbols
