	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_choice
_find_choice:                           ## @find_choice
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %r14d
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_16
## %bb.1:
	cmpl	$0, 4(%rbx)
	movl	%r14d, %ecx
	jle	LBB0_20
## %bb.2:
	movq	%rdi, %r15
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$256, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x100
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	8(%rbx), %rcx
	movq	(%rcx,%r13,8), %r14
	xorl	%r12d, %r12d
	testb	%al, %al
	je	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14,%r12), %ecx
	testb	%cl, %cl
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	%cl, %al
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movzbl	1(%r15,%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r12, %r14
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r12, %r14
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movsbl	%al, %edi
	callq	_Value
	movl	%eax, %ebx
	movsbl	(%r14), %edi
	callq	_Value
	subl	%eax, %ebx
	movl	%ebx, %eax
	negl	%eax
	cmovsl	%ebx, %eax
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, (%rbx)
	movl	%r12d, %ecx
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	4(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	(%r15), %al
	jmp	LBB0_3
LBB0_16:
	movl	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_17:
	movl	(%rbx), %eax
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_18:
	movl	%r14d, %ecx
	cmpl	%eax, %r14d
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_keep_visible
	movl	(%rbx), %ecx
LBB0_20:
	xorl	%eax, %eax
	cmpl	%ecx, %r14d
	setne	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_choice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_choice
_find_choice:                           ; @find_choice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	w22, [x1]
	mov	x10, x22
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.1:
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.2:
	mov	x20, x0
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	mov	x24, #0
	mov	w26, #0
	add	x25, x0, #1
	mov	w27, #256
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x9, [x19, #8]
	ldr	x23, [x9, x24, lsl #3]
	tst	w8, #0xff
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x23, x28]
	cbz	w9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w9, w8, uxtb
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x25, x28]
	add	x28, x28, #1
	cbnz	w8, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x28
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	mov	w8, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtb	w0, w8
	bl	_Value
	mov	x21, x0
	ldrsb	w0, [x23]
	bl	_Value
	subs	w8, w21, w0
	cneg	w8, w8, mi
	cmp	w28, w26
	b.gt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w26, w28
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w27
	b.ge	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w24, [x19]
	mov	x26, x28
	mov	x27, x8
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	cmp	x24, x8
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x20]
	b	LBB0_3
LBB0_16:
	str	wzr, [x19]
	cmp	w22, w8
	b.ne	LBB0_18
	b	LBB0_19
LBB0_17:
	ldr	w8, [x19]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w22, w8
	b.eq	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_keep_visible
	ldr	w10, [x19]
LBB0_19:
	cmp	w22, w10
	cset	w0, ne
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_choice
.subsections_via_symbols
