	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k_brl
_k_brl:                                 ## @k_brl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_kbd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_VC_UNICODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	testb	%bl, %bl
	je	LBB0_20
## %bb.4:
	cmpb	$8, %bl
	ja	LBB0_19
## %bb.5:
	testb	%dl, %dl
	je	LBB0_17
## %bb.6:
	movq	_brl_timeout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	_k_brl.committing(%rip), %esi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.7:
	testl	%esi, %esi
	je	LBB0_10
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_k_brl.releasestart(%rip), %r12
	callq	_msecs_to_jiffies
	addq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movl	_k_brl.pressed(%rip), %esi
	movl	%esi, _k_brl.committing(%rip)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _k_brl.releasestart(%rip)
	movl	%esi, %eax
	jmp	LBB0_11
LBB0_1:
	testb	%dl, %dl
	je	LBB0_2
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_BRL_UC_ROW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	%dl, %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_k_unicode                      ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printk                         ## TAILCALL
LBB0_17:
	decb	%bl
	movl	_k_brl.pressed(%rip), %eax
	btsl	%ebx, %eax
	movl	%eax, _k_brl.pressed(%rip)
	movq	_brl_timeout@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_19
## %bb.18:
	movl	%eax, _k_brl.committing(%rip)
	jmp	LBB0_19
LBB0_14:
	testl	%esi, %esi
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_k_brlcommit
	movl	$0, _k_brl.committing(%rip)
LBB0_16:
	decb	%bl
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	andl	%eax, _k_brl.pressed(%rip)
	jmp	LBB0_19
LBB0_9:
	movl	_k_brl.pressed(%rip), %eax
	movl	_k_brl.committing(%rip), %esi
LBB0_11:
	decb	%bl
	movl	$-2, %edx
	movl	%ebx, %ecx
	roll	%cl, %edx
	andl	%eax, %edx
	movl	%edx, _k_brl.pressed(%rip)
	jne	LBB0_19
## %bb.12:
	testl	%esi, %esi
	je	LBB0_19
## %bb.13:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_k_brlcommit
	movl	$0, _k_brl.committing(%rip)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_k_brl.pressed,4,2 ## @k_brl.pressed
.zerofill __DATA,__bss,_k_brl.committing,4,2 ## @k_brl.committing
.zerofill __DATA,__bss,_k_brl.releasestart,8,3 ## @k_brl.releasestart
	.comm	_kbd,8,3                        ## @kbd
	.comm	_VC_UNICODE,8,3                 ## @VC_UNICODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"keyboard mode must be unicode for braille patterns\n"

	.comm	_BRL_UC_ROW,4,2                 ## @BRL_UC_ROW
	.comm	_brl_timeout,8,3                ## @brl_timeout
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_k_brl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k_brl
_k_brl:                                 ; @k_brl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _kbd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kbd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VC_UNICODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC_UNICODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_10
; %bb.2:
	cmp	w20, #8
	b.hi	LBB0_9
; %bb.3:
	cbz	w2, LBB0_12
; %bb.4:
Lloh6:
	adrp	x8, _brl_timeout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _brl_timeout@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	adrp	x22, _k_brl.committing@PAGE
	ldr	w1, [x22, _k_brl.committing@PAGEOFF]
	cbz	x0, LBB0_14
; %bb.5:
	adrp	x23, _k_brl.pressed@PAGE
Lloh9:
	adrp	x24, _jiffies@GOTPAGE
Lloh10:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	adrp	x25, _k_brl.releasestart@PAGE
	cbz	w1, LBB0_7
; %bb.6:
	ldr	x21, [x24]
	ldr	x26, [x25, _k_brl.releasestart@PAGEOFF]
	bl	_msecs_to_jiffies
	add	x1, x0, x26
	mov	x0, x21
	bl	_time_after
	cbz	x0, LBB0_17
LBB0_7:
	ldr	w1, [x23, _k_brl.pressed@PAGEOFF]
	str	w1, [x22, _k_brl.committing@PAGEOFF]
	ldr	x8, [x24]
	str	x8, [x25, _k_brl.releasestart@PAGEOFF]
	mov	x8, x1
	b	LBB0_18
LBB0_8:
	cbz	w2, LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh11:
	adrp	x8, _BRL_UC_ROW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRL_UC_ROW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_k_unicode
LBB0_11:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_printk
LBB0_12:
	sub	w8, w20, #1
	mov	w9, #1
	lsl	w8, w9, w8
Lloh16:
	adrp	x9, _k_brl.pressed@PAGE
	ldr	w10, [x9, _k_brl.pressed@PAGEOFF]
	orr	w8, w10, w8
	str	w8, [x9, _k_brl.pressed@PAGEOFF]
Lloh17:
	adrp	x9, _brl_timeout@GOTPAGE
Lloh18:
	ldr	x9, [x9, _brl_timeout@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cbnz	x9, LBB0_9
; %bb.13:
	adrp	x9, _k_brl.committing@PAGE
	str	w8, [x9, _k_brl.committing@PAGEOFF]
	b	LBB0_9
LBB0_14:
	cbz	w1, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w2, #0
	bl	_k_brlcommit
	str	wzr, [x22, _k_brl.committing@PAGEOFF]
LBB0_16:
	sub	w8, w20, #1
	mov	w9, #1
	lsl	w8, w9, w8
	adrp	x9, _k_brl.pressed@PAGE
	ldr	w10, [x9, _k_brl.pressed@PAGEOFF]
	bic	w8, w10, w8
	str	w8, [x9, _k_brl.pressed@PAGEOFF]
	b	LBB0_9
LBB0_17:
	ldr	w8, [x23, _k_brl.pressed@PAGEOFF]
	ldr	w1, [x22, _k_brl.committing@PAGEOFF]
LBB0_18:
	sub	w9, w20, #1
	mov	w10, #1
	lsl	w9, w10, w9
	bics	w8, w8, w9
	str	w8, [x23, _k_brl.pressed@PAGEOFF]
	b.ne	LBB0_9
; %bb.19:
	cbz	w1, LBB0_9
; %bb.20:
	mov	x0, x19
	mov	w2, #0
	bl	_k_brlcommit
	str	wzr, [x22, _k_brl.committing@PAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdrp	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_k_brl.pressed,4,2 ; @k_brl.pressed
.zerofill __DATA,__bss,_k_brl.committing,4,2 ; @k_brl.committing
.zerofill __DATA,__bss,_k_brl.releasestart,8,3 ; @k_brl.releasestart
	.comm	_kbd,8,3                        ; @kbd
	.comm	_VC_UNICODE,8,3                 ; @VC_UNICODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keyboard mode must be unicode for braille patterns\n"

	.comm	_BRL_UC_ROW,4,2                 ; @BRL_UC_ROW
	.comm	_brl_timeout,8,3                ; @brl_timeout
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_k_brl
.subsections_via_symbols
