	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gather_async_events_mask
_gather_async_events_mask:              ## @gather_async_events_mask
	.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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_MLX5_ASYNC_EVENT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_MLX5_VPORT_MANAGER
	movq	_MLX5_EVENT_TYPE_NIC_VPORT_CHANGE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movl	$1, %r13d
	orq	%r14, %rbx
	movq	_general_notification_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	movq	_MLX5_EVENT_TYPE_GENERAL_EVENT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %r13
	testq	%rax, %rax
	cmoveq	%rax, %r13
	orq	%rbx, %r13
	movq	_port_module_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MLX5_EVENT_TYPE_PORT_MODULE_EVENT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsq	%rax, %r13
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_core_dbg
LBB0_3:
	movq	%r15, %rdi
	callq	_MLX5_PPS_CAP
	movq	_MLX5_EVENT_TYPE_PPS_EVENT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movl	$1, %r12d
	orq	%r13, %rbx
	movq	_fpga@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MLX5_EVENT_TYPE_FPGA_ERROR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_MLX5_EVENT_TYPE_FPGA_QP_ERROR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsq	%rax, %rbx
	btsq	%rcx, %rbx
LBB0_5:
	movq	_dct@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN_MAX
	movq	_MLX5_EVENT_TYPE_DCT_DRAINED@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r14d
	shlq	%cl, %r14
	testq	%rax, %rax
	cmoveq	%rax, %r14
	movq	_temp_warn_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_GEN
	movq	_MLX5_EVENT_TYPE_TEMP_WARN_EVENT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r13d
	shlq	%cl, %r13
	testq	%rax, %rax
	cmoveq	%rax, %r13
	orq	%rbx, %r13
	movq	_tracer_registers@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_MCAM_REG
	movq	_MLX5_EVENT_TYPE_DEVICE_TRACER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	shlq	%cl, %r15
	testq	%rax, %rax
	cmoveq	%rax, %r15
	orq	%r14, %r15
	movq	_max_num_of_monitor_counters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_MLX5_CAP_GEN
	movq	_MLX5_EVENT_TYPE_MONITOR_COUNTER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	orq	%r15, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mlx5_eswitch_is_funcs_handler
	movq	_MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %r12
	testq	%rax, %rax
	cmoveq	%rax, %r12
	orq	%rbx, %r12
	orq	%r13, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, (%rbx)
	movq	_event_cap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gather_user_async_events       ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_ASYNC_EVENT_MASK,8,3      ## @MLX5_ASYNC_EVENT_MASK
	.comm	_MLX5_EVENT_TYPE_NIC_VPORT_CHANGE,8,3 ## @MLX5_EVENT_TYPE_NIC_VPORT_CHANGE
	.comm	_general_notification_event,4,2 ## @general_notification_event
	.comm	_MLX5_EVENT_TYPE_GENERAL_EVENT,8,3 ## @MLX5_EVENT_TYPE_GENERAL_EVENT
	.comm	_port_module_event,4,2          ## @port_module_event
	.comm	_MLX5_EVENT_TYPE_PORT_MODULE_EVENT,8,3 ## @MLX5_EVENT_TYPE_PORT_MODULE_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port_module_event is not set\n"

	.comm	_MLX5_EVENT_TYPE_PPS_EVENT,8,3  ## @MLX5_EVENT_TYPE_PPS_EVENT
	.comm	_fpga,4,2                       ## @fpga
	.comm	_MLX5_EVENT_TYPE_FPGA_ERROR,8,3 ## @MLX5_EVENT_TYPE_FPGA_ERROR
	.comm	_MLX5_EVENT_TYPE_FPGA_QP_ERROR,8,3 ## @MLX5_EVENT_TYPE_FPGA_QP_ERROR
	.comm	_dct,4,2                        ## @dct
	.comm	_MLX5_EVENT_TYPE_DCT_DRAINED,8,3 ## @MLX5_EVENT_TYPE_DCT_DRAINED
	.comm	_temp_warn_event,4,2            ## @temp_warn_event
	.comm	_MLX5_EVENT_TYPE_TEMP_WARN_EVENT,8,3 ## @MLX5_EVENT_TYPE_TEMP_WARN_EVENT
	.comm	_tracer_registers,4,2           ## @tracer_registers
	.comm	_MLX5_EVENT_TYPE_DEVICE_TRACER,8,3 ## @MLX5_EVENT_TYPE_DEVICE_TRACER
	.comm	_max_num_of_monitor_counters,4,2 ## @max_num_of_monitor_counters
	.comm	_MLX5_EVENT_TYPE_MONITOR_COUNTER,8,3 ## @MLX5_EVENT_TYPE_MONITOR_COUNTER
	.comm	_MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED,8,3 ## @MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED
	.comm	_event_cap,4,2                  ## @event_cap
	.no_dead_strip	_gather_async_events_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gather_async_events_mask
_gather_async_events_mask:              ; @gather_async_events_mask
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MLX5_ASYNC_EVENT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_ASYNC_EVENT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	bl	_MLX5_VPORT_MANAGER
Lloh3:
	adrp	x8, _MLX5_EVENT_TYPE_NIC_VPORT_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_NIC_VPORT_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w22, #1
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x8, x21
Lloh6:
	adrp	x8, _general_notification_event@GOTPAGE
