	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_data
_check_data:                            ## @check_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	testl	$1024, %esi                     ## imm = 0x400
	jne	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_SERIO_FRAME@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movl	%edx, %eax
	shrl	%eax
	andl	$1, %eax
	movl	%edx, %ecx
	shrl	$2, %ecx
	andl	$1, %ecx
	btl	$3, %edx
	adcl	%eax, %ecx
	movl	%edx, %eax
	shrl	$4, %eax
	andl	$1, %eax
	btl	$5, %edx
	adcl	%ecx, %eax
	movl	%edx, %esi
	shrl	$6, %esi
	andl	$1, %esi
	btl	$7, %edx
	adcl	%eax, %esi
	movl	%edx, %ecx
	shrl	$8, %ecx
	andl	$1, %ecx
	btl	$9, %edx
	adcl	%esi, %ecx
	xorl	%eax, %eax
	testb	$1, %cl
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_SERIO_PARITY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid stop bit, data=0x%X\n"

	.comm	_SERIO_FRAME,4,2                ## @SERIO_FRAME
L_.str.1:                               ## @.str.1
	.asciz	"parity check failed, data=0x%X parity=0x%X\n"

	.comm	_SERIO_PARITY,4,2               ## @SERIO_PARITY
	.no_dead_strip	_check_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function check_data
lCPI0_0:
	.long	4294967287                      ; 0xfffffff7
	.long	4294967288                      ; 0xfffffff8
	.long	4294967289                      ; 0xfffffff9
	.long	4294967290                      ; 0xfffffffa
lCPI0_1:
	.long	4294967291                      ; 0xfffffffb
	.long	4294967292                      ; 0xfffffffc
	.long	4294967293                      ; 0xfffffffd
	.long	4294967294                      ; 0xfffffffe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_check_data:                            ; @check_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x1
	tbnz	w1, #10, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh2:
	adrp	x8, _SERIO_FRAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SERIO_FRAME@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ubfx	w8, w2, #1, #1
	dup.4s	v0, w2
Lloh4:
	adrp	x9, lCPI0_0@PAGE
Lloh5:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v1, v0, v1
Lloh6:
	adrp	x9, lCPI0_1@PAGE
Lloh7:
	ldr	q2, [x9, lCPI0_1@PAGEOFF]
	ushl.4s	v0, v0, v2
	movi.4s	v2, #1
	and.16b	v0, v0, v2
	and.16b	v1, v1, v2
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w9, s0
	add	w8, w9, w8
	tbnz	w8, #0, LBB0_5
; %bb.3:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh10:
	adrp	x8, _SERIO_PARITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SERIO_PARITY@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid stop bit, data=0x%X\n"

	.comm	_SERIO_FRAME,4,2                ; @SERIO_FRAME
l_.str.1:                               ; @.str.1
	.asciz	"parity check failed, data=0x%X parity=0x%X\n"

	.comm	_SERIO_PARITY,4,2               ; @SERIO_PARITY
	.no_dead_strip	_check_data
.subsections_via_symbols
