	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FD31_DirListDblClick
_FD31_DirListDblClick:                  ## @FD31_DirListDblClick
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	20(%rdi), %r14d
	movq	_BUFFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_lst2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_LB_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessageW
	movq	%rax, %r12
	movq	_LB_ERR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_5
## %bb.1:
	movq	_BUFFILEALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_heap_alloc
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movl	(%rcx), %esi
	movq	_LB_GETTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_SendDlgItemMessageW
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_lstrcpyW
	movq	%rbx, %rdi
	callq	_heap_free
	cmpb	$91, (%r13)
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_lstrlenW
	cltq
	movb	$0, -1(%rax,%r13)
	movq	%r13, %rsi
	incq	%rsi
	movq	%r13, %rdi
	callq	_lstrcpyW
LBB0_3:
	movq	_FILE_bslash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_lstrcatW
	movl	16(%r15), %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_FD31_ScanDir
	cmpq	$0, 8(%r15)
	movq	_lst2@GOTPCREL(%rip), %rax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %ebx
	movl	(%rax), %r14d
	movq	_CD_LBSELCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MAKELONG
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_FD31_CallWindowProc
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFILE,4,2                    ## @BUFFILE
	.comm	_lst2,4,2                       ## @lst2
	.comm	_LB_GETCURSEL,4,2               ## @LB_GETCURSEL
	.comm	_LB_ERR,8,3                     ## @LB_ERR
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_BUFFILEALLOC,4,2               ## @BUFFILEALLOC
	.comm	_LB_GETTEXT,4,2                 ## @LB_GETTEXT
	.comm	_FILE_bslash,4,2                ## @FILE_bslash
	.comm	_CD_LBSELCHANGE,4,2             ## @CD_LBSELCHANGE
	.no_dead_strip	_FD31_DirListDblClick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FD31_DirListDblClick
_FD31_DirListDblClick:                  ; @FD31_DirListDblClick
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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, #-56]
	ldr	w20, [x0, #20]
Lloh3:
	adrp	x8, _BUFFILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFILE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x24, _lst2@GOTPAGE
Lloh9:
	ldr	x24, [x24, _lst2@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh10:
	adrp	x8, _LB_GETCURSEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LB_GETCURSEL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	bl	_SendDlgItemMessageW
Lloh13:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
Lloh16:
	adrp	x8, _BUFFILEALLOC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BUFFILEALLOC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_heap_alloc
	mov	x23, x0
	ldr	w1, [x24]
Lloh19:
	adrp	x8, _LB_GETTEXT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LB_GETTEXT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	mov	x4, x23
	bl	_SendDlgItemMessageW
	mov	x0, x21
	mov	x1, x23
	bl	_lstrcpyW
	mov	x0, x23
	bl	_heap_free
	ldrb	w8, [x21]
	cmp	w8, #91
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_lstrlenW
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-1]
	add	x1, x21, #1
	mov	x0, x21
	bl	_lstrcpyW
LBB0_3:
Lloh22:
	adrp	x8, _FILE_bslash@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FILE_bslash@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_lstrcatW
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	x2, x21
	bl	_FD31_ScanDir
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w20, [x19]
	ldr	w21, [x24]
Lloh25:
	adrp	x8, _CD_LBSELCHANGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CD_LBSELCHANGE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MAKELONG
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_FD31_CallWindowProc
LBB0_5:
Lloh28:
	adrp	x8, _TRUE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFILE,4,2                    ; @BUFFILE
	.comm	_lst2,4,2                       ; @lst2
	.comm	_LB_GETCURSEL,4,2               ; @LB_GETCURSEL
	.comm	_LB_ERR,8,3                     ; @LB_ERR
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_BUFFILEALLOC,4,2               ; @BUFFILEALLOC
	.comm	_LB_GETTEXT,4,2                 ; @LB_GETTEXT
	.comm	_FILE_bslash,4,2                ; @FILE_bslash
	.comm	_CD_LBSELCHANGE,4,2             ; @CD_LBSELCHANGE
	.no_dead_strip	_FD31_DirListDblClick
.subsections_via_symbols
