	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_wq_event
_mlx5_ib_wq_event:                      ## @mlx5_ib_wq_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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_to_mibrwq
	movq	%rax, %rbx
	movl	16(%rax), %edi
	callq	_to_mdev
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %edx
	movl	%edx, -32(%rbp)
	movq	%rbx, -40(%rbp)
	cmpl	$128, %r14d
	jne	LBB0_4
## %bb.2:
	movq	_IB_EVENT_WQ_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	*%rcx
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_warn                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_EVENT_WQ_FATAL,4,2          ## @IB_EVENT_WQ_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected event type %d on WQ %06x\n"

	.no_dead_strip	_mlx5_ib_wq_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_wq_event
_mlx5_ib_wq_event:                      ; @mlx5_ib_wq_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_mibrwq
	mov	x21, x0
	ldr	w0, [x0, #16]
	bl	_to_mdev
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w9, [x21, #16]
	str	w9, [sp, #24]
	str	x21, [sp, #16]
	cmp	w19, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, _IB_EVENT_WQ_FATAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_EVENT_WQ_FATAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	ldr	w1, [x21]
	add	x0, sp, #8
	blr	x8
LBB0_3:
	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
LBB0_4:
	ldr	w3, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, 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	_mlx5_ib_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_EVENT_WQ_FATAL,4,2          ; @IB_EVENT_WQ_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected event type %d on WQ %06x\n"

	.no_dead_strip	_mlx5_ib_wq_event
.subsections_via_symbols
