	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm8323_process_error
_lm8323_process_error:                  ## @lm8323_process_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_LM8323_CMD_READ_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movl	$1, %ecx
	callq	_lm8323_read
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.1:
	movl	-12(%rbp), %eax
	movq	_ERR_FIFOOVER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_vdbg
	movl	-12(%rbp), %eax
LBB0_3:
	movq	_ERR_KEYOVR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_vdbg
	movl	-12(%rbp), %eax
LBB0_5:
	movq	_ERR_CMDUNK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_vdbg
	movl	-12(%rbp), %eax
LBB0_7:
	movq	_ERR_BADPAR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_vdbg
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM8323_CMD_READ_ERR,4,2        ## @LM8323_CMD_READ_ERR
	.comm	_ERR_FIFOOVER,4,2               ## @ERR_FIFOOVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fifo overflow!\n"

	.comm	_ERR_KEYOVR,4,2                 ## @ERR_KEYOVR
L_.str.1:                               ## @.str.1
	.asciz	"more than two keys pressed\n"

	.comm	_ERR_CMDUNK,4,2                 ## @ERR_CMDUNK
L_.str.2:                               ## @.str.2
	.asciz	"unknown command submitted\n"

	.comm	_ERR_BADPAR,4,2                 ## @ERR_BADPAR
L_.str.3:                               ## @.str.3
	.asciz	"bad command parameter\n"

	.no_dead_strip	_lm8323_process_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm8323_process_error
_lm8323_process_error:                  ; @lm8323_process_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _LM8323_CMD_READ_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM8323_CMD_READ_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_lm8323_read
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _ERR_FIFOOVER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERR_FIFOOVER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_vdbg
	ldr	w8, [sp, #12]
LBB0_3:
Lloh8:
	adrp	x9, _ERR_KEYOVR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ERR_KEYOVR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_vdbg
	ldr	w8, [sp, #12]
LBB0_5:
Lloh13:
	adrp	x9, _ERR_CMDUNK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ERR_CMDUNK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_vdbg
	ldr	w8, [sp, #12]
LBB0_7:
Lloh18:
	adrp	x9, _ERR_BADPAR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ERR_BADPAR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x0, [x19]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_vdbg
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LM8323_CMD_READ_ERR,4,2        ; @LM8323_CMD_READ_ERR
	.comm	_ERR_FIFOOVER,4,2               ; @ERR_FIFOOVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fifo overflow!\n"

	.comm	_ERR_KEYOVR,4,2                 ; @ERR_KEYOVR
l_.str.1:                               ; @.str.1
	.asciz	"more than two keys pressed\n"

	.comm	_ERR_CMDUNK,4,2                 ; @ERR_CMDUNK
l_.str.2:                               ; @.str.2
	.asciz	"unknown command submitted\n"

	.comm	_ERR_BADPAR,4,2                 ; @ERR_BADPAR
l_.str.3:                               ; @.str.3
	.asciz	"bad command parameter\n"

	.no_dead_strip	_lm8323_process_error
.subsections_via_symbols
