	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_portguid
_replace_portguid:                      ## @replace_portguid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	cmpq	(%rsi), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	incl	28(%rsi)
	movq	8(%rdi), %rcx
	movq	_IB_NODE_SWITCH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.7:
	cmpq	8(%rbx), %rax
	jne	LBB0_10
## %bb.8:
	movq	16(%rbx), %rax
	movq	%rax, (%rdi)
	callq	_update_switchportguids
	jmp	LBB0_9
LBB0_2:
	movl	16(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	movq	24(%rdi), %rcx
	incq	%rax
	movl	$1, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi), %rdi
	cmpq	8(%rbx), %rdi
	jne	LBB0_11
## %bb.6:
	movq	16(%rbx), %rax
	movq	%rax, (%rsi)
LBB0_9:
	incl	24(%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_NODE_SWITCH,8,3             ## @IB_NODE_SWITCH
	.no_dead_strip	_replace_portguid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_portguid
_replace_portguid:                      ; @replace_portguid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x9, [x1]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	mov	x19, x1
	ldr	w9, [x1, #28]
	add	w9, w9, #1
	str	w9, [x1, #28]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _IB_NODE_SWITCH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IB_NODE_SWITCH@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x19, #16]
	str	x8, [x0]
	bl	_update_switchportguids
	b	LBB0_10
LBB0_4:
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	ldr	x9, [x0, #24]
	add	x9, x9, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x10]
	ldr	x12, [x19, #8]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.9:
	ldr	x8, [x19, #16]
	str	x8, [x10]
LBB0_10:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_NODE_SWITCH,8,3             ; @IB_NODE_SWITCH
	.no_dead_strip	_replace_portguid
.subsections_via_symbols
