	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function list_scripts
_list_scripts:                          ## @list_scripts
	.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	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCRIPT_MAX_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %r14
	shlq	$3, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_SCRIPT_NAMELEN@GOTPCREL(%rip), %r14
	movq	_SCRIPT_FULLPATH_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	addl	(%r14), %edi
	imull	%r13d, %edi
	callq	_malloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_SCRIPT_MAX_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.3:
	movslq	(%r14), %r8
	movslq	(%r15), %r9
	addq	%r8, %r9
	leaq	-1(%rcx), %rax
	movl	%ecx, %edx
	andl	$3, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	$3, %rax
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r13d
	jmp	LBB0_15
LBB0_5:
	andl	$-4, %ecx
	leaq	(%r9,%r9), %r10
	leaq	(%r8,%r9,2), %r11
	leaq	(,%r9,4), %r14
	leaq	(%r8,%r9), %r13
	leaq	(%r9,%r9,2), %rdx
	leaq	(%rdx,%r8), %rsi
	xorl	%edi, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rbx,%rdi,8)
	leaq	(%r15,%r8), %rax
	movq	%rax, (%r12,%rdi,8)
	leaq	(%r15,%r9), %rax
	movq	%rax, 8(%rbx,%rdi,8)
	leaq	(%r15,%r13), %rax
	movq	%rax, 8(%r12,%rdi,8)
	leaq	(%r15,%r10), %rax
	movq	%rax, 16(%rbx,%rdi,8)
	leaq	(%r15,%r11), %rax
	movq	%rax, 16(%r12,%rdi,8)
	leaq	(%r15,%rdx), %rax
	movq	%rax, 24(%rbx,%rdi,8)
	leaq	(%r15,%rsi), %rax
	movq	%rax, 24(%r12,%rdi,8)
	addq	$4, %rdi
	addq	%r14, %r15
	cmpq	%rdi, %rcx
	jne	LBB0_6
LBB0_7:
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	testq	%r10, %r10
	je	LBB0_10
## %bb.8:
	leaq	(%r12,%rdi,8), %rdx
	leaq	(%rbx,%rdi,8), %rsi
	imulq	%r9, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rdi, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rsi,%rdi,8)
	leaq	(%rax,%r8), %rcx
	movq	%rcx, (%rdx,%rdi,8)
	incq	%rdi
	addq	%r9, %rax
	cmpq	%rdi, %r10
	jne	LBB0_9
LBB0_10:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_find_scripts
	movl	$-1, %r13d
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	movl	%eax, %r14d
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ui__popup_menu
	cmpl	%r14d, %eax
	jge	LBB0_14
## %bb.12:
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	movl	%eax, %eax
	movq	(%r12,%rax,8), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_strcpy
	xorl	%r13d, %r13d
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCRIPT_MAX_NO,4,2              ## @SCRIPT_MAX_NO
	.comm	_SCRIPT_NAMELEN,4,2             ## @SCRIPT_NAMELEN
	.comm	_SCRIPT_FULLPATH_LEN,4,2        ## @SCRIPT_FULLPATH_LEN
	.no_dead_strip	_list_scripts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function list_scripts
_list_scripts:                          ; @list_scripts
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _SCRIPT_MAX_NO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SCRIPT_MAX_NO@GOTPAGEOFF]
	ldr	w12, [x23]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0xffffffff0
	sub	x22, x9, x13
	mov	sp, x22
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x13
	mov	sp, x21
Lloh9:
	adrp	x24, _SCRIPT_NAMELEN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SCRIPT_NAMELEN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh11:
	adrp	x25, _SCRIPT_FULLPATH_LEN@GOTPAGE
Lloh12:
	ldr	x25, [x25, _SCRIPT_FULLPATH_LEN@GOTPAGEOFF]
	ldr	w9, [x25]
	add	w8, w9, w8
	mul	w0, w8, w12
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w10, [x23]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.2:
	ldrsw	x8, [x24]
	ldrsw	x9, [x25]
	add	x9, x9, x8
	cmp	w10, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	b	LBB0_8
LBB0_4:
	mov	w22, #-1
	b	LBB0_16
LBB0_5:
	and	x11, x10, #0xfffffffc
	lsl	x12, x9, #1
	add	x13, x12, x9
	add	x14, x13, x8
	lsl	x15, x9, #2
	add	x16, x12, x8
	add	x17, x22, #16
	add	x0, x21, #16
	add	x1, x8, x9
	mov	x2, x11
	mov	x3, x20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x4, x3, x9
	add	x5, x3, x12
	add	x6, x3, x13
	stp	x3, x4, [x17, #-16]
	stp	x5, x6, [x17], #32
	add	x4, x3, x8
	add	x5, x3, x1
	add	x6, x3, x16
	add	x7, x3, x14
	stp	x4, x5, [x0, #-16]
	add	x3, x3, x15
	stp	x6, x7, [x0], #32
	subs	x2, x2, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x10
	b.eq	LBB0_10
LBB0_8:
	madd	x12, x11, x9, x20
	lsl	x14, x11, #3
	add	x13, x21, x14
	add	x14, x22, x14
	sub	x10, x10, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	x12, [x14], #8
	add	x11, x12, x8
	str	x11, [x13], #8
	add	x12, x12, x9
	subs	x10, x10, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	bl	_find_scripts
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x23, x0
	mov	x1, x22
	bl	_ui__popup_menu
	mov	w22, #-1
	cmp	w0, w23
	b.ge	LBB0_15
; %bb.12:
	tbnz	w0, #31, LBB0_15
; %bb.13:
	ldr	x1, [x21, w0, uxtw #3]
	mov	x0, x19
	bl	_strcpy
	mov	w22, #0
	b	LBB0_15
LBB0_14:
	mov	w22, #-1
LBB0_15:
	mov	x0, x20
	bl	_free
LBB0_16:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x22
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCRIPT_MAX_NO,4,2              ; @SCRIPT_MAX_NO
	.comm	_SCRIPT_NAMELEN,4,2             ; @SCRIPT_NAMELEN
	.comm	_SCRIPT_FULLPATH_LEN,4,2        ; @SCRIPT_FULLPATH_LEN
	.no_dead_strip	_list_scripts
.subsections_via_symbols
