	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hgpk_spewing_hack
_hgpk_spewing_hack:                     ## @hgpk_spewing_hack
	.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
	orl	%edx, %esi
	jne	LBB0_12
## %bb.1:
	movq	_spew_delay@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_12
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	movl	%r8d, %eax
	negl	%eax
	cmovsl	%r8d, %eax
	cmpl	$3, %edx
	ja	LBB0_13
## %bb.3:
	cmpl	$4, %eax
	jae	LBB0_13
## %bb.4:
	addl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	addl	4(%rbx), %r8d
	movl	%r8d, 4(%rbx)
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$131, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_12
## %bb.7:
	movl	$131, 8(%rbx)
LBB0_8:
	movl	16(%rbx), %eax
	incl	%eax
	movl	%eax, 16(%rbx)
	movq	_SPEW_WATCH_COUNT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jl	LBB0_12
## %bb.9:
	movl	$128, 8(%rbx)
LBB0_10:
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	movl	%r8d, %eax
	negl	%eax
	cmovsl	%r8d, %eax
	cmpl	$2, %edx
	ja	LBB0_12
## %bb.11:
	cmpl	$2, %eax
	ja	LBB0_12
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	callq	_psmouse_warn
	movl	$129, 8(%rbx)
	addq	$12, %rbx
	movl	(%r15), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psmouse_queue_work             ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hgpk_reset_spew_detection      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_spew_delay,4,2                 ## @spew_delay
	.comm	_SPEW_WATCH_COUNT,4,2           ## @SPEW_WATCH_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet spew detected (%d,%d)\n"

	.no_dead_strip	_hgpk_spewing_hack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hgpk_spewing_hack
_hgpk_spewing_hack:                     ; @hgpk_spewing_hack
	.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
	orr	w8, w2, w1
	cbnz	w8, LBB0_11
; %bb.1:
Lloh0:
	adrp	x21, _spew_delay@GOTPAGE
Lloh1:
	ldr	x21, [x21, _spew_delay@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0]
	cmp	w3, #0
	cneg	w9, w3, mi
	cmp	w4, #0
	cneg	w8, w4, mi
	cmp	w9, #3
	b.hi	LBB0_12
; %bb.3:
	cmp	w8, #4
	b.hs	LBB0_12
; %bb.4:
	ldp	w8, w9, [x20]
	add	w2, w8, w3
	add	w3, w9, w4
	stp	w2, w3, [x20]
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.5:
	cmp	w8, #131
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.7:
	mov	w8, #131
	str	w8, [x20, #8]
LBB0_8:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
Lloh2:
	adrp	x9, _SPEW_WATCH_COUNT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SPEW_WATCH_COUNT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_11
; %bb.9:
	mov	w8, #128
	str	w8, [x20, #8]
LBB0_10:
	cmp	w2, #0
	cneg	w8, w2, mi
	cmp	w3, #0
	cneg	w9, w3, mi
	cmp	w8, #2
	ccmp	w9, #2, #2, ls
	b.ls	LBB0_13
LBB0_11:
	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
LBB0_12:
	mov	x0, x20
	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
	b	_hgpk_reset_spew_detection
LBB0_13:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_psmouse_warn
	mov	w8, #129
	str	w8, [x20, #8]
	add	x20, x20, #12
	ldr	w0, [x21]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	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
	b	_psmouse_queue_work
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_spew_delay,4,2                 ; @spew_delay
	.comm	_SPEW_WATCH_COUNT,4,2           ; @SPEW_WATCH_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet spew detected (%d,%d)\n"

	.no_dead_strip	_hgpk_spewing_hack
.subsections_via_symbols
