	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__modulong                      ## -- Begin function _modulong
	.p2align	4, 0x90
__modulong:                             ## @_modulong
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_MSB_SET
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rcx,%rcx), %r14
	cmpq	%rbx, %r14
	ja	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incb	%r15b
	movq	%r14, %rdi
	callq	_MSB_SET
	movq	%r14, %rcx
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movabsq	$9223372036854775807, %rax      ## imm = 0x7FFFFFFFFFFFFFFF
	andq	%rax, %rcx
	movq	%rcx, %r14
LBB0_5:
	leal	1(%r15), %eax
	andb	$3, %al
	je	LBB0_6
## %bb.7:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rbx
	movl	$0, %edx
	cmovaeq	%r14, %rdx
	subq	%rdx, %rbx
	shrq	%r14
	incb	%cl
	cmpb	%cl, %al
	jne	LBB0_8
## %bb.9:
	movl	%r15d, %eax
	subb	%cl, %al
	cmpb	$3, %r15b
	jb	LBB0_21
	jmp	LBB0_11
LBB0_6:
	movl	%r15d, %eax
	cmpb	$3, %r15b
	jae	LBB0_11
LBB0_21:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	incb	%al
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	subq	%rdx, %rbx
	shrq	$4, %r14
	addb	$-4, %al
	je	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, %ecx
	cmpq	%r14, %rbx
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rcx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	subq	%rcx, %rbx
	movq	%r14, %rcx
	shrq	%rcx
	movl	$0, %edx
	cmpq	%rcx, %rbx
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rcx, %rdx
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	subq	%rdx, %rbx
	movq	%r14, %rcx
	shrq	$2, %rcx
	movl	$0, %edx
	cmpq	%rcx, %rbx
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rcx, %rdx
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	subq	%rdx, %rbx
	movq	%r14, %rcx
	shrq	$3, %rcx
	movl	$0, %edx
	cmpq	%rcx, %rbx
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rcx, %rdx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__modulong                      ; -- Begin function _modulong
	.p2align	2
__modulong:                             ; @_modulong
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_MSB_SET
	mov	w21, #0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x8, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x20, x8, #1
	cmp	x20, x19
	b.hi	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	mov	x0, x20
	bl	_MSB_SET
	mov	x8, x20
	cbz	w0, LBB0_2
	b	LBB0_5
LBB0_4:
	and	x20, x8, #0x7fffffffffffffff
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x20
	csel	x8, xzr, x20, lo
	sub	x19, x19, x8
	lsr	x20, x20, #1
	sub	w8, w21, #1
	tst	w21, #0xff
	mov	x21, x8
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
