	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FD31_AllocPrivate
_FD31_AllocPrivate:                     ## @FD31_AllocPrivate
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$56, %edi
	callq	_heap_alloc_zero
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	%r14, 48(%rbx)
	movq	_OPEN_DIALOG@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%r12, (%rax)
	sete	%cl
	movl	%ecx, (%rbx)
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	$0, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_OFN_ENABLEHOOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	jmp	LBB0_10
LBB0_6:
	movq	%r14, 32(%rbx)
	movq	_OFN_ENABLEHOOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.7:
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
LBB0_9:
	movl	4(%r14), %edi
	callq	_heap_alloc_zero
	movq	%rax, 24(%rbx)
	movq	32(%rbx), %rdi
	movl	4(%rdi), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rbx), %edx
	movq	%rax, %rsi
	callq	_FD31_MapOfnStructA
LBB0_10:
	movq	%rbx, %rdi
	callq	_FD31_GetTemplate
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_LBSELCHSTRINGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RegisterWindowMessageA
	movq	%rax, 16(%rbx)
	movq	_FILEOKSTRINGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RegisterWindowMessageA
	movq	%rax, 8(%rbx)
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_FD31_DestroyPrivate
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc private buf %p\n"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_OPEN_DIALOG,8,3                ## @OPEN_DIALOG
	.comm	_OFN_ENABLEHOOK,4,2             ## @OFN_ENABLEHOOK
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_LBSELCHSTRINGA,4,2             ## @LBSELCHSTRINGA
	.comm	_FILEOKSTRINGA,4,2              ## @FILEOKSTRINGA
	.no_dead_strip	_FD31_AllocPrivate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FD31_AllocPrivate
_FD31_AllocPrivate:                     ; @FD31_AllocPrivate
	.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, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #56
	bl	_heap_alloc_zero
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	cbz	x19, LBB0_12
; %bb.1:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stp	x8, x20, [x19, #40]
Lloh5:
	adrp	x8, _OPEN_DIALOG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPEN_DIALOG@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x22
	cset	w8, eq
	str	w8, [x19]
	cbz	x21, LBB0_5
; %bb.2:
	stp	x20, xzr, [x19, #24]
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _OFN_ENABLEHOOK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OFN_ENABLEHOOK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	b	LBB0_9
LBB0_5:
	str	x20, [x19, #32]
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _OFN_ENABLEHOOK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OFN_ENABLEHOOK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_8:
	ldr	w0, [x20, #4]
	bl	_heap_alloc_zero
	mov	x1, x0
	str	x0, [x19, #24]
	ldr	x0, [x19, #32]
	ldr	w8, [x0, #4]
	str	w8, [x1, #4]
	ldr	w2, [x19]
	bl	_FD31_MapOfnStructA
LBB0_9:
	mov	x0, x19
	bl	_FD31_GetTemplate
	cbz	w0, LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _LBSELCHSTRINGA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LBSELCHSTRINGA@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_RegisterWindowMessageA
	str	x0, [x19, #16]
Lloh23:
	adrp	x8, _FILEOKSTRINGA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FILEOKSTRINGA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_RegisterWindowMessageA
	str	x0, [x19, #8]
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_FD31_DestroyPrivate
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc private buf %p\n"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_OPEN_DIALOG,8,3                ; @OPEN_DIALOG
	.comm	_OFN_ENABLEHOOK,4,2             ; @OFN_ENABLEHOOK
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_LBSELCHSTRINGA,4,2             ; @LBSELCHSTRINGA
	.comm	_FILEOKSTRINGA,4,2              ; @FILEOKSTRINGA
	.no_dead_strip	_FD31_AllocPrivate
.subsections_via_symbols
