	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_shift_bit                  ## -- Begin function add_shift_bit
	.p2align	4, 0x90
_add_shift_bit:                         ## @add_shift_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	movl	%edi, %eax
	sarl	$3, %eax
	movq	_SHIFT_BIT_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_2
## %bb.1:
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	_send_key_shift_bit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	orl	%edx, (%rcx,%rax,4)
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	popq	%rbp
	jmp	_dprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SHIFT_BIT_SIZE,4,2             ## @SHIFT_BIT_SIZE
	.comm	_send_key_shift_bit,8,3         ## @send_key_shift_bit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add_shift_bit: Can't add shift bit. keycode: %02X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_shift_bit                  ; -- Begin function add_shift_bit
	.p2align	2
_add_shift_bit:                         ; @add_shift_bit
	.cfi_startproc
; %bb.0:
	mov	x1, x0
	asr	w8, w0, #3
Lloh0:
	adrp	x9, _SHIFT_BIT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SHIFT_BIT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	and	w9, w1, #0x7
	mov	w10, #1
	lsl	w9, w10, w9
Lloh3:
	adrp	x10, _send_key_shift_bit@GOTPAGE
Lloh4:
	ldr	x10, [x10, _send_key_shift_bit@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x10, x8]
	orr	w9, w11, w9
	str	w9, [x10, x8]
	ret
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	_dprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SHIFT_BIT_SIZE,4,2             ; @SHIFT_BIT_SIZE
	.comm	_send_key_shift_bit,8,3         ; @send_key_shift_bit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add_shift_bit: Can't add shift bit. keycode: %02X\n"

.subsections_via_symbols
