	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function picolcd_raw_event
_picolcd_raw_event:                     ## @picolcd_raw_event
	.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
	movl	%ecx, %r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_hid_get_drvdata
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	(%r13), %rcx
	cmpl	$65, %r12d
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_hid_warn
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_3:
	movq	%rax, %r15
	movq	_REPORT_KEY_STATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 16(%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_12
## %bb.5:
	leaq	4(%rcx), %rdx
	leal	-1(%r12), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_picolcd_raw_keypad
	jmp	LBB0_11
LBB0_6:
	movq	_REPORT_IR_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rdx
	leal	-1(%r12), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_picolcd_raw_cir
	jmp	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	16(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rsi
	leal	-1(%r12), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	callq	_memcpy
	movq	8(%r15), %rdi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rdi)
	movq	%r13, 8(%rdi)
	addq	$4, %rdi
	callq	_complete
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r12d, %r8d
	callq	_picolcd_debug_raw_event
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid size value (%d) for picolcd raw event (%d)\n"

	.comm	_REPORT_KEY_STATE,8,3           ## @REPORT_KEY_STATE
	.comm	_REPORT_IR_DATA,8,3             ## @REPORT_IR_DATA
	.no_dead_strip	_picolcd_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function picolcd_raw_event
_picolcd_raw_event:                     ; @picolcd_raw_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x3, [x22]
	cmp	w19, #65
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_hid_warn
	mov	w0, #0
	b	LBB0_13
LBB0_3:
	mov	x23, x0
Lloh2:
	adrp	x8, _REPORT_KEY_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REPORT_KEY_STATE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_11
; %bb.5:
	add	x2, x21, #4
	sub	w3, w19, #1
	mov	x0, x23
	mov	x1, x22
	bl	_picolcd_raw_keypad
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _REPORT_IR_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REPORT_IR_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_8
; %bb.7:
	add	x2, x21, #4
	sub	w3, w19, #1
	mov	x0, x23
	mov	x1, x22
	bl	_picolcd_raw_cir
	b	LBB0_11
LBB0_8:
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x8, #16]
	add	x1, x21, #4
	sub	w24, w19, #1
	mov	x2, x24
	bl	_memcpy
	ldr	x8, [x23, #8]
	str	w24, [x8]
	str	x22, [x8, #8]
	add	x0, x8, #4
	bl	_complete
LBB0_10:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
LBB0_11:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_picolcd_debug_raw_event
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid size value (%d) for picolcd raw event (%d)\n"

	.comm	_REPORT_KEY_STATE,8,3           ; @REPORT_KEY_STATE
	.comm	_REPORT_IR_DATA,8,3             ; @REPORT_IR_DATA
	.no_dead_strip	_picolcd_raw_event
.subsections_via_symbols
