	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function post_key_press
_post_key_press:                        ## @post_key_press
	.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	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_calc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_IsWindowEnabled
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	leaq	-288(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_SIZEOF
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_GetClassName
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	movq	_WC_BUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-288(%rbp), %rdi
	callq	__tcscmp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_GetWindowLongPtr
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	movq	_BS_PUSHBUTTON@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_BS_DEFPUSHBUTTON@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_BS_OWNERDRAW@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_6
LBB0_10:
	movq	_KEY_IS_UP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	_BM_CLICK@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_PostMessage
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	$1, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_KEY_WAS_DOWN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.8:
	movq	_KEY_IS_UP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.9:
	movq	_BM_SETSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PostMessage
	jmp	LBB0_12
LBB0_7:
	movl	$1, %r14d
	movq	_BM_SETSTATE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_calc,4,2                       ## @calc
	.comm	_WC_BUTTON,4,2                  ## @WC_BUTTON
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_BS_PUSHBUTTON,8,3              ## @BS_PUSHBUTTON
	.comm	_BS_DEFPUSHBUTTON,8,3           ## @BS_DEFPUSHBUTTON
	.comm	_BS_OWNERDRAW,8,3               ## @BS_OWNERDRAW
	.comm	_KEY_WAS_DOWN,4,2               ## @KEY_WAS_DOWN
	.comm	_BM_SETSTATE,4,2                ## @BM_SETSTATE
	.comm	_KEY_IS_UP,4,2                  ## @KEY_IS_UP
	.comm	_BM_CLICK,4,2                   ## @BM_CLICK
	.no_dead_strip	_post_key_press
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function post_key_press
_post_key_press:                        ; @post_key_press
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _calc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _calc@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_GetDlgItem
	mov	x19, x0
	bl	_IsWindowEnabled
	cbz	w0, LBB0_10
; %bb.1:
	add	x0, sp, #8
	bl	_SIZEOF
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_GetClassName
	cbz	w0, LBB0_10
; %bb.2:
Lloh6:
	adrp	x8, _WC_BUTTON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WC_BUTTON@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	__tcscmp
	cbnz	w0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetWindowLongPtr
	and	w8, w0, #0xf
Lloh12:
	adrp	x9, _BS_PUSHBUTTON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BS_PUSHBUTTON@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _BS_DEFPUSHBUTTON@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BS_DEFPUSHBUTTON@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
Lloh18:
	adrp	x11, _BS_OWNERDRAW@GOTPAGE
Lloh19:
	ldr	x11, [x11, _BS_OWNERDRAW@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x9, x8
	ccmp	x10, x8, #4, ne
	ccmp	x11, x8, #4, ne
	b.ne	LBB0_7
; %bb.4:
Lloh21:
	adrp	x8, _KEY_WAS_DOWN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KEY_WAS_DOWN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x8]
Lloh24:
	adrp	x8, _BM_SETSTATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BM_SETSTATE@GOTPAGEOFF]
	tst	w9, w20
	b.eq	LBB0_12
; %bb.5:
Lloh26:
	adrp	x9, _KEY_IS_UP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _KEY_IS_UP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_10
; %bb.6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_PostMessage
	b	LBB0_8
LBB0_7:
Lloh29:
	adrp	x8, _KEY_IS_UP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KEY_IS_UP@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
LBB0_8:
	mov	w2, #0
Lloh32:
	adrp	x8, _BM_CLICK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BM_CLICK@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_PostMessage
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	mov	w0, #1
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_12:
	mov	w2, #1
	b	LBB0_9
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_calc,4,2                       ; @calc
	.comm	_WC_BUTTON,4,2                  ; @WC_BUTTON
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_BS_PUSHBUTTON,8,3              ; @BS_PUSHBUTTON
	.comm	_BS_DEFPUSHBUTTON,8,3           ; @BS_DEFPUSHBUTTON
	.comm	_BS_OWNERDRAW,8,3               ; @BS_OWNERDRAW
	.comm	_KEY_WAS_DOWN,4,2               ; @KEY_WAS_DOWN
	.comm	_BM_SETSTATE,4,2                ; @BM_SETSTATE
	.comm	_KEY_IS_UP,4,2                  ; @KEY_IS_UP
	.comm	_BM_CLICK,4,2                   ; @BM_CLICK
	.no_dead_strip	_post_key_press
.subsections_via_symbols
