	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_scroll_tab
_choose_scroll_tab:                     ## @choose_scroll_tab
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	leal	(,%r15,8), %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cleanup_push
	movq	_scroll_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testl	%r15d, %r15d
	js	LBB0_5
## %bb.2:
	movl	%r15d, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rsi
	movq	(%rax), %rdi
	addq	$-1, %rcx
	setb	%dl
	movq	%rdi, -8(%rbx,%rsi,8)
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%dl, %dl
	jne	LBB0_3
LBB0_5:
	movq	_fcompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$8, %edx
	callq	_qsort
	movq	$0, (%r14)
	movq	_curchoice@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_Strbuf_append
	movq	%r14, %rdi
	callq	_Strbuf_terminate
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cleanup_until                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xfree,4,2                      ## @xfree
	.comm	_scroll_tab,8,3                 ## @scroll_tab
	.comm	_fcompare,4,2                   ## @fcompare
	.comm	_curchoice,8,3                  ## @curchoice
	.no_dead_strip	_choose_scroll_tab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_scroll_tab
_choose_scroll_tab:                     ; @choose_scroll_tab
	.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	x21, x1
	mov	x19, x0
	lsl	w0, w1, #3
	bl	_xmalloc
	mov	x20, x0
Lloh0:
	adrp	x8, _xfree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cleanup_push
Lloh3:
	adrp	x8, _scroll_tab@GOTPAGE
Lloh4:
	ldr	x8, [x8, _scroll_tab@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	tbnz	w21, #31, LBB0_4
; %bb.2:
	mov	w9, w21
	lsl	x9, x9, #3
	sub	x10, x20, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	str	x11, [x10, x9]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	sub	x9, x9, #8
	b.ne	LBB0_3
LBB0_4:
Lloh6:
	adrp	x8, _fcompare@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fcompare@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
	str	xzr, [x19]
Lloh9:
	adrp	x8, _curchoice@GOTPAGE
Lloh10:
	ldr	x8, [x8, _curchoice@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x1, [x20, x8, lsl #3]
	mov	x0, x19
	bl	_Strbuf_append
	mov	x0, x19
	bl	_Strbuf_terminate
	mov	x0, x20
	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
	b	_cleanup_until
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_xfree,4,2                      ; @xfree
	.comm	_scroll_tab,8,3                 ; @scroll_tab
	.comm	_fcompare,4,2                   ; @fcompare
	.comm	_curchoice,8,3                  ; @curchoice
	.no_dead_strip	_choose_scroll_tab
.subsections_via_symbols
