	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimizechoice
_optimizechoice:                        ## @optimizechoice
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_IChoice@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_assert
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	callq	_ischeck
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_sizei
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_rotate
	movq	%r12, %rdi
	callq	_ischeck
	movslq	%r14d, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rax
	shlq	$4, %rax
	movq	(%r12,%rax), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_assert
	movq	%r12, %rdi
	callq	_op_step
	movq	%r14, %rbx
	shlq	$4, %rbx
	movl	%eax, 12(%r12,%rbx)
	movl	8(%r12,%rbx), %esi
	movq	%r12, %rdi
	callq	_check2test
	subl	%r14d, 8(%r12,%rbx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IChoice,8,3                    ## @IChoice
	.no_dead_strip	_optimizechoice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimizechoice
_optimizechoice:                        ; @optimizechoice
	.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	x19, x0
	mov	x20, x0
	ldr	x8, [x20], #16
Lloh0:
	adrp	x21, _IChoice@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IChoice@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	bl	_ischeck
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_sizei
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_rotate
	mov	x0, x19
	bl	_ischeck
	sxtw	x20, w20
	cbz	x0, LBB0_3
; %bb.2:
	lsl	x8, x20, #4
	ldr	x8, [x19, x8]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
LBB0_3:
	bl	_assert
	mov	x0, x19
	bl	_op_step
	add	x21, x19, x20, lsl #4
	str	w0, [x21, #12]
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_check2test
	ldr	w8, [x21, #8]
	sub	w8, w8, w20
	str	w8, [x21, #8]
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IChoice,8,3                    ; @IChoice
	.no_dead_strip	_optimizechoice
.subsections_via_symbols
