	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_selfid_complete           ## -- Begin function hpsb_selfid_complete
	.p2align	4, 0x90
_hpsb_selfid_complete:                  ## @hpsb_selfid_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_NOTICE
LBB0_2:
	movq	_LOCAL_BUS@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, (%rbx)
	movl	%r14d, 4(%rbx)
	movq	%rbx, %rdi
	callq	_check_selfids
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	$0, 64(%rbx)
	movl	56(%rbx), %esi
	movq	%rbx, %rdi
	callq	_build_speed_map
	jmp	LBB0_6
LBB0_3:
	movq	64(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 64(%rbx)
	cmpq	$19, %rax
	jg	LBB0_4
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_HPSB_NOTICE
	movq	$0, 24(%rbx)
	movq	_LONG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hpsb_reset_bus                 ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_HPSB_NOTICE
	leaq	L_.str.3(%rip), %rdi
	callq	_HPSB_NOTICE
	movq	$0, 64(%rbx)
LBB0_6:
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_HPSB_VERBOSE
	movl	8(%rbx), %ecx
	movl	$1, %eax
	cmpl	(%rbx), %ecx
	je	LBB0_8
## %bb.7:
	movq	$0, 48(%rbx)
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, 12(%rbx)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movq	40(%rbx), %rax
	movq	_ACT_CYCLE_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	*(%rax)
	movl	$1, 16(%rbx)
LBB0_10:
	leaq	32(%rbx), %rdi
	callq	_atomic_inc
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_highlevel_host_reset           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SelfID completion called outside of bus reset!"

	.comm	_LOCAL_BUS,4,2                  ## @LOCAL_BUS
L_.str.1:                               ## @.str.1
	.asciz	"Error in SelfID stage, resetting"

	.comm	_LONG_RESET,4,2                 ## @LONG_RESET
L_.str.2:                               ## @.str.2
	.asciz	"Stopping out-of-control reset loop"

L_.str.3:                               ## @.str.3
	.asciz	"Warning - topology map and speed map will not be valid"

L_.str.4:                               ## @.str.4
	.asciz	"selfid_complete called with successful SelfID stage ... irm_id: 0x%X node_id: 0x%X"

	.comm	_ACT_CYCLE_MASTER,4,2           ## @ACT_CYCLE_MASTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_selfid_complete           ; -- Begin function hpsb_selfid_complete
	.p2align	2
_hpsb_selfid_complete:                  ; @hpsb_selfid_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_NOTICE
LBB0_2:
Lloh2:
	adrp	x8, _LOCAL_BUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOCAL_BUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w21
	stp	w8, w20, [x19]
	mov	x0, x19
	bl	_check_selfids
	cbz	w0, LBB0_4
; %bb.3:
	str	xzr, [x19, #64]
	ldr	w1, [x19, #56]
	mov	x0, x19
	bl	_build_speed_map
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19, #64]
	add	x9, x8, #1
	str	x9, [x19, #64]
	cmp	x8, #19
	b.gt	LBB0_6
; %bb.5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPSB_NOTICE
	str	xzr, [x19, #24]
Lloh7:
	adrp	x8, _LONG_RESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LONG_RESET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hpsb_reset_bus
LBB0_6:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_HPSB_NOTICE
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_HPSB_NOTICE
	str	xzr, [x19, #64]
LBB0_7:
	ldr	w1, [x19, #8]
	ldr	w2, [x19]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_HPSB_VERBOSE
	ldr	w8, [x19, #8]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #12]
	cbnz	w20, LBB0_10
	b	LBB0_11
LBB0_9:
	mov	w8, #0
	str	xzr, [x19, #48]
	str	w8, [x19, #12]
	cbz	w20, LBB0_11
LBB0_10:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ACT_CYCLE_MASTER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ACT_CYCLE_MASTER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	blr	x8
	str	w20, [x19, #16]
LBB0_11:
	add	x0, x19, #32
	bl	_atomic_inc
	str	xzr, [x19, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_highlevel_host_reset
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SelfID completion called outside of bus reset!"

	.comm	_LOCAL_BUS,4,2                  ; @LOCAL_BUS
l_.str.1:                               ; @.str.1
	.asciz	"Error in SelfID stage, resetting"

	.comm	_LONG_RESET,4,2                 ; @LONG_RESET
l_.str.2:                               ; @.str.2
	.asciz	"Stopping out-of-control reset loop"

l_.str.3:                               ; @.str.3
	.asciz	"Warning - topology map and speed map will not be valid"

l_.str.4:                               ; @.str.4
	.asciz	"selfid_complete called with successful SelfID stage ... irm_id: 0x%X node_id: 0x%X"

	.comm	_ACT_CYCLE_MASTER,4,2           ; @ACT_CYCLE_MASTER
.subsections_via_symbols
