	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_valid_events
_is_valid_events:                       ## @is_valid_events
	.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	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_event_cap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	_user_affiliated_events@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_DEV_EVENT
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_user_unaffiliated_events@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_DEV_EVENT
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.2:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx,%rax,4), %edi
	callq	_be64_to_cpu
	btq	%r13, %rax
	jae	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %ecx
	movq	_MAX_SUPP_EVENT_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	63(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movl	%eax, %edx
	andl	$-64, %edx
	movl	%ecx, %r13d
	subl	%edx, %r13d
	sarl	$6, %eax
	testq	%r14, %r14
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_11:
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_is_valid_events_legacy         ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_event_cap,4,2                  ## @event_cap
	.comm	_user_affiliated_events,4,2     ## @user_affiliated_events
	.comm	_user_unaffiliated_events,4,2   ## @user_unaffiliated_events
	.comm	_MAX_SUPP_EVENT_NUM,4,2         ## @MAX_SUPP_EVENT_NUM
	.no_dead_strip	_is_valid_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_valid_events
_is_valid_events:                       ; @is_valid_events
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _event_cap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _event_cap@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	x0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _user_affiliated_events@GOTPAGE
Lloh4:
	ldr	x8, [x8, _user_affiliated_events@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5_CAP_DEV_EVENT
	mov	x21, x0
Lloh6:
	adrp	x8, _user_unaffiliated_events@GOTPAGE
Lloh7:
	ldr	x8, [x8, _user_unaffiliated_events@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5_CAP_DEV_EVENT
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x22, x0
	mov	w23, w23
Lloh9:
	adrp	x24, _MAX_SUPP_EVENT_NUM@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MAX_SUPP_EVENT_NUM@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22, w9, sxtw #2]
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_be64_to_cpu
	lsr	x8, x0, x25
	tbz	w8, #0, LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #4
	subs	x23, x23, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w9, w8, #63
	cmp	w8, #0
	csel	w10, w9, w8, lt
	asr	w9, w10, #6
	and	w10, w10, #0xffffffc0
	sub	w25, w8, w10
	cbz	x19, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21, w9, sxtw #2]
	b	LBB0_4
LBB0_10:
	mov	x0, x23
	mov	x1, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_is_valid_events_legacy
LBB0_11:
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_event_cap,4,2                  ; @event_cap
	.comm	_user_affiliated_events,4,2     ; @user_affiliated_events
	.comm	_user_unaffiliated_events,4,2   ; @user_unaffiliated_events
	.comm	_MAX_SUPP_EVENT_NUM,4,2         ; @MAX_SUPP_EVENT_NUM
	.no_dead_strip	_is_valid_events
.subsections_via_symbols
