	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_key_byte                   ## -- Begin function add_key_byte
	.p2align	4, 0x90
_add_key_byte:                          ## @add_key_byte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_KEYBOARD_REPORT_KEYS@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r9
	movq	$-1, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx,8), %rcx
	cmpq	%rsi, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	negq	%rcx
	movl	$0, %ecx
	sbbq	%rcx, %rcx
	orq	%rdx, %rcx
	cmpq	$-1, %rax
	cmoveq	%rcx, %rax
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_2
## %bb.4:
	movq	%r8, %rdx
LBB0_5:
	cmpq	%r8, %rdx
	jne	LBB0_8
## %bb.6:
	cmpq	$-1, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rdi), %rcx
	movq	%rsi, (%rcx,%rax,8)
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYBOARD_REPORT_KEYS,8,3       ## @KEYBOARD_REPORT_KEYS
	.comm	_cb_count,8,3                   ## @cb_count
	.comm	_cb_head,8,3                    ## @cb_head
	.comm	_cb_tail,8,3                    ## @cb_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_key_byte                   ; -- Begin function add_key_byte
	.p2align	2
_add_key_byte:                          ; @add_key_byte
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _KEYBOARD_REPORT_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEYBOARD_REPORT_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0]
	mov	x8, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x10, lsl #3]
	cmp	x12, x1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x12, #0
	csinv	x12, x10, xzr, eq
	cmn	x8, #1
	csel	x8, x12, x8, eq
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x10, x9
LBB0_5:
	cmp	x10, x9
	b.ne	LBB0_8
; %bb.6:
	cmn	x8, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	x9, [x0]
	str	x1, [x9, x8, lsl #3]
LBB0_8:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYBOARD_REPORT_KEYS,8,3       ; @KEYBOARD_REPORT_KEYS
	.comm	_cb_count,8,3                   ; @cb_count
	.comm	_cb_head,8,3                    ; @cb_head
	.comm	_cb_tail,8,3                    ; @cb_tail
.subsections_via_symbols
