	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zhenhua_interrupt
_zhenhua_interrupt:                     ## @zhenhua_interrupt
	.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, %rbx
	cmpb	$-17, %r14b
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_3:
	movq	_ZHENHUA_MAX_LENGTH@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	jge	LBB0_5
## %bb.4:
	movzbl	%r14b, %edi
	callq	_bitrev8
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	leaq	1(%rdx), %rcx
	movq	%rcx, (%rbx)
	movl	%eax, (%rsi,%rdx,4)
	movq	(%r15), %rax
LBB0_5:
	cmpq	%rax, %rcx
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_zhenhua_process_packet
	movq	$0, (%rbx)
LBB0_7:
	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	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_ZHENHUA_MAX_LENGTH,8,3         ## @ZHENHUA_MAX_LENGTH
	.no_dead_strip	_zhenhua_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zhenhua_interrupt
_zhenhua_interrupt:                     ; @zhenhua_interrupt
	.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
	cmp	w20, #239
	b.ne	LBB0_2
; %bb.1:
	mov	x8, #0
	str	xzr, [x19]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
LBB0_3:
Lloh0:
	adrp	x21, _ZHENHUA_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ZHENHUA_MAX_LENGTH@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_bitrev8
	ldp	x10, x9, [x19]
	add	x8, x10, #1
	str	x8, [x19]
	str	w0, [x9, x10, lsl #2]
	ldr	x9, [x21]
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_zhenhua_process_packet
	str	xzr, [x19]
LBB0_7:
Lloh2:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_ZHENHUA_MAX_LENGTH,8,3         ; @ZHENHUA_MAX_LENGTH
	.no_dead_strip	_zhenhua_interrupt
.subsections_via_symbols
