	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accel_3d_parse_report
_accel_3d_parse_report:                 ## @accel_3d_parse_report
	.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
	movq	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_CHANNEL_SCAN_INDEX_Z@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	xorl	%r15d, %r15d
	movq	_CHANNEL_SCAN_INDEX_X@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_USAGE_SENSOR_ACCEL_X_AXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%r15d, %ecx
	movslq	(%r12), %r8
	addq	%r15, %r8
	shlq	$4, %r8
	addq	24(%r13), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_sensor_hub_input_get_attribute_info
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12), %rax
	leal	(%r15,%rax), %esi
	movq	24(%r13), %rcx
	addq	%r15, %rax
	shlq	$4, %rax
	movl	12(%rcx,%rax), %edx
	movq	%r14, %rdi
	callq	_accel_3d_adjust_channel_bit_mask
	incq	%r15
	leal	-1(%r15), %eax
	movq	_CHANNEL_SCAN_INDEX_Z@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
                                        ## implicit-def: $ebx
LBB0_5:
	movq	24(%r13), %r10
	movq	(%r10), %rdx
	movl	8(%r10), %ecx
	movq	16(%r10), %r8
	movl	24(%r10), %r9d
	movl	40(%r10), %r11d
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	pushq	%r11
	pushq	32(%r10)
	callq	_dev_dbg
	addq	$16, %rsp
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movq	_CHANNEL_SCAN_INDEX_X@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	shlq	$4, %rsi
	addq	24(%r13), %rsi
	leaq	20(%r13), %rdx
	leaq	16(%r13), %rcx
	callq	_hid_sensor_format_scale
	movl	%eax, 32(%r13)
	cmpq	$0, (%r13)
	jns	LBB0_7
## %bb.6:
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPCREL(%rip), %rax
	movq	_HID_USAGE_SENSOR_DATA_ACCELERATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %r8
	callq	_sensor_hub_input_get_attribute_info
	movq	(%r13), %rdx
	movl	8(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_SCAN_INDEX_Z,4,2       ## @CHANNEL_SCAN_INDEX_Z
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.comm	_HID_USAGE_SENSOR_ACCEL_X_AXIS,4,2 ## @HID_USAGE_SENSOR_ACCEL_X_AXIS
	.comm	_CHANNEL_SCAN_INDEX_X,4,2       ## @CHANNEL_SCAN_INDEX_X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accel_3d %x:%x, %x:%x, %x:%x\n"

	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS,4,2 ## @HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS
	.comm	_HID_USAGE_SENSOR_DATA_ACCELERATION,4,2 ## @HID_USAGE_SENSOR_DATA_ACCELERATION
L_.str.1:                               ## @.str.1
	.asciz	"Sensitivity index:report %d:%d\n"

	.no_dead_strip	_accel_3d_parse_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accel_3d_parse_report
_accel_3d_parse_report:                 ; @accel_3d_parse_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x21, x3
	mov	x22, x1
Lloh0:
	adrp	x26, _CHANNEL_SCAN_INDEX_Z@GOTPAGE
Lloh1:
	ldr	x26, [x26, _CHANNEL_SCAN_INDEX_Z@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x25, _CHANNEL_SCAN_INDEX_X@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CHANNEL_SCAN_INDEX_X@GOTPAGEOFF]
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x24, x2
	mov	x27, #0
Lloh4:
	adrp	x28, _HID_INPUT_REPORT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh6:
	adrp	x20, _HID_USAGE_SENSOR_ACCEL_X_AXIS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HID_USAGE_SENSOR_ACCEL_X_AXIS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	ldr	w8, [x20]
	add	w3, w27, w8
	ldr	x8, [x19, #24]
	ldrsw	x9, [x25]
	add	x9, x27, x9
	add	x4, x8, x9, lsl #4
	mov	x0, x22
	mov	x2, x21
	bl	_sensor_hub_input_get_attribute_info
	mov	x23, x0
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x25]
	add	w1, w27, w8
	ldr	x9, [x19, #24]
	add	x8, x27, x8
	add	x8, x9, x8, lsl #4
	ldr	w2, [x8, #12]
	mov	x0, x24
	bl	_accel_3d_adjust_channel_bit_mask
	ldr	w8, [x26]
	add	x27, x27, #1
	sub	w9, w27, #1
	cmp	w9, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
                                        ; implicit-def: $w23
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	ldr	x9, [x8, #16]
	ldr	x10, [x8, #32]
	ldr	w11, [x8, #24]
	ldr	w8, [x8, #40]
	stp	x10, x8, [sp, #16]
	stp	x9, x11, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_dev_dbg
	ldr	w0, [x22]
	ldr	x8, [x19, #24]
	ldrsw	x9, [x25]
	add	x1, x8, x9, lsl #4
	add	x2, x19, #20
	add	x3, x19, #16
	bl	_hid_sensor_format_scale
	str	w0, [x19, #32]
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh12:
	adrp	x9, _HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	ldr	w8, [x9]
Lloh16:
	adrp	x9, _HID_USAGE_SENSOR_DATA_ACCELERATION@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HID_USAGE_SENSOR_DATA_ACCELERATION@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x19
	bl	_sensor_hub_input_get_attribute_info
	ldr	x2, [x19]
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_SCAN_INDEX_Z,4,2       ; @CHANNEL_SCAN_INDEX_Z
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.comm	_HID_USAGE_SENSOR_ACCEL_X_AXIS,4,2 ; @HID_USAGE_SENSOR_ACCEL_X_AXIS
	.comm	_CHANNEL_SCAN_INDEX_X,4,2       ; @CHANNEL_SCAN_INDEX_X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accel_3d %x:%x, %x:%x, %x:%x\n"

	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS,4,2 ; @HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS
	.comm	_HID_USAGE_SENSOR_DATA_ACCELERATION,4,2 ; @HID_USAGE_SENSOR_DATA_ACCELERATION
l_.str.1:                               ; @.str.1
	.asciz	"Sensitivity index:report %d:%d\n"

	.no_dead_strip	_accel_3d_parse_report
.subsections_via_symbols
