	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kvm_pt_find                   ## -- Begin function _kvm_pt_find
	.p2align	4, 0x90
__kvm_pt_find:                          ## @_kvm_pt_find
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_BITS_IN
	movl	%eax, %ecx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_POPCOUNT_BITS@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_BITS_IN
	movl	%eax, %ecx
	movq	_NBBY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	8(%r14), %eax
	movl	$-1, %esi
	cmpl	%eax, %r15d
	jae	LBB0_7
## %bb.1:
	movq	_POPCOUNT_BITS@GOTPCREL(%rip), %r8
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	%r9d, %ecx
	testl	%eax, (%rbx,%rcx,4)
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %r14
	movq	%r8, %r13
	movl	(%r8), %esi
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
	shrl	%esi
	cmpl	%esi, %edx
	movq	%rdi, %r12
	jae	LBB0_4
## %bb.3:
	movq	16(%r12), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	callq	_POPCOUNTS_IN
                                        ## kill: def $eax killed $eax def $rax
	imull	%r14d, %eax
	leaq	(%rbx,%rax,4), %rdi
	movl	(%r13), %eax
	imull	%r14d, %eax
	subl	%eax, %r15d
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_popcount_bytes
	movl	%eax, %r14d
	addl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jmp	LBB0_5
LBB0_4:
	leaq	(%rbx,%rcx,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	%r9d, %ebx
	callq	_BITS_IN
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	imull	%ebx, %r12d
	incl	%r14d
	movl	(%r13), %r13d
	imull	%r14d, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ebx
	movq	_uint8_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BITS_IN
	imull	%eax, %ebx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_MIN
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movl	(%rcx,%r14,4), %r14d
	subl	%r12d, %r15d
	subl	%r12d, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_popcount_bytes
	subl	%eax, %r14d
LBB0_5:
	movl	24(%r12), %eax
	xorl	%edx, %edx
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	divl	%r13d
	cmpl	%eax, %r14d
	movl	$-1, %esi
	jae	LBB0_7
## %bb.6:
	imull	%r13d, %r14d
	addl	28(%r12), %r14d
	movl	%r14d, %esi
LBB0_7:
	movl	%esi, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POPCOUNT_BITS,4,2              ## @POPCOUNT_BITS
	.comm	_NBBY,4,2                       ## @NBBY
	.comm	_uint8_t,4,2                    ## @uint8_t
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kvm_pt_find                   ; -- Begin function _kvm_pt_find
	.p2align	2
__kvm_pt_find:                          ; @_kvm_pt_find
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
	ldr	x24, [x0]
	ldr	w0, [x24]
	udiv	w23, w1, w2
	bl	_BITS_IN
	mov	x21, x0
Lloh0:
	adrp	x22, _POPCOUNT_BITS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _POPCOUNT_BITS@GOTPAGEOFF]
	ldr	w25, [x22]
	ldr	w0, [x24]
	bl	_BITS_IN
	ldr	w8, [x20, #8]
Lloh2:
	adrp	x9, _NBBY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NBBY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w8, w9, w8
	cmp	w23, w8
	b.hs	LBB0_7
; %bb.1:
	udiv	w8, w23, w0
	msub	w8, w8, w0, w23
	mov	w9, #1
	lsl	x8, x9, x8
	udiv	w26, w23, w21
	add	x21, x24, w26, uxtw #2
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	ldr	w8, [x22]
	udiv	w9, w23, w8
	msub	w9, w9, w8, w23
	cmp	w9, w8, lsr #1
	udiv	w25, w23, w25
	b.hs	LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	w21, [x8, w25, uxtw #2]
	ldr	w0, [x24]
	bl	_POPCOUNTS_IN
	mul	w8, w0, w25
	add	x0, x24, w8, uxtw #2
	ldr	w8, [x22]
	msub	w2, w8, w25, w23
	mov	w1, #0
	bl	_popcount_bytes
	add	w8, w0, w21
	b	LBB0_5
LBB0_4:
	ldr	w0, [x24]
	bl	_BITS_IN
	mul	w24, w0, w26
	add	w25, w25, #1
	ldr	w8, [x22]
	mul	w22, w8, w25
	ldr	w26, [x20, #8]
Lloh5:
	adrp	x8, _uint8_t@GOTPAGE
Lloh6:
	ldr	x8, [x8, _uint8_t@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BITS_IN
	mul	w1, w0, w26
	mov	x0, x22
	bl	_MIN
	ldr	x8, [x20, #16]
	ldr	w22, [x8, w25, uxtw #2]
	sub	w1, w23, w24
	sub	w2, w0, w24
	mov	x0, x21
	bl	_popcount_bytes
	sub	w8, w22, w0
LBB0_5:
	ldr	w9, [x20, #24]
	udiv	w9, w9, w19
	cmp	w8, w9
	b.hs	LBB0_7
; %bb.6:
	ldr	w9, [x20, #28]
	madd	w0, w8, w19, w9
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POPCOUNT_BITS,4,2              ; @POPCOUNT_BITS
	.comm	_NBBY,4,2                       ; @NBBY
	.comm	_uint8_t,4,2                    ; @uint8_t
.subsections_via_symbols
