	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ncci
_get_ncci:                              ## @get_ncci
	.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
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	8(%rdi), %r12
	movq	(%r12), %rax
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rax,%r13,8), %r9
	testq	%r9, %r9
	jne	LBB0_3
## %bb.4:
	movl	%r14d, %ebx
	testl	%r14d, %r14d
	jne	LBB0_35
## %bb.5:
	movq	%rdi, %r15
	movq	_MAX_NCCI@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	leal	1(%r11), %esi
	movslq	%esi, %rax
	cmpq	%r13, %rax
	jbe	LBB0_7
## %bb.6:
	movq	8(%r12), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_30
LBB0_7:
	movl	%esi, %edx
	testl	%r11d, %r11d
	jle	LBB0_8
## %bb.10:
	movq	8(%r12), %rcx
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_11
	jmp	LBB0_13
LBB0_1:
	movq	(%rax), %r9
LBB0_3:
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	movq	8(%r12), %rax
	movq	(%rax,%r9,8), %r8
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	jmp	LBB0_36
LBB0_8:
	movl	$1, %ebx
LBB0_9:
	cmpl	%esi, %ebx
	jne	LBB0_31
LBB0_13:
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%rax)
	movq	_MAX_NL_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	testl	%r11d, %r11d
	jle	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r12), %rbx
	movl	$1, %r9d
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$1, (%rbx,%r9,8)
	je	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=2
	incq	%r9
	incl	%edi
	cmpq	%r9, %rdx
	jne	LBB0_17
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%esi, %r9d
	movl	%esi, %ecx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, %r9d
	movl	$1, %ecx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r9d, %r11d
	movl	%r9d, %ecx
	cmovgl	%r11d, %ecx
	incl	%ecx
	cmpl	%edi, %r11d
	cmovgl	%r11d, %edi
	movq	%r9, %rax
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rax, %rdi
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	leaq	1(%rax), %r8
	cmpq	$1, 8(%rbx,%rax,8)
	movq	%r8, %rax
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%r10d, %r10d
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r11d, %ecx
	jle	LBB0_14
LBB0_26:
	testl	%r10d, %r10d
	jle	LBB0_28
## %bb.27:
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movl	$1, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_dprintf
	jmp	LBB0_29
LBB0_28:
	leaq	L_.str.2(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_dprintf
LBB0_29:
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
LBB0_30:
	movl	%r13d, %ebx
LBB0_31:
	movl	4(%r15), %ecx
	movq	32(%r12), %rdx
	movslq	%ebx, %rax
	movl	%ecx, (%rdx,%rax,4)
	movq	_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	24(%r12), %rdx
	movl	%ecx, (%rdx,%rax,4)
	movslq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.33:
	movq	16(%r12), %rdx
	movq	(%rdx,%rcx,8), %rsi
	movq	%rsi, (%rdx,%rax,8)
	jmp	LBB0_34
LBB0_32:
	movl	%ebx, (%r15)
	movq	16(%r12), %rdx
	movq	%rax, %rcx
LBB0_34:
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r12), %rax
LBB0_35:
	movq	8(%r12), %rcx
	movslq	%ebx, %r9
	movq	%r13, (%rcx,%r9,8)
	movq	%r9, (%rax,%r13,8)
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movq	%r13, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movl	%ebx, %r13d
LBB0_36:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ncci_mapping_bug,4,2           ## @ncci_mapping_bug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NCCI mapping exists %ld %02x %02x %02x-%02x"

	.comm	_MAX_NCCI,4,2                   ## @MAX_NCCI
	.comm	_MAX_NL_CHANNEL,4,2             ## @MAX_NL_CHANNEL
L_.str.1:                               ## @.str.1
	.asciz	"NCCI mapping overflow %ld %02x %02x %02x-%02x-%02x"

L_.str.2:                               ## @.str.2
	.asciz	"NCCI mapping overflow %ld %02x %02x"

	.comm	_IDLE,4,2                       ## @IDLE
L_.str.3:                               ## @.str.3
	.asciz	"NCCI mapping established %ld %02x %02x %02x-%02x"

	.no_dead_strip	_get_ncci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ncci
_get_ncci:                              ; @get_ncci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x19, x1
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
	cbz	x1, LBB0_9
