	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kvm_bitmap_next               ## -- Begin function _kvm_bitmap_next
	.p2align	4, 0x90
__kvm_bitmap_next:                      ## @_kvm_bitmap_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CHAR_BIT@GOTPCREL(%rip), %r9
	movq	(%r9), %r8
	imulq	(%rdi), %r8
	movq	(%rsi), %rcx
	movq	_ULONG_MAX@GOTPCREL(%rip), %r10
	leaq	1(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	(%r10), %rcx
	movl	$0, %r11d
	cmovneq	%rdx, %r11
	movq	%r11, (%rsi)
	cmpq	%r8, %r11
	jge	LBB0_12
## %bb.1:
	movq	8(%rdi), %r10
	movq	(%r9), %rdi
	movq	%r11, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.2:
	movq	%r11, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_4
LBB0_3:
	movl	%r11d, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	imulq	%r11, %rdi
	testl	%edx, (%r10,%rdi,4)
	je	LBB0_13
## %bb.5:
	incq	%r11
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdi, %rax
	cqto
	idivq	%rcx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	imulq	%rdi, %rcx
	leaq	1(%rdi), %r11
	testl	%edx, (%r10,%rcx,4)
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r11, %rdi
	movq	%r11, (%rsi)
	cmpq	%r11, %r8
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r9), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	jmp	LBB0_7
LBB0_11:
	xorl	%eax, %eax
	cmpq	%r8, %rdi
	setl	%al
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_13:
	movl	$1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,8,3                   ## @CHAR_BIT
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kvm_bitmap_next               ; -- Begin function _kvm_bitmap_next
	.p2align	2
__kvm_bitmap_next:                      ; @_kvm_bitmap_next
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
	ldr	x10, [x8]
	mul	x9, x10, x9
Lloh2:
	adrp	x10, _ULONG_MAX@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ULONG_MAX@GOTPAGEOFF]
	ldr	x11, [x1]
Lloh4:
	ldr	x10, [x10]
	cmp	x11, x10
	csinc	x11, xzr, x11, eq
	str	x11, [x1]
	cmp	x11, x9
	b.ge	LBB0_6
; %bb.1:
	ldr	x10, [x0, #8]
	ldr	x12, [x8]
	sdiv	x13, x11, x12
	msub	w13, w13, w12, w11
	mul	x12, x12, x11
	ldr	w12, [x10, x12, lsl #2]
	tst	w12, w13
	b.eq	LBB0_7
; %bb.2:
	add	x12, x11, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x12
	str	x12, [x1]
	cmp	x9, x12
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x8]
	sdiv	x13, x11, x12
	msub	w13, w13, w12, w11
	mul	x12, x12, x11
	ldr	w14, [x10, x12, lsl #2]
	add	x12, x11, #1
	tst	w14, w13
	b.ne	LBB0_3
LBB0_5:
	cmp	x11, x9
	cset	w0, lt
	ret
LBB0_6:
	mov	w0, #0
	ret
LBB0_7:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,8,3                   ; @CHAR_BIT
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
.subsections_via_symbols
