	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_selfids
_check_selfids:                         ## @check_selfids
	.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
	movl	(%rdi), %ebx
	movq	24(%rdi), %rcx
	movq	$0, 16(%rdi)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_LOCAL_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$-1, %r10d
	movl	$23, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	addq	$56, %rcx
	testl	%ebx, %ebx
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 48(%rcx)
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx), %esi
	movl	4(%rcx), %edx
	cmpl	%r10d, %esi
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %edx
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r10d
	movl	(%rcx), %esi
	cmpl	%r10d, %esi
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpq	$0, 40(%rcx)
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r9
	movq	%r9, 16(%rdi)
	cmpq	$0, 32(%rcx)
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %edx
	orl	%r10d, %edx
	movl	%edx, 4(%rdi)
	jmp	LBB0_14
LBB0_1:
	movl	$-1, %r10d
LBB0_15:
	cmpq	$0, 16(%rcx)
	movq	_SELFID_PORT_PARENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	je	LBB0_16
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, -48(%rcx)
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, -40(%rcx)
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, -32(%rcx)
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, -24(%rcx)
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, -16(%rcx)
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, -8(%rcx)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, (%rcx)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpq	%rax, 8(%rcx)
	je	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	-80(%rcx), %rdx
	cmpq	$0, -64(%rcx)
	movq	%rdx, %rcx
	jne	LBB0_17
## %bb.28:
	addq	$-56, %rdx
	movq	%rdx, %rcx
	cmpq	%rax, 8(%rcx)
	jne	LBB0_30
	jmp	LBB0_32
LBB0_25:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
LBB0_16:
	addq	$-56, %rcx
	cmpq	%rax, 8(%rcx)
	je	LBB0_32
LBB0_30:
	cmpq	%rax, 16(%rcx)
	je	LBB0_32
## %bb.31:
	cmpq	%rax, 24(%rcx)
	jne	LBB0_33
LBB0_32:
	leaq	L_.str.3(%rip), %rdi
LBB0_26:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_HPSB_INFO
	jmp	LBB0_34
LBB0_11:
	movl	%r10d, %esi
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_HPSB_INFO
	jmp	LBB0_34
LBB0_5:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_HPSB_INFO
	jmp	LBB0_34
LBB0_33:
	incl	%r10d
	movl	%r10d, 8(%rdi)
	movl	$1, %ebx
LBB0_34:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SelfIDs failed monotony check with %d"

	.comm	_LOCAL_BUS,4,2                  ## @LOCAL_BUS
L_.str.1:                               ## @.str.1
	.asciz	"SelfIDs failed monotony check with %d/%d"

	.comm	_SELFID_PORT_PARENT,8,3         ## @SELFID_PORT_PARENT
L_.str.2:                               ## @.str.2
	.asciz	"SelfIDs failed root check on extended SelfID"

L_.str.3:                               ## @.str.3
	.asciz	"SelfIDs failed root check"

	.no_dead_strip	_check_selfids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_selfids
_check_selfids:                         ; @check_selfids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w10, [x0]
	ldr	x9, [x0, #24]
	str	xzr, [x0, #16]
	cbz	w10, LBB0_11
; %bb.1:
	mov	x11, #0
Lloh0:
	adrp	x8, _LOCAL_BUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCAL_BUS@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x8]
	mov	w8, #-1
	mov	w13, #23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #56
	sub	w10, w10, #1
	cbz	w10, LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9, #48]
	cbz	w14, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w15, w14, [x9]
	cmp	w15, w8
	b.ne	LBB0_30
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, w13
	b.ne	LBB0_31
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w13, w13, #1
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	ldr	w13, [x9]
	cmp	w13, w8
	b.ne	LBB0_32
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x9, #40]
	cbz	x13, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #1
	str	x11, [x0, #16]
	ldr	x13, [x9, #32]
	cbz	x13, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w13, #0
	orr	w14, w12, w8
	str	w14, [x0, #4]
	b	LBB0_2
LBB0_11:
	mov	w8, #-1
LBB0_12:
	ldr	x11, [x9, #16]
Lloh3:
	adrp	x10, _SELFID_PORT_PARENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SELFID_PORT_PARENT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cbz	x11, LBB0_25
; %bb.13:
	sub	x9, x9, #24
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-24]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	x11, [x9, #-16]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x9]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x9, #8]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x9, #16]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x9, #24]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x11, [x9, #32]
	cmp	x11, x10
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	x11, [x9, #-40]
	sub	x9, x9, #80
	cbnz	x11, LBB0_14
; %bb.23:
	sub	x9, x9, #32
	b	LBB0_26
LBB0_24:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_25:
	sub	x9, x9, #56
LBB0_26:
	ldr	x11, [x9, #8]
	cmp	x11, x10
	b.eq	LBB0_29
; %bb.27:
	ldr	x11, [x9, #16]
	cmp	x11, x10
	b.eq	LBB0_29
; %bb.28:
	ldr	x9, [x9, #24]
	cmp	x9, x10
	b.ne	LBB0_35
LBB0_29:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_33
LBB0_30:
	mov	x8, x15
LBB0_31:
	stp	x8, x14, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_33
LBB0_32:
	str	x13, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_33:
	bl	_HPSB_INFO
	mov	w0, #0
LBB0_34:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_35:
	add	w8, w8, #1
	str	w8, [x0, #8]
	mov	w0, #1
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SelfIDs failed monotony check with %d"

	.comm	_LOCAL_BUS,4,2                  ; @LOCAL_BUS
l_.str.1:                               ; @.str.1
	.asciz	"SelfIDs failed monotony check with %d/%d"

	.comm	_SELFID_PORT_PARENT,8,3         ; @SELFID_PORT_PARENT
l_.str.2:                               ; @.str.2
	.asciz	"SelfIDs failed root check on extended SelfID"

l_.str.3:                               ; @.str.3
	.asciz	"SelfIDs failed root check"

	.no_dead_strip	_check_selfids
.subsections_via_symbols