; %bb.1:
	ldr	x9, [x8, x19, lsl #3]
	cbnz	x9, LBB0_10
; %bb.2:
Lloh0:
	adrp	x23, _ncci_mapping_bug@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ncci_mapping_bug@GOTPAGEOFF]
	mov	x24, x20
	cbnz	w20, LBB0_36
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x8, _MAX_NCCI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_NCCI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w9, w8, #1
	mov	x10, x9
	sxtw	x10, w10
	cmp	x10, x19
	b.ls	LBB0_5
; %bb.4:
	ldr	x10, [x22, #8]
	ldr	x10, [x10, x19, lsl #3]
	cbz	x10, LBB0_31
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	ldr	x10, [x22, #8]
	mov	w24, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x24, lsl #3]
	cbz	x11, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	cmp	x9, x24
	b.ne	LBB0_7
	b	LBB0_14
LBB0_9:
	ldr	x9, [x8]
LBB0_10:
Lloh5:
	adrp	x8, _ncci_mapping_bug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ncci_mapping_bug@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w1, w10, #1
	str	w1, [x8]
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x9, lsl #3]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	b	LBB0_37
LBB0_11:
	mov	w24, #1
	b	LBB0_13
LBB0_12:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_13:
	cmp	w24, w9
	b.ne	LBB0_32
LBB0_14:
	ldr	w10, [x23]
	add	w1, w10, #1
	str	w1, [x23]
Lloh9:
	adrp	x10, _MAX_NL_CHANNEL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_NL_CHANNEL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x12, #0
	ldr	x14, [x22, #8]
	mov	w15, #1
	mov	w11, #1
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x14, x11, lsl #3]
	cmp	x13, #1
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x11, x11, #1
	add	w15, w15, #1
	add	x12, x12, #1
	cmp	x9, x11
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x11, x9
	mov	x13, x9
	b	LBB0_25
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w11, #1
	mov	w13, #1
	b	LBB0_25
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, w11
	csel	w13, w8, w11, gt
	add	w13, w13, #1
	cmp	w8, w15
	csel	w15, w8, w15, gt
	sub	x15, x15, #1
	add	x14, x14, #16
LBB0_22:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x15, x12
	b.eq	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x16, [x14, x12, lsl #3]
	add	x12, x12, #1
	cmp	x16, #1
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w13, w12, #1
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w10, #1
	b.lt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w13, w8
	b.le	LBB0_15
LBB0_27:
	cmp	w10, #1
	b.lt	LBB0_29
; %bb.28:
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	mov	w8, #1
	stp	x11, x13, [sp, #8]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_30:
	mov	x2, x19
	mov	w3, #0
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
LBB0_31:
	mov	x24, x19
LBB0_32:
	ldr	w9, [x21, #4]
	sxtw	x8, w24
	sbfiz	x10, x24, #2, #32
	ldp	x12, x11, [x22, #24]
	str	w9, [x11, x10]
Lloh16:
	adrp	x9, _IDLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IDLE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x12, x10]
	ldrsw	x9, [x21]
	cbz	w9, LBB0_34
; %bb.33:
	ldr	x10, [x22, #16]
	ldr	x11, [x10, x9, lsl #3]
	str	x11, [x10, x8, lsl #3]
	b	LBB0_35
LBB0_34:
	str	w24, [x21]
	ldr	x10, [x22, #16]
	mov	x9, x8
LBB0_35:
	str	x8, [x10, x9, lsl #3]
	ldr	x8, [x22]
LBB0_36:
	ldr	x9, [x22, #8]
	mov	x10, x24
	sxtw	x11, w10
	str	x19, [x9, w24, sxtw #3]
	str	x11, [x8, x19, lsl #3]
	ldr	w1, [x23]
	stp	x19, x10, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	mov	x19, x24
LBB0_37:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ncci_mapping_bug,4,2           ; @ncci_mapping_bug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NCCI mapping exists %ld %02x %02x %02x-%02x"

	.comm	_MAX_NCCI,4,2                   ; @MAX_NCCI
	.comm	_MAX_NL_CHANNEL,4,2             ; @MAX_NL_CHANNEL
l_.str.1:                               ; @.str.1
	.asciz	"NCCI mapping overflow %ld %02x %02x %02x-%02x-%02x"

l_.str.2:                               ; @.str.2
	.asciz	"NCCI mapping overflow %ld %02x %02x"

	.comm	_IDLE,4,2                       ; @IDLE
l_.str.3:                               ; @.str.3
	.asciz	"NCCI mapping established %ld %02x %02x %02x-%02x"

	.no_dead_strip	_get_ncci
.subsections_via_symbols
