	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smp_snoop
_smp_snoop:                             ## @smp_snoop
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r12d
	callq	_to_mdev
	movq	%rax, %r13
	movq	(%r14), %rbx
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_2
## %bb.1:
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_22
LBB0_2:
	movq	8(%r14), %rax
	movq	_IB_MGMT_METHOD_SET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.3:
	movl	16(%r14), %eax
	cmpl	$130, %eax
	je	LBB0_18
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_22
## %bb.6:
	movl	12(%rbx), %edi
	callq	_be16_to_cpu
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_be16_to_cpu
	movl	(%rbx), %ecx
	andl	$15, %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_update_sm_ah
	testb	$-128, 4(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_handle_client_rereg_event
LBB0_8:
	cmpq	%r15, %r14
	je	LBB0_22
## %bb.9:
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_handle_lid_change_event        ## TAILCALL
LBB0_18:
	movl	4(%r13), %edi
	callq	_mlx4_is_master
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	_IB_EVENT_GID_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_mlx4_ib_dispatch_event
LBB0_20:
	movl	4(%r13), %edi
	callq	_mlx4_is_master
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	cmpl	$0, (%r13)
	jne	LBB0_22
## %bb.24:
	movl	8(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_mlx4_ib_update_cache_on_guid_change
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%r14, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_ib_notify_slaves_on_guid_change ## TAILCALL
LBB0_10:
	movl	4(%r13), %edi
	callq	_mlx4_is_mfunc
	testl	%eax, %eax
	je	LBB0_23
## %bb.11:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_be32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movzwl	%ax, %ecx
	movq	(%r14), %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	shll	$5, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%r12), %ecx
	movslq	%ecx, %r13
	movzwl	%ax, %r14d
	shlq	$8, %r14
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	cmpq	$32, %r12
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r12,4), %edi
	callq	_be16_to_cpu
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%r12), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r15,%r12,4), %edi
	callq	_be16_to_cpu
	movq	8(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	addq	%r14, %rcx
	cmpq	(%rcx,%r12,8), %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btsl	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15,%r12,4), %edi
	callq	_be16_to_cpu
	movq	8(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	addq	%r14, %rcx
	movq	%rax, (%rcx,%r12,8)
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	testl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_22
## %bb.16:
	movq	_IB_EVENT_PKEY_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mlx4_ib_dispatch_event
	cmpl	$0, (%r15)
	je	LBB0_17
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_IB_EVENT_PKEY_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_ib_dispatch_event         ## TAILCALL
LBB0_17:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___propagate_pkey_ev            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ## @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_METHOD_SET,8,3         ## @IB_MGMT_METHOD_SET
	.comm	_IB_EVENT_PKEY_CHANGE,4,2       ## @IB_EVENT_PKEY_CHANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKEY[%d] = x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"PKEY Change event: port=%d, block=0x%x, change_bitmap=0x%x\n"

	.comm	_IB_EVENT_GID_CHANGE,4,2        ## @IB_EVENT_GID_CHANGE
	.no_dead_strip	_smp_snoop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smp_snoop
_smp_snoop:                             ; @smp_snoop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	bl	_to_mdev
	ldr	x24, [x23]
Lloh0:
	adrp	x8, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x24, x8
	ccmp	x24, x9, #4, ne
	b.ne	LBB0_21
; %bb.1:
	ldr	x8, [x23, #8]
Lloh6:
	adrp	x9, _IB_MGMT_METHOD_SET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_MGMT_METHOD_SET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.2:
	mov	x20, x0
	ldr	w8, [x23, #16]
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_21
; %bb.5:
	ldr	w0, [x24, #12]
	bl	_be16_to_cpu
	mov	x22, x0
	ldr	w0, [x24, #8]
	bl	_be16_to_cpu
	mov	x2, x0
	ldr	w8, [x24]
	and	w3, w8, #0xf
	mov	x0, x20
	mov	x1, x19
	bl	_update_sm_ah
	ldrb	w8, [x24, #4]
	tbz	w8, #7, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_handle_client_rereg_event
LBB0_7:
	cmp	x22, x21
	b.eq	LBB0_21
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_handle_lid_change_event
LBB0_9:
	ldr	w0, [x20, #4]
	bl	_mlx4_is_master
	cbnz	w0, LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _IB_EVENT_GID_CHANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_EVENT_GID_CHANGE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_ib_dispatch_event
LBB0_11:
	ldr	w0, [x20, #4]
	bl	_mlx4_is_master
	cbz	w0, LBB0_21
; %bb.12:
	ldr	w8, [x20]
	cbnz	w8, LBB0_21
; %bb.13:
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_mlx4_ib_update_cache_on_guid_change
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mlx4_ib_notify_slaves_on_guid_change
LBB0_14:
	ldr	w0, [x20, #4]
	bl	_mlx4_is_mfunc
	cbz	w0, LBB0_22
; %bb.15:
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	mov	w21, #0
	and	w22, w0, #0xffff
	ldr	x25, [x23]
	lsl	w23, w22, #5
	sub	w8, w19, #1
	sxtw	x26, w8
	mov	x27, #-32
Lloh12:
	adrp	x24, l_.str@PAGE
Lloh13:
	add	x24, x24, l_.str@PAGEOFF
	mov	w28, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	add	x25, x25, #4
	adds	x27, x27, #1
	b.hs	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pr_debug
	ldr	w0, [x25]
	bl	_be16_to_cpu
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	lsl	w8, w28, w27
	orr	w21, w8, w21
	ldr	w0, [x25]
	bl	_be16_to_cpu
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x26, lsl #3]
	str	x0, [x8, x23, lsl #3]
	b	LBB0_16
LBB0_19:
	str	x21, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_pr_debug
	cbz	w21, LBB0_21
; %bb.20:
Lloh16:
	adrp	x8, _IB_EVENT_PKEY_CHANGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_EVENT_PKEY_CHANGE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_ib_dispatch_event
	ldr	w8, [x20]
	cbz	w8, LBB0_23
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
Lloh19:
	adrp	x8, _IB_EVENT_PKEY_CHANGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IB_EVENT_PKEY_CHANGE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mlx4_ib_dispatch_event
LBB0_23:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	___propagate_pkey_ev
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ; @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_MGMT_METHOD_SET,8,3         ; @IB_MGMT_METHOD_SET
	.comm	_IB_EVENT_PKEY_CHANGE,4,2       ; @IB_EVENT_PKEY_CHANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKEY[%d] = x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"PKEY Change event: port=%d, block=0x%x, change_bitmap=0x%x\n"

	.comm	_IB_EVENT_GID_CHANGE,4,2        ; @IB_EVENT_GID_CHANGE
	.no_dead_strip	_smp_snoop
.subsections_via_symbols
