	.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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	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, (%rbx)
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:
	xorl	%eax, %eax
	callq	_Key_GetCatcher
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_BUTTON_TALK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_7:
	movq	_anykeydown@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_Key_GetCatcher
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_BUTTON_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_buttons,8,3                 ## @in_buttons
	.comm	_qfalse,8,3                     ## @qfalse
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	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, [x19]
	orr	w12, w13, w12
	str	w12, [x19]
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:
	bl	_Key_GetCatcher
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _BUTTON_TALK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUTTON_TALK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
Lloh8:
	adrp	x8, _anykeydown@GOTPAGE
Lloh9:
	ldr	x8, [x8, _anykeydown@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
	bl	_Key_GetCatcher
	cbnz	x0, LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _BUTTON_ANY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUTTON_ANY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_in_buttons,8,3                 ; @in_buttons
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_BUTTON_TALK,4,2                ; @BUTTON_TALK
	.comm	_anykeydown,8,3                 ; @anykeydown
	.comm	_BUTTON_ANY,4,2                 ; @BUTTON_ANY
.subsections_via_symbols
