	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_async_ev_mask
_get_async_ev_mask:                     ## @get_async_ev_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MLX4_ASYNC_EVENT_MASK@GOTPCREL(%rip), %r8
	movq	_MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	xorl	%edx, %edx
	testl	%eax, (%rdi)
	cmoveq	%rdx, %rsi
	movl	$1, %eax
	orq	(%r8), %rsi
	movq	_MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	_MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	cmoveq	%rdx, %rax
	orq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_ASYNC_EVENT_MASK,8,3      ## @MLX4_ASYNC_EVENT_MASK
	.comm	_MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV,4,2 ## @MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV
	.comm	_MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT,8,3 ## @MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT
	.comm	_MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT,4,2 ## @MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT
	.comm	_MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT,8,3 ## @MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT
	.no_dead_strip	_get_async_ev_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_async_ev_mask
_get_async_ev_mask:                     ; @get_async_ev_mask
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MLX4_ASYNC_EVENT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_ASYNC_EVENT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mov	w11, #1
	lsl	x10, x11, x10
	ldp	w12, w13, [x0]
	tst	w9, w12
	csel	x9, xzr, x10, eq
	orr	x8, x9, x8
Lloh9:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	lsl	x10, x11, x10
	tst	w9, w13
	csel	x9, xzr, x10, eq
	orr	x0, x8, x9
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_ASYNC_EVENT_MASK,8,3      ; @MLX4_ASYNC_EVENT_MASK
	.comm	_MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV,4,2 ; @MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV
	.comm	_MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT,8,3 ; @MLX4_EVENT_TYPE_PORT_MNG_CHG_EVENT
	.comm	_MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT,4,2 ; @MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT
	.comm	_MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT,8,3 ; @MLX4_EVENT_TYPE_RECOVERABLE_ERROR_EVENT
	.no_dead_strip	_get_async_ev_mask
.subsections_via_symbols
