	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbm_create_pagetable
_tbm_create_pagetable:                  ## @tbm_create_pagetable
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TBM_HASH@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_Assert
	movl	24(%rbx), %edi
	movl	$128, %esi
	movq	%rbx, %rdx
	callq	_pagetable_create
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rcx
	movq	_TBM_ONE_PAGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	8(%rbx), %r14
	movl	8(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_pagetable_insert
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movb	(%r15), %r13b
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_memcpy
	movb	%r13b, (%r15)
LBB0_2:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TBM_HASH,8,3                   ## @TBM_HASH
	.comm	_TBM_ONE_PAGE,8,3               ## @TBM_ONE_PAGE
	.no_dead_strip	_tbm_create_pagetable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbm_create_pagetable
_tbm_create_pagetable:                  ; @tbm_create_pagetable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _TBM_HASH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TBM_HASH@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #24]
	mov	w1, #128
	mov	x2, x19
	bl	_pagetable_create
	str	x0, [x19, #16]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TBM_ONE_PAGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TBM_ONE_PAGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x19
	ldr	w1, [x20, #8]!
	add	x2, sp, #12
	bl	_pagetable_insert
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldrb	w23, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_memcpy
	strb	w23, [x21]
LBB0_2:
	ldr	x8, [x22]
	str	x8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_HASH,8,3                   ; @TBM_HASH
	.comm	_TBM_ONE_PAGE,8,3               ; @TBM_ONE_PAGE
	.no_dead_strip	_tbm_create_pagetable
.subsections_via_symbols
