	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magn_3d_parse_report
_magn_3d_parse_report:                  ## @magn_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdx
	movq	%rdi, %r12
	movq	_MAGN_3D_CHANNEL_MAX@GOTPCREL(%rip), %rsi
	cmpl	$0, (%rsi)
	jle	LBB0_4
## %bb.1:
	movl	%r8d, %r10d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r9, %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_magn_3d_addresses@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %ecx
	movq	%rsi, %r13
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r15), %r8
	addq	%rbx, %r8
	movq	%rdx, %rdi
	movl	%r10d, %edx
	callq	_sensor_hub_input_get_attribute_info
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	cmpl	$1, %eax
	adcl	$0, %r14d
	incq	%r12
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_4
## %bb.7:
	movl	%r14d, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	48(%r15), %rbx
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	16(%rbx), %r8
	movl	24(%rbx), %r9d
	movl	40(%rbx), %r10d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	pushq	%r10
	pushq	32(%rbx)
	callq	_dev_dbg
	addq	$16, %rsp
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 72(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	%r13, %rax
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.13:
	movq	%r15, %r8
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	addq	$16, %r12
	cmpq	%rdx, %r15
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %eax
	jge	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	48(%r8), %rdx
	cmpq	$0, (%rdx,%r12)
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cltq
	movq	_magn_3d_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, (%rdi,%rax,8)
	movslq	(%rbx), %rax
	movl	%eax, (%rdi,%rax,8)
	movslq	(%rbx), %rax
	movl	%r15d, 4(%rdi,%rax,8)
	movslq	(%rbx), %rsi
	movq	%rsi, %rax
	shlq	$2, %rax
	addq	72(%r8), %rax
	movq	80(%r8), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	48(%r8), %rax
	movl	12(%rax,%r12), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_magn_3d_adjust_channel_bit_mask
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %rcx
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	movl	(%r13), %ecx
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_18:
	testl	%eax, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_19
## %bb.20:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	movl	%eax, %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r8, %rbx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_HID_USAGE_SENSOR_COMPASS_3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHANNEL_SCAN_INDEX_X@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$4, %rsi
	addq	48(%rbx), %rsi
	leaq	60(%rbx), %rdx
	leaq	56(%rbx), %rcx
	callq	_hid_sensor_format_scale
	movq	%rax, 64(%rbx)
	movq	_HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$4, %rsi
	addq	48(%rbx), %rsi
	leaq	36(%rbx), %rdx
	leaq	32(%rbx), %rcx
	callq	_hid_sensor_format_scale
	movq	%rax, 40(%rbx)
	cmpq	$0, 16(%rbx)
	jns	LBB0_23
## %bb.21:
	leaq	16(%rbx), %r14
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPCREL(%rip), %r13
	movq	_HID_USAGE_SENSOR_DATA_ORIENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r13), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_sensor_hub_input_get_attribute_info
	movq	16(%rbx), %rdx
	movl	24(%rbx), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpq	$0, 16(%rbx)
	jns	LBB0_23
## %bb.22:
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_USAGE_SENSOR_ORIENT_MAGN_FLUX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r13), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_sensor_hub_input_get_attribute_info
	movq	16(%rbx), %rdx
	movl	24(%rbx), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_23:
	cmpq	$0, (%rbx)
	movq	%rbx, %r14
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$0, %ebx
	jns	LBB0_25
## %bb.24:
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_sensor_hub_input_get_attribute_info
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_25
LBB0_19:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
LBB0_9:
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAGN_3D_CHANNEL_MAX,4,2        ## @MAGN_3D_CHANNEL_MAX
	.comm	_magn_3d_addresses,8,3          ## @magn_3d_addresses
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find any supported usage attributes in report\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"magn_3d Found %d usage attributes\n"

L_.str.2:                               ## @.str.2
	.asciz	"magn_3d X: %x:%x Y: %x:%x Z: %x:%x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate space for iio channels\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"failed to allocate space for iio values array\n"

	.comm	_magn_3d_channels,8,3           ## @magn_3d_channels
L_.str.5:                               ## @.str.5
	.asciz	"failed to find any magnetic channels setup\n"

L_.str.6:                               ## @.str.6
	.asciz	"magn_3d Setup %d IIO channels\n"

	.comm	_HID_USAGE_SENSOR_COMPASS_3D,4,2 ## @HID_USAGE_SENSOR_COMPASS_3D
	.comm	_CHANNEL_SCAN_INDEX_X,8,3       ## @CHANNEL_SCAN_INDEX_X
	.comm	_HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH,4,2 ## @HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH
	.comm	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP,8,3 ## @CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.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_ORIENTATION,4,2 ## @HID_USAGE_SENSOR_DATA_ORIENTATION
