	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_terebi_oekaki_read             ## -- Begin function terebi_oekaki_read
	.p2align	4, 0x90
_terebi_oekaki_read:                    ## @terebi_oekaki_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tablet@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$15, %ecx
	movq	_input@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	movq	(%rsi), %rsi
	movq	8(%rax), %rdi
	orl	(%rsi,%rdi,4), %ecx
	movq	_INPUT_B@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rdx), %esi
	movl	%ecx, %edx
	orl	$256, %edx                      ## imm = 0x100
	testl	%esi, %esi
	cmovnel	%ecx, %edx
	movl	$0, (%rax)
	movzwl	%dx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tablet,16,3                    ## @tablet
	.comm	_input,16,3                     ## @input
	.comm	_INPUT_B,4,2                    ## @INPUT_B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_terebi_oekaki_read             ; -- Begin function terebi_oekaki_read
	.p2align	2
_terebi_oekaki_read:                    ; @terebi_oekaki_read
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tablet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tablet@GOTPAGEOFF]
Lloh2:
	adrp	x9, _input@GOTPAGE
Lloh3:
	ldr	x9, [x9, _input@GOTPAGEOFF]
	ldp	x10, x9, [x9]
	ldr	x10, [x10]
	ldr	x11, [x8, #8]
	ldr	w10, [x10, x11, lsl #2]
	ldr	w11, [x8]
	orr	w10, w10, w11, lsl #15
	ldr	w9, [x9]
Lloh4:
	adrp	x11, _INPUT_B@GOTPAGE
Lloh5:
	ldr	x11, [x11, _INPUT_B@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	orr	w12, w10, #0x100
	tst	w11, w9
	csel	w9, w12, w10, eq
	str	wzr, [x8]
	and	w0, w9, #0xffff
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tablet,16,3                    ; @tablet
	.comm	_input,16,3                     ; @input
	.comm	_INPUT_B,4,2                    ; @INPUT_B
.subsections_via_symbols
