	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elo_command_10
_elo_command_10:                        ## @elo_command_10
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ELO10_LEAD_BYTE@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	20(%rbx), %edi
	callq	_serio_pause_rx
	movzbl	(%r15), %edi
	callq	_toupper
	movq	%rax, (%rbx)
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_init_completion
	movl	20(%rbx), %edi
	callq	_serio_continue_rx
	movl	20(%rbx), %edi
	movzbl	(%r14), %esi
	callq	_serio_write
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	addb	$-86, %r12b
	movq	_ELO10_PACKET_LEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%r13), %r14d
	movl	20(%rbx), %edi
	movzbl	%r14b, %esi
	callq	_serio_write
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addb	%r14b, %r12b
	incq	%r13
	movq	_ELO10_PACKET_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
LBB0_7:
	movl	20(%rbx), %edi
	movzbl	%r12b, %esi
	callq	_serio_write
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %r14d
	jne	LBB0_10
## %bb.8:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	movq	(%rbx), %rax
	movq	_ELO10_TOUCH_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	12(%rbx), %esi
	movq	_ELO10_PACKET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	$-1, %r14d
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELO10_LEAD_BYTE,4,2            ## @ELO10_LEAD_BYTE
	.comm	_ELO10_PACKET_LEN,4,2           ## @ELO10_PACKET_LEN
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ELO10_TOUCH_PACKET,8,3         ## @ELO10_TOUCH_PACKET
	.no_dead_strip	_elo_command_10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elo_command_10
_elo_command_10:                        ; @elo_command_10
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _ELO10_LEAD_BYTE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ELO10_LEAD_BYTE@GOTPAGEOFF]
	ldr	w23, [x24]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x21, #20]
	bl	_serio_pause_rx
	ldrb	w0, [x20]
	bl	_toupper
	str	x0, [x21]
	add	x22, x21, #16
	mov	x0, x22
	bl	_init_completion
	ldr	w0, [x21, #20]
	bl	_serio_continue_rx
	ldr	w0, [x21, #20]
	ldrb	w1, [x24]
	bl	_serio_write
	cbnz	x0, LBB0_8
; %bb.1:
	sub	w25, w23, #86
Lloh2:
	adrp	x24, _ELO10_PACKET_LEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ELO10_PACKET_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x26, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w23, [x20, x26]
	ldr	w0, [x21, #20]
	mov	x1, x23
	bl	_serio_write
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w23, w25
	add	x26, x26, #1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.lt	LBB0_3
LBB0_5:
	ldr	w0, [x21, #20]
	and	w1, w25, #0xff
	bl	_serio_write
	cbnz	x0, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _HZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wait_for_completion_timeout
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _ELO10_TOUCH_PACKET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ELO10_TOUCH_PACKET@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w1, [x21, #12]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_memcpy
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	mov	w20, #-1
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ELO10_LEAD_BYTE,4,2            ; @ELO10_LEAD_BYTE
	.comm	_ELO10_PACKET_LEN,4,2           ; @ELO10_PACKET_LEN
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ELO10_TOUCH_PACKET,8,3         ; @ELO10_TOUCH_PACKET
	.no_dead_strip	_elo_command_10
.subsections_via_symbols
