	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function notify_port_conf_change
_notify_port_conf_change:               ## @notify_port_conf_change
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %r12
	leal	-1(%r14), %eax
	cltq
	leaq	(%rax,%rax,4), %rbx
	leaq	-80(%rbp), %rdx
	callq	_ehca_query_sma_attr
	movq	-80(%rbp), %rax
	cmpq	(%r12,%rbx,8), %rax
	jne	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rax
	cmpq	8(%r12,%rbx,8), %rax
	je	LBB0_3
LBB0_2:
	movq	_IB_EVENT_SM_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dispatch_port_event
LBB0_3:
	movq	-64(%rbp), %rax
	cmpq	16(%r12,%rbx,8), %rax
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rax
	cmpq	24(%r12,%rbx,8), %rax
	je	LBB0_6
LBB0_5:
	movq	_IB_EVENT_LID_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dispatch_port_event
LBB0_6:
	leaq	(%r12,%rbx,8), %r13
	movl	-48(%rbp), %edx
	cmpl	32(%r12,%rbx,8), %edx
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi
	movl	36(%r12,%rbx,8), %esi
	shll	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_IB_EVENT_PKEY_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dispatch_port_event
LBB0_9:
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r13)
	movups	-80(%rbp), %xmm0
	movups	-64(%rbp), %xmm1
	movups	%xmm1, 16(%r13)
	movups	%xmm0, (%r13)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_EVENT_SM_CHANGE,4,2         ## @IB_EVENT_SM_CHANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SM changed"

	.comm	_IB_EVENT_LID_CHANGE,4,2        ## @IB_EVENT_LID_CHANGE
L_.str.1:                               ## @.str.1
	.asciz	"LID changed"

	.comm	_IB_EVENT_PKEY_CHANGE,4,2       ## @IB_EVENT_PKEY_CHANGE
L_.str.2:                               ## @.str.2
	.asciz	"P_Key changed"

	.no_dead_strip	_notify_port_conf_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function notify_port_conf_change
_notify_port_conf_change:               ; @notify_port_conf_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	sxtw	x8, w19
	sub	x23, x8, #1
	mov	w8, #40
	madd	x21, x23, x8, x22
	add	x2, sp, #8
	bl	_ehca_query_sma_attr
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp, #16]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _IB_EVENT_SM_CHANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_EVENT_SM_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_dispatch_port_event
LBB0_3:
	ldr	x8, [sp, #24]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [sp, #32]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	x9, [x9, #24]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _IB_EVENT_LID_CHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_EVENT_LID_CHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_dispatch_port_event
LBB0_6:
	ldr	w8, [sp, #40]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	w9, [x9, #32]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [sp, #44]
	mov	w9, #40
	madd	x9, x23, x9, x22
	ldr	w1, [x9, #36]
	lsl	w2, w8, #2
	bl	_memcmp
	cbz	x0, LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _IB_EVENT_PKEY_CHANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_EVENT_PKEY_CHANGE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_dispatch_port_event
LBB0_9:
	ldur	q0, [sp, #8]
	ldur	q1, [sp, #24]
	ldr	x8, [sp, #40]
	str	x8, [x21, #32]
	stp	q0, q1, [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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_EVENT_SM_CHANGE,4,2         ; @IB_EVENT_SM_CHANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SM changed"

	.comm	_IB_EVENT_LID_CHANGE,4,2        ; @IB_EVENT_LID_CHANGE
l_.str.1:                               ; @.str.1
	.asciz	"LID changed"

	.comm	_IB_EVENT_PKEY_CHANGE,4,2       ; @IB_EVENT_PKEY_CHANGE
l_.str.2:                               ; @.str.2
	.asciz	"P_Key changed"

	.no_dead_strip	_notify_port_conf_change
.subsections_via_symbols
