	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_shiftings
_do_shiftings:                          ## @do_shiftings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_evaluate_utility_inc
	movl	$0, -36(%rbp)
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	xorl	%ecx, %ecx
	leaq	-36(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movl	%ecx, -36(%rbp)
	movl	(%rbx), %eax
	cmpl	%eax, %ecx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdx
	movslq	%ecx, %rsi
	movl	(%rdx,%rsi,4), %edx
	imull	%eax, %edx
	cmpl	16(%rbx), %edx
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rcx
	cltq
	cmpq	$0, -8(%rcx,%rax,8)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_get_high_utility_cell
	movl	%eax, -32(%rbp)
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	callq	_get_closest_codebook
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %ecx
	movl	-32(%rbp), %edx
	cmpl	%ecx, %edx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %edx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_try_shift_candidate
	movl	-36(%rbp), %ecx
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_shiftings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_shiftings
_do_shiftings:                          ; @do_shiftings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_evaluate_utility_inc
	str	wzr, [sp, #12]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, #1
	str	w8, [sp, #12]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	w10, [x10, w8, sxtw #2]
	mul	w10, w10, w9
	ldr	w11, [x19, #16]
	cmp	w10, w11
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	sub	w9, w9, #1
	ldr	x8, [x8, w9, sxtw #3]
	cbz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_get_high_utility_cell
	str	w0, [sp, #16]
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_get_closest_codebook
	str	w0, [sp, #20]
	ldp	w8, w9, [sp, #12]
	cmp	w9, w8
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, w0
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	bl	_try_shift_candidate
	ldr	w8, [sp, #12]
	b	LBB0_2
LBB0_8:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_shiftings
.subsections_via_symbols
