	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_serio_get_drvdata
	movq	%rax, %r15
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movb	4(%r15), %al
	testb	%al, %al
	je	LBB0_4
## %bb.7:
	movb	5(%r15), %dl
	testb	%dl, %dl
	je	LBB0_8
## %bb.11:
	movzbl	6(%r15), %ecx
	cmpb	%dl, %cl
	jae	LBB0_13
## %bb.12:
	movq	8(%r15), %rax
	leal	1(%rcx), %edx
	movb	%dl, 6(%r15)
	movb	%r14b, (%rax,%rcx)
	movzbl	%r14b, %eax
	addq	%rax, 24(%r15)
	jmp	LBB0_19
LBB0_1:
	cmpb	$43, %r14b
	jne	LBB0_19
## %bb.2:
	movl	$1, (%r15)
	jmp	LBB0_19
LBB0_4:
	leal	-4(%r14), %eax
	cmpb	$-6, %al
	ja	LBB0_6
## %bb.5:
	movl	$0, (%r15)
	jmp	LBB0_19
LBB0_8:
	movq	_IFORCE_MAX_LENGTH@GOTPCREL(%rip), %rax
	cmpb	%r14b, (%rax)
	jae	LBB0_10
## %bb.9:
	movl	$0, (%r15)
	movb	$0, 4(%r15)
	jmp	LBB0_19
LBB0_13:
	cmpb	%dl, %cl
	jne	LBB0_19
## %bb.14:
	cmpb	%al, 16(%r15)
	jne	LBB0_16
## %bb.15:
	movb	$0, 16(%r15)
	movl	32(%r15), %edi
	movq	8(%r15), %rsi
	movq	_IFORCE_MAX_LENGTH@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	callq	_memcpy
	movb	5(%r15), %al
	movb	%al, 17(%r15)
	addq	$40, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	jmp	LBB0_18
LBB0_6:
	movb	%r14b, 4(%r15)
	jmp	LBB0_19
LBB0_10:
	movb	%r14b, 5(%r15)
	jmp	LBB0_19
LBB0_16:
	addq	$36, %rbx
	movl	(%rbx), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movzbl	4(%r15), %esi
	movq	8(%r15), %rdx
	movzbl	5(%r15), %ecx
	movq	%rbx, %rdi
	callq	_iforce_process_packet
LBB0_18:
	movq	$0, 24(%r15)
	movl	$0, (%r15)
	movl	$0, 3(%r15)
LBB0_19:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_serio_get_drvdata
	mov	x19, x0
	mov	x21, x0
	ldr	w8, [x21], #36
	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:
	ldrb	w9, [x19, #6]
	cmp	w9, w10
	b.hs	LBB0_11
; %bb.4:
	ldr	x8, [x19, #8]
	add	w10, w9, #1
	strb	w10, [x19, #6]
	strb	w20, [x8, x9]
	ldr	x8, [x19, #24]
	add	x8, x8, w20, uxtw
	str	x8, [x19, #24]
	b	LBB0_19
LBB0_5:
	cmp	w20, #43
	b.ne	LBB0_19
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_19
LBB0_7:
	sub	w8, w20, #4
	cmp	w8, #250
	b.hi	LBB0_14
; %bb.8:
	str	wzr, [x19]
	b	LBB0_19
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_15
; %bb.10:
	str	wzr, [x19]
	strb	wzr, [x19, #4]
	b	LBB0_19
LBB0_11:
	b.ne	LBB0_19
; %bb.12:
	ldrb	w9, [x19, #16]
	cmp	w9, w8
	b.ne	LBB0_16
; %bb.13:
	strb	wzr, [x19, #16]
	ldr	w0, [x19, #32]
	ldr	x1, [x19, #8]
Lloh2:
	adrp	x8, _IFORCE_MAX_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFORCE_MAX_LENGTH@GOTPAGEOFF]
	ldrb	w2, [x8]
	bl	_memcpy
	ldrb	w8, [x19, #5]
	strb	w8, [x19, #17]
	add	x0, x19, #40
	bl	_wake_up
	b	LBB0_18
LBB0_14:
	strb	w20, [x19, #4]
	b	LBB0_19
LBB0_15:
	strb	w20, [x19, #5]
	b	LBB0_19
LBB0_16:
	ldr	w0, [x21]
	bl	_likely
	cbz	x0, LBB0_18
; %bb.17:
	ldrb	w1, [x19, #4]
	ldr	x2, [x19, #8]
	ldrb	w3, [x19, #5]
	mov	x0, x21
	bl	_iforce_process_packet
LBB0_18:
	str	xzr, [x19, #24]
	str	wzr, [x19]
	stur	wzr, [x19, #3]
LBB0_19:
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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
