	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_report_size                ## -- Begin function hid_report_size
	.p2align	4, 0x90
_hid_report_size:                       ## @hid_report_size
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %r12d
	leaq	-64(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$1, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	movl	%r12d, %edi
	movl	%r15d, %edx
	callq	_hid_start_parse
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_hid_get_item
	movl	$-1, %r12d
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-64(%rbp), %rsi
	callq	_hid_get_item
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, -64(%rbp)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %eax
	movl	-52(%rbp), %ecx
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	imull	-56(%rbp), %ecx
	addl	%eax, %ecx
	cmpl	%ecx, %ebx
	cmovlel	%ecx, %ebx
	cmpq	$0, -48(%rbp)
	movl	$1, %eax
	cmovnel	%eax, %r13d
	jmp	LBB0_4
LBB0_5:
	subl	%r12d, %ebx
	movq	%r15, %rdi
	callq	_hid_end_parse
	leal	7(%rbx), %eax
	addl	$14, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	addl	%r13d, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_report_size                ; -- Begin function hid_report_size
	.p2align	2
_hid_report_size:                       ; @hid_report_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w8, #1
	lsl	w1, w8, w19
	mov	x0, x21
	mov	x2, x20
	bl	_hid_start_parse
	mov	x20, x0
	add	x1, sp, #8
	bl	_hid_get_item
	cbz	x0, LBB0_5
; %bb.1:
	mov	w21, #0
	mov	w22, #0
	mov	w23, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_hid_get_item
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w8, w9, [sp, #12]
	cmp	w23, w8
	csel	w23, w23, w8, lt
	ldr	w10, [sp, #20]
	madd	w8, w10, w9, w8
	cmp	w22, w8
	csel	w22, w22, w8, gt
	ldr	x8, [sp, #24]
	cmp	x8, #0
	csinc	w21, w21, wzr, eq
	b	LBB0_2
LBB0_5:
	mov	w22, #0
	mov	w21, #0
	mov	w23, #-1
LBB0_6:
	mov	x0, x20
	bl	_hid_end_parse
	sub	w8, w22, w23
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	add	w0, w21, w8, asr #3
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
