	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_intermediate
_make_intermediate:                     ## @make_intermediate
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rsi), %esi
	callq	_esid2idx
	movq	24(%r14), %rcx
	cltq
	movq	(%rcx,%rax,8), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_esid2base
	xorl	%edi, %edi
	cmpq	8(%r13), %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%r13), %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_esid2base
	movq	%rax, %r15
	movq	8(%r13), %rdi
	movl	%ebx, %esi
	callq	_esid2base
	cmpq	%rax, %r15
	jne	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	(%r14), %ebx
	setl	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movq	_slbt_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_uma_zalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movl	%ebx, (%r15)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_esid2base
	movq	%rax, 8(%r15)
	movq	8(%r13), %rdi
	movl	(%r15), %esi
	callq	_esid2idx
	movq	24(%r15), %rcx
	movslq	%eax, %rsi
	movq	%r13, (%rcx,%rsi,8)
	leaq	16(%r15), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_setbit
	xorl	%eax, %eax
	callq	_powerpc_lwsync
	movq	8(%r15), %rdi
	movl	(%r14), %esi
	callq	_esid2idx
	movq	24(%r14), %rcx
	movslq	%eax, %rsi
	movq	%r15, (%rcx,%rsi,8)
	addq	$16, %r14
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_setbit
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No need for an intermediate node?"

	.comm	_slbt_zone,4,2                  ## @slbt_zone
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.2:                               ## @.str.2
	.asciz	"unhandled NULL case"

	.no_dead_strip	_make_intermediate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_intermediate
_make_intermediate:                     ; @make_intermediate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	w1, [x1]
	bl	_esid2idx
	ldr	x8, [x19, #24]
	ldr	x23, [x8, w0, sxtw #3]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_esid2base
	ldr	x8, [x23, #8]
	cmp	x0, x8
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w21, [x23]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x20
	mov	x1, x21
	bl	_esid2base
	mov	x22, x0
	ldr	x0, [x23, #8]
	mov	x1, x21
	bl	_esid2base
	cmp	x22, x0
	b.ne	LBB0_1
; %bb.2:
	ldr	w8, [x19]
	cmp	w21, w8
	cset	w0, lt
	mov	x1, x19
	bl	_KASSERT
Lloh2:
	adrp	x8, _slbt_zone@GOTPAGE
Lloh3:
	ldr	x8, [x8, _slbt_zone@GOTPAGEOFF]
Lloh4:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_uma_zalloc
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	str	w21, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_esid2base
	str	x0, [x22, #8]
	ldr	x0, [x23, #8]
	ldr	w1, [x22]
	bl	_esid2idx
	mov	x1, x0
	ldr	x8, [x22, #24]
	str	x23, [x8, w0, sxtw #3]
	add	x0, x22, #16
	bl	_setbit
	bl	_powerpc_lwsync
	ldr	x0, [x22, #8]
	ldr	w1, [x19]
	bl	_esid2idx
	mov	x1, x0
	ldr	x8, [x19, #24]
	str	x22, [x8, w0, sxtw #3]
	add	x0, x19, #16
	bl	_setbit
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No need for an intermediate node?"

	.comm	_slbt_zone,4,2                  ; @slbt_zone
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.2:                               ; @.str.2
	.asciz	"unhandled NULL case"

	.no_dead_strip	_make_intermediate
.subsections_via_symbols
