	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_remove_port
_cache_remove_port:                     ## @cache_remove_port
	.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	%r8, %r13
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_OSM_LOG_ENTER
	cmpl	$0, 4(%r12)
	je	LBB0_13
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_cache_get_sw
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	cmpq	%r14, (%rax)
	jbe	LBB0_5
## %bb.4:
	movq	8(%r13), %rax
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %r9
	testq	%r9, %r9
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r9
	jne	LBB0_7
## %bb.8:
	cmpq	$0, (%rax,%rbx)
	setne	%al
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%cl
	movl	(%r12), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpb	%al, %cl
	je	LBB0_12
## %bb.9:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_10
LBB0_5:
	movl	(%r12), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_2:
	movl	(%r12), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_10:
	movq	%r15, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_11:
	movq	%r12, %rdi
	callq	_osm_ucast_cache_invalidate
LBB0_13:
	movl	(%r12), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OSM_LOG_EXIT                   ## TAILCALL
LBB0_7:
	movl	(%r12), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_OSM_LOG
	jmp	LBB0_11
LBB0_12:
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	8(%r13), %rax
	movq	$0, 8(%rax,%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_DEBUG,4,2              ## @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found uncached switch/link (lid %u, port %u)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Found uncached switch link (lid %u, port %u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Remote lid change on switch lid %u, port %u (was %u, now %u)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Remote node type change on switch lid %u, port %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"New link from lid %u, port %u to lid %u - found in cache\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.no_dead_strip	_cache_remove_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_remove_port
_cache_remove_port:                     ; @cache_remove_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_OSM_LOG_ENTER
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_cache_get_sw
	cbz	x0, LBB0_8
; %bb.2:
	mov	x23, x0
	ldr	x8, [x0]
	cmp	x8, x20
	b.ls	LBB0_7
; %bb.3:
	ldr	x9, [x23, #8]
	add	x8, x9, x20, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.4:
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.5:
	lsl	x8, x20, #4
	ldr	x8, [x9, x8]
	cmp	x8, #0
	cset	w8, ne
	cmp	x24, #0
	cset	w9, ne
	ldr	w0, [x19]
Lloh0:
	adrp	x10, _OSM_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	cmp	w9, w8
	b.eq	LBB0_12
; %bb.6:
Lloh3:
	adrp	x2, l_.str.3@PAGE
Lloh4:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _OSM_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _OSM_LOG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
LBB0_9:
	mov	x3, x21
	mov	x4, x20
	bl	_OSM_LOG
	mov	x0, x19
	bl	_osm_ucast_cache_invalidate
LBB0_10:
	ldr	w0, [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
	add	sp, sp, #80
	b	_OSM_LOG_EXIT
LBB0_11:
	ldr	w0, [x19]
Lloh15:
	adrp	x9, _OSM_LOG_DEBUG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	stp	x8, x22, [sp]
	b	LBB0_9
LBB0_12:
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	str	x22, [sp]
	mov	x3, x21
	mov	x4, x20
	bl	_OSM_LOG
	ldr	x8, [x23, #8]
	add	x8, x8, x20, lsl #4
	str	xzr, [x8, #8]
Lloh22:
	adrp	x9, _FALSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	str	x9, [x8]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_DEBUG,4,2              ; @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found uncached switch/link (lid %u, port %u)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Found uncached switch link (lid %u, port %u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Remote lid change on switch lid %u, port %u (was %u, now %u)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Remote node type change on switch lid %u, port %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"New link from lid %u, port %u to lid %u - found in cache\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.no_dead_strip	_cache_remove_port
.subsections_via_symbols