Lloh7:
	ldr	x8, [x8, _general_notification_event@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
Lloh9:
	adrp	x8, _MLX5_EVENT_TYPE_GENERAL_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_GENERAL_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x21, x8
Lloh12:
	adrp	x8, _port_module_event@GOTPAGE
Lloh13:
	ldr	x8, [x8, _port_module_event@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _MLX5_EVENT_TYPE_PORT_MODULE_EVENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_PORT_MODULE_EVENT@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
	orr	x21, x8, x21
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5_core_dbg
LBB0_3:
	mov	x0, x20
	bl	_MLX5_PPS_CAP
Lloh20:
	adrp	x8, _MLX5_EVENT_TYPE_PPS_EVENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_PPS_EVENT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x8, x21
Lloh23:
	adrp	x8, _fpga@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fpga@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_5
; %bb.4:
Lloh26:
	adrp	x8, _MLX5_EVENT_TYPE_FPGA_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_FPGA_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x8, x9, x8
Lloh29:
	adrp	x10, _MLX5_EVENT_TYPE_FPGA_QP_ERROR@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MLX5_EVENT_TYPE_FPGA_QP_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x8, x21
	orr	x21, x8, x9
LBB0_5:
Lloh32:
	adrp	x8, _dct@GOTPAGE
Lloh33:
	ldr	x8, [x8, _dct@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN_MAX
Lloh35:
	adrp	x8, _MLX5_EVENT_TYPE_DCT_DRAINED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_DCT_DRAINED@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	mov	w22, #1
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x8, x21
Lloh38:
	adrp	x8, _temp_warn_event@GOTPAGE
Lloh39:
	ldr	x8, [x8, _temp_warn_event@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
Lloh41:
	adrp	x8, _MLX5_EVENT_TYPE_TEMP_WARN_EVENT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_TEMP_WARN_EVENT@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x21, x8
Lloh44:
	adrp	x8, _tracer_registers@GOTPAGE
Lloh45:
	ldr	x8, [x8, _tracer_registers@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_MCAM_REG
Lloh47:
	adrp	x8, _MLX5_EVENT_TYPE_DEVICE_TRACER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_DEVICE_TRACER@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x21, x8
Lloh50:
	adrp	x8, _max_num_of_monitor_counters@GOTPAGE
Lloh51:
	ldr	x8, [x8, _max_num_of_monitor_counters@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
Lloh53:
	adrp	x8, _MLX5_EVENT_TYPE_MONITOR_COUNTER@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_MONITOR_COUNTER@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x21, x21, x8
	mov	x0, x20
	bl	_mlx5_eswitch_is_funcs_handler
Lloh56:
	adrp	x8, _MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	lsl	x8, x22, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x8, x21, x8
	str	x8, [x19]
Lloh59:
	adrp	x8, _event_cap@GOTPAGE
Lloh60:
	ldr	x8, [x8, _event_cap@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	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
	b	_gather_user_async_events
LBB0_7:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_ASYNC_EVENT_MASK,8,3      ; @MLX5_ASYNC_EVENT_MASK
	.comm	_MLX5_EVENT_TYPE_NIC_VPORT_CHANGE,8,3 ; @MLX5_EVENT_TYPE_NIC_VPORT_CHANGE
	.comm	_general_notification_event,4,2 ; @general_notification_event
	.comm	_MLX5_EVENT_TYPE_GENERAL_EVENT,8,3 ; @MLX5_EVENT_TYPE_GENERAL_EVENT
	.comm	_port_module_event,4,2          ; @port_module_event
	.comm	_MLX5_EVENT_TYPE_PORT_MODULE_EVENT,8,3 ; @MLX5_EVENT_TYPE_PORT_MODULE_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port_module_event is not set\n"

	.comm	_MLX5_EVENT_TYPE_PPS_EVENT,8,3  ; @MLX5_EVENT_TYPE_PPS_EVENT
	.comm	_fpga,4,2                       ; @fpga
	.comm	_MLX5_EVENT_TYPE_FPGA_ERROR,8,3 ; @MLX5_EVENT_TYPE_FPGA_ERROR
	.comm	_MLX5_EVENT_TYPE_FPGA_QP_ERROR,8,3 ; @MLX5_EVENT_TYPE_FPGA_QP_ERROR
	.comm	_dct,4,2                        ; @dct
	.comm	_MLX5_EVENT_TYPE_DCT_DRAINED,8,3 ; @MLX5_EVENT_TYPE_DCT_DRAINED
	.comm	_temp_warn_event,4,2            ; @temp_warn_event
	.comm	_MLX5_EVENT_TYPE_TEMP_WARN_EVENT,8,3 ; @MLX5_EVENT_TYPE_TEMP_WARN_EVENT
	.comm	_tracer_registers,4,2           ; @tracer_registers
	.comm	_MLX5_EVENT_TYPE_DEVICE_TRACER,8,3 ; @MLX5_EVENT_TYPE_DEVICE_TRACER
	.comm	_max_num_of_monitor_counters,4,2 ; @max_num_of_monitor_counters
	.comm	_MLX5_EVENT_TYPE_MONITOR_COUNTER,8,3 ; @MLX5_EVENT_TYPE_MONITOR_COUNTER
	.comm	_MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED,8,3 ; @MLX5_EVENT_TYPE_ESW_FUNCTIONS_CHANGED
	.comm	_event_cap,4,2                  ; @event_cap
	.no_dead_strip	_gather_async_events_mask
.subsections_via_symbols
