	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_get_usage_index     ## -- Begin function hid_sensor_get_usage_index
	.p2align	4, 0x90
_hid_sensor_get_usage_index:            ## @hid_sensor_get_usage_index
	.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	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %rax
	movl	(%rdi), %esi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_sensor_hub_report
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	%r14d, (%rax)
	jle	LBB0_7
## %bb.2:
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	8(%rcx), %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%rdx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rcx,%rdx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_get_usage_index     ; -- Begin function hid_sensor_get_usage_index
	.p2align	2
_hid_sensor_get_usage_index:            ; @hid_sensor_get_usage_index
	.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, x3
	mov	x20, x2
	mov	x8, x1
	ldr	w1, [x0]
Lloh0:
	adrp	x9, _HID_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_sensor_hub_report
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, w20
	b.le	LBB0_6
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	x9, [x8, w20, sxtw #3]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x9, #8]
	add	x9, x9, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x9, #-8]
	cmp	x10, x19
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x9]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
