	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iforce_serio_irq
_iforce_serio_irq:                      ## @iforce_serio_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movzbl	4(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.7:
	movzbl	5(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.11:
	movslq	8(%rbx), %rax
	cmpl	%ecx, %eax
	jge	LBB0_13
## %bb.12:
	movq	16(%rbx), %rcx
	leal	1(%rax), %edx
	movl	%edx, 8(%rbx)
	movb	%r14b, (%rcx,%rax)
	movzbl	%r14b, %eax
	addq	%rax, 24(%rbx)
	jmp	LBB0_15
LBB0_1:
	cmpb	$43, %r14b
	jne	LBB0_15
## %bb.2:
	movl	$1, (%rbx)
	jmp	LBB0_15
LBB0_4:
	leal	-4(%r14), %eax
	cmpb	$-6, %al
	ja	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
	jmp	LBB0_15
LBB0_8:
	movq	_IFORCE_MAX_LENGTH@GOTPCREL(%rip), %rax
	cmpb	%r14b, (%rax)
	jae	LBB0_10
## %bb.9:
	movl	$0, (%rbx)
	movb	$0, 4(%rbx)
	jmp	LBB0_15
LBB0_13:
	cmpl	%ecx, %eax
	jne	LBB0_15
## %bb.14:
	shll	$8, %esi
	orl	%eax, %esi
	movq	16(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_iforce_process_packet
	movl	$0, (%rbx)
	movw	$0, 4(%rbx)
	movl	$0, 8(%rbx)
	movq	$0, 24(%rbx)
	jmp	LBB0_15
LBB0_6:
	movb	%r14b, 4(%rbx)
	jmp	LBB0_15
LBB0_10:
	movb	%r14b, 5(%rbx)
LBB0_15:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFORCE_MAX_LENGTH,1,0          ## @IFORCE_MAX_LENGTH
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_iforce_serio_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iforce_serio_irq
_iforce_serio_irq:                      ; @iforce_serio_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_serio_get_drvdata
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	ldrb	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.2:
	ldrb	w10, [x19, #5]
	cbz	w10, LBB0_9
; %bb.3:
	ldrsw	x9, [x19, #8]
	cmp	w9, w10
	b.ge	LBB0_11
; %bb.4:
	ldr	x8, [x19, #16]
	add	w10, w9, #1
	str	w10, [x19, #8]
	strb	w20, [x8, x9]
	ldr	x8, [x19, #24]
	add	x8, x8, w20, uxtw
	str	x8, [x19, #24]
	b	LBB0_15
LBB0_5:
	cmp	w20, #43
	b.ne	LBB0_15
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_15
LBB0_7:
	sub	w8, w20, #4
	cmp	w8, #250
	b.hi	LBB0_13
; %bb.8:
	str	wzr, [x19]
	b	LBB0_15
LBB0_9:
Lloh0:
	adrp	x8, _IFORCE_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFORCE_MAX_LENGTH@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w20
	b.hs	LBB0_14
; %bb.10:
	str	wzr, [x19]
	strb	wzr, [x19, #4]
	b	LBB0_15
LBB0_11:
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.12:
	orr	w1, w9, w8, lsl #8
	ldr	x2, [x19, #16]
	mov	x0, x19
	bl	_iforce_process_packet
	str	wzr, [x19]
	strh	wzr, [x19, #4]
	str	wzr, [x19, #8]
	str	xzr, [x19, #24]
	b	LBB0_15
LBB0_13:
	strb	w20, [x19, #4]
	b	LBB0_15
LBB0_14:
	strb	w20, [x19, #5]
LBB0_15:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IFORCE_MAX_LENGTH,1,0          ; @IFORCE_MAX_LENGTH
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_iforce_serio_irq
.subsections_via_symbols
