	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FrameOnCommand
_FrameOnCommand:                        ## @FrameOnCommand
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %ebx
	xorl	%esi, %esi
	callq	_GetWindowLongPtr
	movq	%rax, %r13
	movl	%r15d, %edi
	callq	_LOWORD
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	%ebx, %edi
	callq	_FrameOnSaveAs
	jmp	LBB0_10
LBB0_6:
	movl	%r15d, %edi
	callq	_LOWORD
	movq	_IDM_MDI_FIRSTCHILD@GOTPCREL(%rip), %rdx
	movq	_hwndMDIClient@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	(%rdx), %eax
	jge	LBB0_7
## %bb.8:
	movq	_WM_MDIGETACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessage
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_WM_COMMAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_SendMessage
	jmp	LBB0_10
LBB0_3:
	movl	%ebx, %edi
	callq	_FrameOnSave
	jmp	LBB0_10
LBB0_2:
	movq	_hwndMDIClient@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_CreateNewMDIChild
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_SetMenu
	jmp	LBB0_10
LBB0_5:
	movq	_WM_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PostMessage
	jmp	LBB0_10
LBB0_7:
	movl	%ebx, %edi
	movl	%ecx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_DefFrameProc
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_hwndMDIClient,4,2              ## @hwndMDIClient
	.comm	_WM_CLOSE,4,2                   ## @WM_CLOSE
	.comm	_IDM_MDI_FIRSTCHILD,4,2         ## @IDM_MDI_FIRSTCHILD
	.comm	_WM_MDIGETACTIVE,4,2            ## @WM_MDIGETACTIVE
	.comm	_WM_COMMAND,4,2                 ## @WM_COMMAND
	.no_dead_strip	_FrameOnCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FrameOnCommand
_FrameOnCommand:                        ; @FrameOnCommand
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w1, #0
	bl	_GetWindowLongPtr
	mov	x23, x0
	mov	x0, x20
	bl	_LOWORD
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x21
	bl	_FrameOnSaveAs
	b	LBB0_10
LBB0_3:
	mov	x0, x20
	bl	_LOWORD
Lloh2:
	adrp	x8, _IDM_MDI_FIRSTCHILD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IDM_MDI_FIRSTCHILD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _hwndMDIClient@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hwndMDIClient@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w9
	b.ge	LBB0_9
; %bb.4:
Lloh8:
	adrp	x9, _WM_MDIGETACTIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WM_MDIGETACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	x0, x8
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessage
	cbz	w0, LBB0_10
; %bb.5:
Lloh11:
	adrp	x8, _WM_COMMAND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM_COMMAND@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, x19
	bl	_SendMessage
	b	LBB0_10
LBB0_6:
	mov	x0, x21
	bl	_FrameOnSave
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _hwndMDIClient@GOTPAGE
Lloh15:
	ldr	x8, [x8, _hwndMDIClient@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_CreateNewMDIChild
	ldp	w1, w0, [x23]
	bl	_SetMenu
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _WM_CLOSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM_CLOSE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_PostMessage
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	mov	x1, x8
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_DefFrameProc
LBB0_10:
	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
	.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
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_hwndMDIClient,4,2              ; @hwndMDIClient
	.comm	_WM_CLOSE,4,2                   ; @WM_CLOSE
	.comm	_IDM_MDI_FIRSTCHILD,4,2         ; @IDM_MDI_FIRSTCHILD
	.comm	_WM_MDIGETACTIVE,4,2            ; @WM_MDIGETACTIVE
	.comm	_WM_COMMAND,4,2                 ; @WM_COMMAND
	.no_dead_strip	_FrameOnCommand
.subsections_via_symbols
