	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_event
_mlx5_fpga_event:                       ## @mlx5_fpga_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	(%rdx), %rsi
	cmpq	$129, %rax
	je	LBB0_4
## %bb.1:
	cmpq	$130, %rax
	jne	LBB0_2
## %bb.3:
	movq	_fpga_error_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_GET
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_mlx5_fpga_syndrome_to_string
	jmp	LBB0_5
LBB0_4:
	movq	_fpga_qp_error_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_GET
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_mlx5_fpga_qp_syndrome_to_string
LBB0_5:
	movq	%rax, %r15
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$128, (%r12)
	jne	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_mlx5_fpga_warn
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r12), %edi
	callq	_mlx5_trigger_health_work
	jmp	LBB0_8
LBB0_2:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_mlx5_fpga_warn_ratelimited
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fpga_error_event,4,2           ## @fpga_error_event
	.comm	_fpga_qp_error_event,4,2        ## @fpga_qp_error_event
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %u: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected error event %u: %s\n"

	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_mlx5_fpga_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_event
_mlx5_fpga_event:                       ; @mlx5_fpga_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, x1
	mov	x19, x0
	ldr	x1, [x2]
	cmp	x8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	x8, #130
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _fpga_error_event@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpga_error_event@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MLX5_GET
	mov	x20, x0
	bl	_mlx5_fpga_syndrome_to_string
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _fpga_qp_error_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fpga_qp_error_event@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MLX5_GET
	mov	x20, x0
	bl	_mlx5_fpga_qp_syndrome_to_string
LBB0_4:
	mov	x21, x0
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_mlx5_fpga_warn
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #4]
	bl	_mlx5_trigger_health_work
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_mlx5_fpga_warn_ratelimited
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_8:
Lloh12:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_fpga_error_event,4,2           ; @fpga_error_event
	.comm	_fpga_qp_error_event,4,2        ; @fpga_qp_error_event
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %u: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected error event %u: %s\n"

	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_mlx5_fpga_event
.subsections_via_symbols