L_.str.7:                               ## @.str.7
	.asciz	"Sensitivity index:report %d:%d\n"

	.comm	_HID_USAGE_SENSOR_ORIENT_MAGN_FLUX,4,2 ## @HID_USAGE_SENSOR_ORIENT_MAGN_FLUX
	.no_dead_strip	_magn_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 magn_3d_parse_report
_magn_3d_parse_report:                  ; @magn_3d_parse_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	x2, [sp, #48]                   ; 8-byte Folded Spill
	mov	x28, x0
Lloh0:
	adrp	x27, _MAGN_3D_CHANNEL_MAX@GOTPAGE
Lloh1:
	ldr	x27, [x27, _MAGN_3D_CHANNEL_MAX@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x22, x1
	str	x28, [sp, #56]                  ; 8-byte Folded Spill
	mov	x23, #0
	mov	x26, #0
	mov	w25, #0
Lloh2:
	adrp	x28, _magn_3d_addresses@GOTPAGE
Lloh3:
	ldr	x28, [x28, _magn_3d_addresses@GOTPAGEOFF]
Lloh4:
	adrp	x19, _HID_INPUT_REPORT@GOTPAGE
Lloh5:
	ldr	x19, [x19, _HID_INPUT_REPORT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	w3, [x8, x26, lsl #2]
	ldr	w1, [x19]
	ldr	x8, [x20, #48]
	add	x4, x8, x23
	mov	x0, x22
	mov	x2, x21
	bl	_sensor_hub_input_get_attribute_info
	cmp	w0, #0
	cinc	w25, w25, eq
	add	x26, x26, #1
	ldrsw	x8, [x27]
	add	x23, x23, #16
	cmp	x26, x8
	b.lt	LBB0_2
; %bb.3:
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	cbz	w25, LBB0_12
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x28
	mov	x2, x25
	bl	_dev_dbg
	ldr	x8, [x20, #48]
	ldr	x2, [x8]
	ldr	x9, [x8, #16]
	ldr	x10, [x8, #32]
	ldr	w11, [x8, #8]
	ldr	w12, [x8, #24]
	ldr	w8, [x8, #40]
	stp	x10, x8, [sp, #24]
	stp	x9, x12, [sp, #8]
	str	x11, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x28
	bl	_dev_dbg
Lloh10:
	adrp	x19, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x19]
	mov	x0, x28
	mov	x1, x25
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_14
; %bb.5:
	mov	x26, x0
	ldr	w3, [x19]
	mov	x0, x28
	mov	x1, x25
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #72]
	cbz	x0, LBB0_23
; %bb.6:
	str	wzr, [x24]
	ldr	w9, [x27]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.7:
	mov	x28, #0
	mov	w8, #0
	mov	x23, #0
Lloh12:
	adrp	x19, _magn_3d_channels@GOTPAGE
Lloh13:
	ldr	x19, [x19, _magn_3d_channels@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	add	x28, x28, #16
	cmp	x23, w9, sxtw
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w25
	b.ge	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x20, #48]
	ldr	x10, [x10, x28]
	tbnz	x10, #63, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x19]
	lsl	x10, x23, #3
	ldr	x9, [x9, x10]
	str	x9, [x26, w8, sxtw #3]
	ldrsw	x8, [x24]
	lsl	x9, x8, #3
	str	w8, [x26, x9]
	ldrsw	x8, [x24]
	add	x8, x26, x8, lsl #3
	str	w23, [x8, #4]
	ldrsw	x1, [x24]
	ldp	x8, x9, [x20, #72]
	add	x8, x8, x1, lsl #2
	str	x8, [x9, x10]
	ldr	x8, [x20, #48]
	add	x8, x8, x28
	ldr	w2, [x8, #12]
	mov	x0, x26
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_magn_3d_adjust_channel_bit_mask
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	ldr	w9, [x27]
	b	LBB0_8
LBB0_12:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x28
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_25
LBB0_14:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_15:
	cmp	w8, #0
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	b.le	LBB0_22
; %bb.16:
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	str	x26, [x9]
	mov	w2, w8
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x28
	bl	_dev_dbg
Lloh22:
	adrp	x8, _HID_USAGE_SENSOR_COMPASS_3D@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HID_USAGE_SENSOR_COMPASS_3D@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x20, #48]
Lloh25:
	adrp	x9, _CHANNEL_SCAN_INDEX_X@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CHANNEL_SCAN_INDEX_X@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #4
	add	x2, x20, #60
	add	x3, x20, #56
	bl	_hid_sensor_format_scale
	str	x0, [x20, #64]
Lloh28:
	adrp	x24, _HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH@GOTPAGE
Lloh29:
	ldr	x24, [x24, _HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x8, [x20, #48]
Lloh30:
	adrp	x9, _CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #4
	add	x2, x20, #36
	add	x3, x20, #32
	bl	_hid_sensor_format_scale
	mov	x23, x20
	ldr	x8, [x23, #16]!
	str	x0, [x23, #24]
	tbz	x8, #63, LBB0_19
; %bb.17:
Lloh33:
	adrp	x19, _HID_FEATURE_REPORT@GOTPAGE
Lloh34:
	ldr	x19, [x19, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh35:
	adrp	x25, _HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPAGE
Lloh36:
	ldr	x25, [x25, _HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPAGEOFF]
	ldr	w1, [x19]
	ldr	w8, [x25]
Lloh37:
	adrp	x9, _HID_USAGE_SENSOR_DATA_ORIENTATION@GOTPAGE
Lloh38:
	ldr	x9, [x9, _HID_USAGE_SENSOR_DATA_ORIENTATION@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x23
	bl	_sensor_hub_input_get_attribute_info
	ldr	x2, [x20, #16]
	ldr	w8, [x20, #24]
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x28
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	tbz	x8, #63, LBB0_19
; %bb.18:
	ldr	w1, [x19]
	ldr	w8, [x25]
Lloh42:
	adrp	x9, _HID_USAGE_SENSOR_ORIENT_MAGN_FLUX@GOTPAGE
Lloh43:
	ldr	x9, [x9, _HID_USAGE_SENSOR_ORIENT_MAGN_FLUX@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x23
	bl	_sensor_hub_input_get_attribute_info
	ldr	x2, [x20, #16]
	ldr	w8, [x20, #24]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x28
	bl	_dev_dbg
LBB0_19:
	ldr	x8, [x20]
	tbz	x8, #63, LBB0_21
; %bb.20:
Lloh47:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x24]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x20
	bl	_sensor_hub_input_get_attribute_info
	ldr	x2, [x20]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.7@PAGE
Lloh54:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x28
	bl	_dev_dbg
LBB0_21:
	mov	w0, #0
	b	LBB0_26
LBB0_22:
Lloh55:
	adrp	x1, l_.str.5@PAGE
Lloh56:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_23:
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_24:
	mov	x0, x28
	bl	_dev_err
Lloh59:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_MAGN_3D_CHANNEL_MAX,4,2        ; @MAGN_3D_CHANNEL_MAX
	.comm	_magn_3d_addresses,8,3          ; @magn_3d_addresses
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find any supported usage attributes in report\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"magn_3d Found %d usage attributes\n"

l_.str.2:                               ; @.str.2
	.asciz	"magn_3d X: %x:%x Y: %x:%x Z: %x:%x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate space for iio channels\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"failed to allocate space for iio values array\n"

	.comm	_magn_3d_channels,8,3           ; @magn_3d_channels
l_.str.5:                               ; @.str.5
	.asciz	"failed to find any magnetic channels setup\n"

l_.str.6:                               ; @.str.6
	.asciz	"magn_3d Setup %d IIO channels\n"

	.comm	_HID_USAGE_SENSOR_COMPASS_3D,4,2 ; @HID_USAGE_SENSOR_COMPASS_3D
	.comm	_CHANNEL_SCAN_INDEX_X,8,3       ; @CHANNEL_SCAN_INDEX_X
	.comm	_HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH,4,2 ; @HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH
	.comm	_CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP,8,3 ; @CHANNEL_SCAN_INDEX_NORTH_MAGN_TILT_COMP
	.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_ORIENTATION,4,2 ; @HID_USAGE_SENSOR_DATA_ORIENTATION
l_.str.7:                               ; @.str.7
	.asciz	"Sensitivity index:report %d:%d\n"

	.comm	_HID_USAGE_SENSOR_ORIENT_MAGN_FLUX,4,2 ; @HID_USAGE_SENSOR_ORIENT_MAGN_FLUX
	.no_dead_strip	_magn_3d_parse_report
.subsections_via_symbols
