	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse8_interrupt
_pulse8_interrupt:                      ## @pulse8_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_serio_get_drvdata
	movq	%rax, %r14
	cmpl	$0, (%rax)
	movq	_MSGSTART@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	jne	LBB0_2
## %bb.1:
	cmpb	%bl, %al
	jne	LBB0_17
LBB0_2:
	movq	_MSGESC@GOTPCREL(%rip), %rcx
	cmpb	%bl, (%rcx)
	jne	LBB0_4
## %bb.3:
	movl	$1, 4(%r14)
	jmp	LBB0_17
LBB0_4:
	cmpl	$0, 4(%r14)
	je	LBB0_9
## %bb.5:
	movq	_MSGOFFSET@GOTPCREL(%rip), %rax
	addb	(%rax), %bl
	movl	$0, 4(%r14)
LBB0_6:
	movq	8(%r14), %rdx
	movq	_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jl	LBB0_8
## %bb.7:
	movl	40(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	xorl	%edx, %edx
LBB0_8:
	movzbl	%bl, %eax
	movq	16(%r14), %rcx
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%r14)
	movl	%eax, (%rcx,%rdx,4)
LBB0_17:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_MSGEND@GOTPCREL(%rip), %rcx
	cmpb	%bl, (%rcx)
	jne	LBB0_15
## %bb.10:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movl	40(%r14), %edi
	movq	8(%r14), %rdx
	movq	16(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_12:
	movq	16(%r14), %rsi
	movq	24(%r14), %rdi
	movl	(%rsi), %eax
	movl	%eax, (%rdi)
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	callq	_memcpy
	movq	8(%r14), %rax
	movq	%rax, 32(%r14)
	movq	%r14, %rdi
	addq	$44, %rdi
	callq	_complete
LBB0_14:
	movq	$0, 8(%r14)
	movl	$0, (%r14)
	jmp	LBB0_17
LBB0_15:
	cmpb	%bl, %al
	jne	LBB0_6
## %bb.16:
	movq	$0, 8(%r14)
	movl	$1, (%r14)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MSGSTART,1,0                   ## @MSGSTART
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_MSGESC,1,0                     ## @MSGESC
	.comm	_MSGOFFSET,8,3                  ## @MSGOFFSET
	.comm	_MSGEND,1,0                     ## @MSGEND
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received: %*ph\n"

	.comm	_CEC_MAX_MSG_SIZE,4,2           ## @CEC_MAX_MSG_SIZE
	.comm	_MSGCODE_FRAME_EOM,4,2          ## @MSGCODE_FRAME_EOM
	.comm	_DATA_SIZE,8,3                  ## @DATA_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"throwing away %d bytes of garbage\n"

	.no_dead_strip	_pulse8_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse8_interrupt
_pulse8_interrupt:                      ; @pulse8_interrupt
	.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
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _MSGSTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSGSTART@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w9, #0
	ccmp	w8, w20, #4, eq
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x9, _MSGESC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSGESC@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_3:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_9
; %bb.4:
Lloh4:
	adrp	x8, _MSGOFFSET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSGOFFSET@GOTPAGEOFF]
	ldrb	w8, [x8]
	add	w20, w8, w20
	str	wzr, [x19, #4]
LBB0_5:
	ldr	x2, [x19, #8]
Lloh6:
	adrp	x8, _DATA_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DATA_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x19, #40]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x2, #0
LBB0_7:
	and	w8, w20, #0xff
	ldr	x9, [x19, #16]
	add	x10, x2, #1
	str	x10, [x19, #8]
	str	w8, [x9, x2, lsl #2]
LBB0_8:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh14:
	adrp	x9, _MSGEND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MSGEND@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w9, w20
	b.ne	LBB0_15
; %bb.10:
Lloh16:
	adrp	x8, _debug@GOTPAGE
Lloh17:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x19, #40]
	ldp	x2, x3, [x19, #8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_12:
	ldp	x2, x1, [x19, #8]
	ldr	w8, [x1]
	ldr	x0, [x19, #24]
	str	w8, [x0]
	cbz	x2, LBB0_14
; %bb.13:
	bl	_memcpy
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
	add	x0, x19, #44
	bl	_complete
LBB0_14:
	str	xzr, [x19, #8]
	str	wzr, [x19]
	b	LBB0_8
LBB0_15:
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.16:
	str	xzr, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MSGSTART,1,0                   ; @MSGSTART
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_MSGESC,1,0                     ; @MSGESC
	.comm	_MSGOFFSET,8,3                  ; @MSGOFFSET
	.comm	_MSGEND,1,0                     ; @MSGEND
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received: %*ph\n"

	.comm	_CEC_MAX_MSG_SIZE,4,2           ; @CEC_MAX_MSG_SIZE
	.comm	_MSGCODE_FRAME_EOM,4,2          ; @MSGCODE_FRAME_EOM
	.comm	_DATA_SIZE,8,3                  ; @DATA_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"throwing away %d bytes of garbage\n"

	.no_dead_strip	_pulse8_interrupt
.subsections_via_symbols
