	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parkbd_write
_parkbd_write:                          ## @parkbd_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_parkbd_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_parkbd_counter@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_parkbd_writing@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_parkbd_buffer@GOTPCREL(%rip), %rax
	movb	%sil, (%rax)
	movl	$2, %edi
	callq	_parkbd_writelines
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_parkbd_mode,4,2                ## @parkbd_mode
	.comm	_parkbd_counter,8,3             ## @parkbd_counter
	.comm	_parkbd_writing,4,2             ## @parkbd_writing
	.comm	_parkbd_buffer,1,0              ## @parkbd_buffer
	.no_dead_strip	_parkbd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parkbd_write
_parkbd_write:                          ; @parkbd_write
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _parkbd_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _parkbd_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _parkbd_counter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _parkbd_counter@GOTPAGEOFF]
Lloh5:
	adrp	x9, _parkbd_writing@GOTPAGE
Lloh6:
	ldr	x9, [x9, _parkbd_writing@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
	mov	w8, #1
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _parkbd_buffer@GOTPAGE
Lloh10:
	ldr	x8, [x8, _parkbd_buffer@GOTPAGEOFF]
Lloh11:
	strb	w1, [x8]
	mov	w0, #2
	bl	_parkbd_writelines
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_parkbd_mode,4,2                ; @parkbd_mode
	.comm	_parkbd_counter,8,3             ; @parkbd_counter
	.comm	_parkbd_writing,4,2             ; @parkbd_writing
	.comm	_parkbd_buffer,1,0              ; @parkbd_buffer
	.no_dead_strip	_parkbd_write
.subsections_via_symbols
