	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adbhid_kbd_capslock_remember
_adbhid_kbd_capslock_remember:          ## @adbhid_kbd_capslock_remember
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_adbhid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ADB_KEYBOARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_FLAG_CAPSLOCK_TRANSLATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_FLAG_CAPSLOCK_IGNORE_NEXT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	$1, %edi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rdi
	cmpq	$16, %rdi
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdi,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rcx, (%rsi)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rsi), %edx
	testl	%edx, %r9d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	%r8d, %edx
	movl	%edx, 8(%rsi)
	jmp	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adbhid,8,3                     ## @adbhid
	.comm	_ADB_KEYBOARD,8,3               ## @ADB_KEYBOARD
	.comm	_FLAG_CAPSLOCK_TRANSLATE,4,2    ## @FLAG_CAPSLOCK_TRANSLATE
	.comm	_FLAG_CAPSLOCK_IGNORE_NEXT,4,2  ## @FLAG_CAPSLOCK_IGNORE_NEXT
	.no_dead_strip	_adbhid_kbd_capslock_remember
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adbhid_kbd_capslock_remember
_adbhid_kbd_capslock_remember:          ; @adbhid_kbd_capslock_remember
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _adbhid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adbhid@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ADB_KEYBOARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADB_KEYBOARD@GOTPAGEOFF]
Lloh5:
	adrp	x10, _FLAG_CAPSLOCK_TRANSLATE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FLAG_CAPSLOCK_TRANSLATE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _FLAG_CAPSLOCK_IGNORE_NEXT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _FLAG_CAPSLOCK_IGNORE_NEXT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	mov	w12, #8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x12, x12, #8
	cmp	x12, #128
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x8, x12]
	cbz	x13, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x14, [x13]
	cmp	x14, x9
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w14, [x13, #8]
	tst	w10, w14
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	orr	w14, w11, w14
	str	w14, [x13, #8]
	b	LBB0_1
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_adbhid,8,3                     ; @adbhid
	.comm	_ADB_KEYBOARD,8,3               ; @ADB_KEYBOARD
	.comm	_FLAG_CAPSLOCK_TRANSLATE,4,2    ; @FLAG_CAPSLOCK_TRANSLATE
	.comm	_FLAG_CAPSLOCK_IGNORE_NEXT,4,2  ; @FLAG_CAPSLOCK_IGNORE_NEXT
	.no_dead_strip	_adbhid_kbd_capslock_remember
.subsections_via_symbols
