	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_CmdButtons                  ## -- Begin function CL_CmdButtons
	.p2align	4, 0x90
_CL_CmdButtons:                         ## @CL_CmdButtons
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_in_buttons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	_qfalse@GOTPCREL(%rip), %rdx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %esi
	shll	%cl, %esi
	orl	%esi, (%rdi)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, (%rax)
	incq	%rcx
	addq	$16, %rax
	cmpq	$15, %rcx
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	_cls@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	_BUTTON_TALK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rdi)
	cmpq	$0, (%rax)
	setne	%al
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	_anykeydown@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.9:
	testb	%al, %al
	jne	LBB0_11
## %bb.10:
	movq	_BUTTON_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_buttons,8,3                 ## @in_buttons
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_cls,8,3                        ## @cls
	.comm	_BUTTON_TALK,4,2                ## @BUTTON_TALK
	.comm	_anykeydown,8,3                 ## @anykeydown
	.comm	_BUTTON_ANY,4,2                 ## @BUTTON_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_CmdButtons                  ; -- Begin function CL_CmdButtons
	.p2align	2
_CL_CmdButtons:                         ; @CL_CmdButtons
	.cfi_startproc
; %bb.0:
	mov	x8, #0
Lloh0:
	adrp	x9, _in_buttons@GOTPAGE
Lloh1:
	ldr	x9, [x9, _in_buttons@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _qfalse@GOTPAGE
Lloh4:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
	mov	w11, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w12, w11, w8
	ldr	w13, [x0]
	orr	w12, w13, w12
	str	w12, [x0]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x10]
	str	x12, [x9], #16
	add	x8, x8, #1
	cmp	x8, #15
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, #8]
	cbnz	x12, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x9]
	cbnz	x12, LBB0_1
	b	LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _cls@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cls@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh7:
	adrp	x9, _BUTTON_TALK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BUTTON_TALK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
Lloh10:
	adrp	x9, _anykeydown@GOTPAGE
Lloh11:
	ldr	x9, [x9, _anykeydown@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cbz	x9, LBB0_11
; %bb.9:
	tbnz	w8, #0, LBB0_11
; %bb.10:
Lloh13:
	adrp	x8, _BUTTON_ANY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BUTTON_ANY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_11:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_in_buttons,8,3                 ; @in_buttons
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_cls,8,3                        ; @cls
	.comm	_BUTTON_TALK,4,2                ; @BUTTON_TALK
	.comm	_anykeydown,8,3                 ; @anykeydown
	.comm	_BUTTON_ANY,4,2                 ; @BUTTON_ANY
.subsections_via_symbols
