	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbm_mark_page_lossy
_tbm_mark_page_lossy:                   ## @tbm_mark_page_lossy
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_TBM_HASH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_tbm_create_pagetable
LBB0_2:
	movq	_PAGES_PER_CHUNK@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %r14d
	movl	%ebx, %r15d
	subl	%edx, %r15d
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:
	movl	20(%r12), %edi
	movl	%ebx, %esi
	callq	_pagetable_delete
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	decl	16(%r12)
	decl	8(%r12)
LBB0_5:
	movl	20(%r12), %edi
	leaq	-44(%rbp), %rdx
	movl	%r15d, %esi
	callq	_pagetable_insert
	movq	%rax, %rbx
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.7:
	cmpl	$0, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	movb	(%rbx), %r13b
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_MemSet
	movb	%r13b, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	$1, 8(%rbx)
	movq	16(%rbx), %rax
	movl	$1, (%rax)
	incl	12(%r12)
	decl	8(%r12)
	jmp	LBB0_9
LBB0_6:
	movb	(%rbx), %r13b
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_MemSet
	movb	%r13b, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	$1, 8(%rbx)
	incl	16(%r12)
	incl	12(%r12)
LBB0_9:
	movl	%r14d, %edi
	callq	_WORDNUM
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_BITNUM
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	16(%rbx), %rax
	movslq	%r15d, %rcx
	orl	%edx, (%rax,%rcx,4)
	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	_PAGES_PER_CHUNK,4,2            ## @PAGES_PER_CHUNK
	.no_dead_strip	_tbm_mark_page_lossy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tbm_mark_page_lossy
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tbm_mark_page_lossy:                   ; @tbm_mark_page_lossy
	.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	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TBM_HASH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBM_HASH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_tbm_create_pagetable
LBB0_2:
Lloh3:
	adrp	x8, _PAGES_PER_CHUNK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGES_PER_CHUNK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w22, w8
	mul	w21, w9, w8
	subs	w20, w22, w21
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19, #20]
	mov	x1, x22
	bl	_pagetable_delete
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #8]
LBB0_5:
	ldr	w0, [x19, #20]
	add	x2, sp, #12
	mov	x1, x21
	bl	_pagetable_insert
	mov	x22, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_9
; %bb.7:
	ldrb	w23, [x22]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #24
	bl	_MemSet
	strb	w23, [x22]
	mov	w8, #1
	stp	w21, w8, [x22, #4]
	ldr	x9, [x22, #16]
	str	w8, [x9]
	ldr	d0, [x19, #8]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [x19, #8]
	b	LBB0_9
LBB0_8:
	ldrb	w23, [x22]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #24
	bl	_MemSet
	strb	w23, [x22]
	mov	w8, #1
	stp	w21, w8, [x22, #4]
	ldur	d0, [x19, #12]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x19, #12]
LBB0_9:
	mov	x0, x20
	bl	_WORDNUM
	mov	x19, x0
	mov	x0, x20
	bl	_BITNUM
	mov	w8, #1
	lsl	w8, w8, w0
	ldr	x9, [x22, #16]
	sbfiz	x10, x19, #2, #32
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_HASH,8,3                   ; @TBM_HASH
	.comm	_PAGES_PER_CHUNK,4,2            ; @PAGES_PER_CHUNK
	.no_dead_strip	_tbm_mark_page_lossy
.subsections_via_symbols
