	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbm_page_is_lossy
_tbm_page_is_lossy:                     ## @tbm_page_is_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_TBM_HASH@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_PAGES_PER_CHUNK@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %r14d
	subl	%edx, %r15d
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	callq	_pagetable_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movl	%r14d, %edi
	callq	_WORDNUM
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_BITNUM
	movl	%eax, %ecx
	movq	(%rbx), %rax
	movslq	%r15d, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	$1, %eax
	btl	%ecx, %edx
	jb	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	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_page_is_lossy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbm_page_is_lossy
_tbm_page_is_lossy:                     ; @tbm_page_is_lossy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _TBM_HASH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TBM_HASH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _PAGES_PER_CHUNK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGES_PER_CHUNK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w19, w8
	mul	w21, w9, w8
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_pagetable_lookup
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.3:
	sub	w19, w19, w21
	mov	x0, x19
	bl	_WORDNUM
	mov	x21, x0
	mov	x0, x19
	bl	_BITNUM
	ldr	x8, [x20]
	ldr	w8, [x8, w21, sxtw #2]
	lsr	w8, w8, w0
	tbz	w8, #0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TBM_HASH,8,3                   ; @TBM_HASH
	.comm	_PAGES_PER_CHUNK,4,2            ; @PAGES_PER_CHUNK
	.no_dead_strip	_tbm_page_is_lossy
.subsections_via_symbols
