	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emu_msg_cb
_emu_msg_cb:                            ## @emu_msg_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_giz_screen@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_fb_unlock
LBB0_2:
	movl	$1, %edi
	callq	_fb_lock
	movq	%rax, (%r14)
	leaq	148944(%rax), %rdi
	xorl	%esi, %esi
	movl	$1284, %edx                     ## imm = 0x504
	callq	_memset32
	movl	$4, %edi
	movl	$232, %esi
	movq	%rbx, %rdx
	callq	_emu_text_out16
	xorl	%eax, %eax
	callq	_GetTickCount
	addq	$-2000, %rax                    ## imm = 0xF830
	movq	_noticeMsgTime@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_reset_timing@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_fb_unlock
	movq	_currentConfig@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	testl	$32768, (%rax)                  ## imm = 0x8000
	sete	%dil
	callq	_fb_lock
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_giz_screen,8,3                 ## @giz_screen
	.comm	_noticeMsgTime,8,3              ## @noticeMsgTime
	.comm	_reset_timing,4,2               ## @reset_timing
	.comm	_currentConfig,4,2              ## @currentConfig
	.no_dead_strip	_emu_msg_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emu_msg_cb
_emu_msg_cb:                            ; @emu_msg_cb
	.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, x0
Lloh0:
	adrp	x20, _giz_screen@GOTPAGE
Lloh1:
	ldr	x20, [x20, _giz_screen@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_fb_unlock
LBB0_2:
	mov	w21, #1
	mov	w0, #1
	bl	_fb_lock
	str	x0, [x20]
	add	x8, x0, #36, lsl #12            ; =147456
	add	x0, x8, #1488
	mov	w1, #0
	mov	w2, #1284
	bl	_memset32
	mov	w0, #4
	mov	w1, #232
	mov	x2, x19
	bl	_emu_text_out16
	bl	_GetTickCount
	sub	x8, x0, #2000
Lloh2:
	adrp	x9, _noticeMsgTime@GOTPAGE
Lloh3:
	ldr	x9, [x9, _noticeMsgTime@GOTPAGEOFF]
Lloh4:
	str	x8, [x9]
Lloh5:
	adrp	x8, _reset_timing@GOTPAGE
Lloh6:
	ldr	x8, [x8, _reset_timing@GOTPAGEOFF]
Lloh7:
	str	w21, [x8]
	bl	_fb_unlock
Lloh8:
	adrp	x8, _currentConfig@GOTPAGE
Lloh9:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w0, w21, w8, lsr #15
	bl	_fb_lock
	str	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_giz_screen,8,3                 ; @giz_screen
	.comm	_noticeMsgTime,8,3              ; @noticeMsgTime
	.comm	_reset_timing,4,2               ; @reset_timing
	.comm	_currentConfig,4,2              ; @currentConfig
	.no_dead_strip	_emu_msg_cb
.subsections_via_symbols
