	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_bucket
_compute_bucket:                        ## @compute_bucket
	.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
	movq	%r8, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%edi, %r14d
	leaq	-64(%rbp), %r12
	movl	%esi, %edi
	movq	%r12, %rsi
	callq	_init_var_from_num
	leaq	-56(%rbp), %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_init_var_from_num
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_init_var_from_num
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_cmp_var
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rdx, %rsi
	callq	_sub_var
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r12, %rdx
	callq	_sub_var
	movq	%r12, %rbx
	jmp	LBB0_3
LBB0_1:
	leaq	-64(%rbp), %r14
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	movq	%rdi, %rdx
	callq	_sub_var
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_sub_var
LBB0_3:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_select_div_scale
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_div_var
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	addq	(%r15), %rcx
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_mul_var
	movq	_const_one@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_add_var
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_floor_var
	leaq	-64(%rbp), %rdi
	callq	_free_var
	leaq	-56(%rbp), %rdi
	callq	_free_var
	movq	%r12, %rdi
	callq	_free_var
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_const_one,4,2                  ## @const_one
	.no_dead_strip	_compute_bucket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_bucket
_compute_bucket:                        ; @compute_bucket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x8, x1
	mov	x22, x0
	add	x1, sp, #24
	mov	x0, x8
	bl	_init_var_from_num
	add	x1, sp, #16
	mov	x0, x21
	bl	_init_var_from_num
	add	x1, sp, #8
	mov	x0, x22
	bl	_init_var_from_num
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_cmp_var
	tbnz	x0, #63, LBB0_2
; %bb.1:
	add	x21, sp, #24
	add	x0, sp, #24
	add	x1, sp, #8
	add	x2, sp, #8
	bl	_sub_var
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #24
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	add	x1, sp, #24
	add	x2, sp, #8
	bl	_sub_var
	add	x21, sp, #16
	add	x0, sp, #16
	add	x1, sp, #24
	add	x2, sp, #16
LBB0_3:
	bl	_sub_var
	add	x0, sp, #8
	mov	x1, x21
	bl	_select_div_scale
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x19
	mov	w4, #1
	bl	_div_var
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x3, x9, x8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x19
	bl	_mul_var
Lloh0:
	adrp	x1, _const_one@GOTPAGE
Lloh1:
	ldr	x1, [x1, _const_one@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x19
	bl	_add_var
	mov	x0, x19
	mov	x1, x19
	bl	_floor_var
	add	x0, sp, #24
	bl	_free_var
	add	x0, sp, #16
	bl	_free_var
	add	x0, sp, #8
	bl	_free_var
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_const_one,4,2                  ; @const_one
	.no_dead_strip	_compute_bucket
.subsections_via_symbols
