	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_table_build_index
_dm_table_build_index:                  ## @dm_table_build_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	movq	_KEYS_PER_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm_div_up
	movl	%eax, %r14d
	movq	_CHILDREN_PER_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_int_log
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	8(%rbx), %rcx
	cltq
	movl	%r14d, (%rcx,%rax,4)
	movl	16(%rbx), %eax
	movq	24(%rbx), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
	cmpl	$2, (%rbx)
	jl	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_setup_indexes                  ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYS_PER_NODE,4,2              ## @KEYS_PER_NODE
	.comm	_CHILDREN_PER_NODE,4,2          ## @CHILDREN_PER_NODE
	.no_dead_strip	_dm_table_build_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_table_build_index
_dm_table_build_index:                  ; @dm_table_build_index
	.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
	mov	x19, x0
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x8, _KEYS_PER_NODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEYS_PER_NODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dm_div_up
	mov	x20, x0
Lloh3:
	adrp	x8, _CHILDREN_PER_NODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHILDREN_PER_NODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_int_log
	add	w8, w0, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	str	w20, [x8, w0, sxtw #2]
	ldr	w8, [x19, #16]
	ldr	x9, [x19, #24]
	ldrsw	x10, [x19]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_setup_indexes
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYS_PER_NODE,4,2              ; @KEYS_PER_NODE
	.comm	_CHILDREN_PER_NODE,4,2          ; @CHILDREN_PER_NODE
	.no_dead_strip	_dm_table_build_index
.subsections_via_symbols
