	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_hub_raw_event
_sensor_hub_raw_event:                  ## @sensor_hub_raw_event
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %r13
	movq	$0, -88(%rbp)
	movq	$0, -48(%rbp)
	movl	24(%rbx), %edx
	movq	(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_hid_dbg
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_hid_dbg
	movq	(%rbx), %rax
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.1:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 8(%rbx)
	jle	LBB0_16
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	$4, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi
	movl	(%r12), %r8d
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r14d, %rax
	leaq	(%r15,%rax,4), %r15
	incq	%r13
	movslq	8(%rbx), %rax
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movq	16(%rax), %rdx
	movq	(%rdx), %rcx
	movq	8(%rdx), %r8
	movl	4(%rax), %edx
	imull	(%rax), %edx
	leal	7(%rdx), %r9d
	testl	%edx, %edx
	cmovnsl	%edx, %r9d
	sarl	$3, %r9d
	movq	%rbx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_hid_dbg
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	4(%rax), %ecx
	imull	(%rax), %ecx
	leal	7(%rcx), %r14d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r14d
	sarl	$3, %r14d
	movq	(%rbx), %rcx
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_hid_dbg
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	24(%rax), %esi
	movq	16(%rax), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rbx
	leaq	-48(%rbp), %rcx
	leaq	-88(%rbp), %r8
	callq	_sensor_hub_get_callback
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	16(%rcx), %rdx
	cmpq	8(%rdx), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	8(%rcx), %rax
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_hid_dbg
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_kmemdup
	movq	-48(%rbp), %rdi
	movq	%rax, 16(%rdi)
	testq	%rax, %rax
	movl	%r14d, %eax
	movl	$0, %ecx
	cmovel	%ecx, %eax
	movl	%eax, 8(%rdi)
	addq	$12, %rdi
	callq	_complete
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rcx), %rcx
	movq	8(%rcx), %rsi
	jmp	LBB0_11
LBB0_13:
	testq	%r12, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_16
## %bb.14:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %esi
	movl	(%r12), %edx
	callq	*%rax
LBB0_16:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
LBB0_17:
	movl	$1, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sensor_hub_raw_event report id:0x%x size:%d type:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"maxfield:%d\n"

	.comm	_HID_INPUT_REPORT,8,3           ## @HID_INPUT_REPORT
L_.str.2:                               ## @.str.2
	.asciz	"%d collection_index:%x hid:%x sz:%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"collection->usage %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"data was pending ...\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_sensor_hub_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_hub_raw_event
_sensor_hub_raw_event:                  ; @sensor_hub_raw_event
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	mov	x24, x0
	stp	xzr, xzr, [sp, #48]
	ldr	x8, [x20]
	ldr	w9, [x20, #24]
	stp	x23, x8, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_hid_dbg
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_hid_dbg
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _HID_INPUT_REPORT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.1:
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.2:
	str	x24, [sp, #40]                  ; 8-byte Folded Spill
	mov	x28, #0
	add	x22, x22, #4
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh9:
	adrp	x24, l_.str.3@PAGE
Lloh10:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #48]
	ldr	w4, [x27]
	mov	x2, x26
	mov	x3, x22
	blr	x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, w26, sxtw #2
	add	x28, x28, #1
	ldrsw	x8, [x20, #8]
	cmp	x28, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	lsl	x27, x28, #3
	ldr	x8, [x8, x27]
	ldr	x9, [x8, #16]
	ldp	x10, x9, [x9]
	ldp	w11, w8, [x8]
	mul	w8, w8, w11
	add	w11, w8, #7
	cmp	w8, #0
	csel	w8, w11, w8, lt
	asr	w8, w8, #3
	stp	x28, x10, [sp]
	stp	x9, x8, [sp, #16]
	mov	x0, x21
	mov	x1, x23
	bl	_hid_dbg
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x27]
	ldp	w9, w10, [x8]
	mul	w9, w10, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w26, w9, #3
	ldr	x19, [x21]
	ldr	x8, [x8, #16]
	ldr	x25, [x8]
	ldr	w8, [x19, x25, lsl #2]
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x24
	bl	_hid_dbg
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x27]
	ldr	w1, [x8, #24]
	ldr	x8, [x8, #16]
	ldr	x2, [x8]
	add	x3, sp, #48
	add	x4, sp, #56
	mov	x0, x21
	bl	_sensor_hub_get_callback
	mov	x27, x0
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #48]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x28, lsl #3]
	ldr	x10, [x9, #16]
	ldr	x10, [x10, #8]
	cmp	x8, x10
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_hid_dbg
Lloh13:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x26
	bl	_kmemdup
	ldr	x8, [sp, #48]
	str	x0, [x8, #16]
	cmp	x0, #0
	csel	w9, wzr, w26, eq
	str	w9, [x8, #8]
	add	x0, x8, #12
	bl	_complete
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x28, lsl #3]
	ldr	x1, [x9, #8]
	cbnz	x1, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x9, #16]
	ldr	x1, [x9, #8]
	b	LBB0_3
LBB0_13:
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	cbz	x27, LBB0_16
; %bb.14:
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x0, [sp, #48]
	ldr	w1, [x19, x25, lsl #2]
	ldr	w2, [x27]
	blr	x8
LBB0_16:
	mov	x0, x24
	bl	_spin_unlock_irqrestore
LBB0_17:
	mov	w0, #1
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sensor_hub_raw_event report id:0x%x size:%d type:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"maxfield:%d\n"

	.comm	_HID_INPUT_REPORT,8,3           ; @HID_INPUT_REPORT
l_.str.2:                               ; @.str.2
	.asciz	"%d collection_index:%x hid:%x sz:%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"collection->usage %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"data was pending ...\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_sensor_hub_raw_event
.subsections_via_symbols
