	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cougar_report_fixup
_cougar_report_fixup:                   ## @cougar_report_fixup
	.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
	movq	%rsi, %rbx
	cmpl	$9, 8(%rsi)
	jne	LBB0_4
## %bb.1:
	cmpl	$2, 12(%rbx)
	jne	LBB0_4
## %bb.2:
	movl	464(%rbx), %eax
	shll	$8, %eax
	orl	460(%rbx), %eax
	movq	_HID_MAX_USAGES@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jl	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	callq	_hid_info
	movl	(%r14), %eax
	decl	%eax
	movzbl	%al, %ecx
	movl	%ecx, 460(%rbx)
	sarl	$8, %eax
	movl	%eax, 464(%rbx)
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_MAX_USAGES,4,2             ## @HID_MAX_USAGES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage count exceeds max: fixing up report descriptor\n"

	.no_dead_strip	_cougar_report_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cougar_report_fixup
_cougar_report_fixup:                   ; @cougar_report_fixup
	.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	x19, x1
	ldr	w8, [x1, #8]
	cmp	w8, #9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #460]
	ldr	w9, [x19, #464]
	orr	w8, w8, w9, lsl #8
Lloh0:
	adrp	x20, _HID_MAX_USAGES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _HID_MAX_USAGES@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hid_info
	ldr	w8, [x20]
	sub	w8, w8, #1
	and	w9, w8, #0xff
	str	w9, [x19, #460]
	asr	w8, w8, #8
	str	w8, [x19, #464]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_MAX_USAGES,4,2             ; @HID_MAX_USAGES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage count exceeds max: fixing up report descriptor\n"

	.no_dead_strip	_cougar_report_fixup
.subsections_via_symbols
