	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_file_name
_get_file_name:                         ## @get_file_name
	.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	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	movq	_IDC_FILENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	movq	_WM_GETTEXTLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%eax, %r12d
	leal	4(,%r12,4), %edi
	callq	_CoTaskMemAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%r12d, %edx
	incl	%edx
	movq	_WM_GETTEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%ebx, %edi
	movl	%eax, %ecx
	callq	_SendMessageW
	movl	%r12d, %r15d
	jmp	LBB0_6
LBB0_1:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_lstrlenW
	movl	%eax, %r15d
	leal	4(,%r15,4), %edi
	callq	_CoTaskMemAlloc
	movq	%rax, (%r14)
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_lstrcpyW
	jmp	LBB0_6
LBB0_2:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_FILENAME,4,2               ## @IDC_FILENAME
	.comm	_WM_GETTEXTLENGTH,4,2           ## @WM_GETTEXTLENGTH
	.comm	_WM_GETTEXT,4,2                 ## @WM_GETTEXT
	.no_dead_strip	_get_file_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_file_name
_get_file_name:                         ; @get_file_name
	.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, x1
	mov	x22, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _IDC_FILENAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_FILENAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _WM_GETTEXTLENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM_GETTEXTLENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x20, x0
	add	w22, w0, #1
	lsl	w0, w22, #2
	bl	_CoTaskMemAlloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x3, x0
Lloh6:
	adrp	x8, _WM_GETTEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM_GETTEXT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_SendMessageW
	b	LBB0_6
LBB0_3:
	ldr	x0, [x22]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_lstrlenW
	mov	x20, x0
	lsl	w8, w0, #2
	add	w0, w8, #4
	bl	_CoTaskMemAlloc
	str	x0, [x19]
	ldr	x1, [x22]
	bl	_lstrcpyW
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_FILENAME,4,2               ; @IDC_FILENAME
	.comm	_WM_GETTEXTLENGTH,4,2           ; @WM_GETTEXTLENGTH
	.comm	_WM_GETTEXT,4,2                 ; @WM_GETTEXT
	.no_dead_strip	_get_file_name
.subsections_via_symbols
