	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sensor_hub_input_attr_get_raw_value ## -- Begin function sensor_hub_input_attr_get_raw_value
	.p2align	4, 0x90
_sensor_hub_input_attr_get_raw_value:   ## @sensor_hub_input_attr_get_raw_value
	.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	%r8d, %r14d
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	48(%rdi), %edi
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movl	48(%r13), %esi
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sensor_hub_report
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%r13), %rdi
	callq	_mutex_lock
	movq	_SENSOR_HUB_SYNC@GOTPCREL(%rip), %rbx
	cmpl	%r14d, (%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	8(%r13), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	24(%r13), %rdi
	callq	_init_completion
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r13)
	movl	$0, 8(%r13)
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$1, 12(%r13)
	movq	%rbx, %rdi
	movq	_SENSOR_HUB_SYNC@GOTPCREL(%rip), %rbx
	callq	_spin_unlock_irqrestore
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	48(%r13), %edi
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_hid_hw_request
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%r15d, %r15d
	cmpl	%r14d, (%rbx)
	jne	LBB0_11
## %bb.5:
	leaq	24(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	callq	_wait_for_completion_interruptible_timeout
	movl	8(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$2, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$4, %eax
	jne	LBB0_8
LBB0_9:
	movq	16(%r13), %rdi
	movl	(%rdi), %r15d
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_8:
	movq	16(%r13), %rdi
	xorl	%r15d, %r15d
LBB0_10:
	callq	_kfree
	movl	$0, 12(%r13)
LBB0_11:
	movq	(%r13), %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SENSOR_HUB_SYNC,4,2            ## @SENSOR_HUB_SYNC
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sensor_hub_input_attr_get_raw_value ; -- Begin function sensor_hub_input_attr_get_raw_value
	.p2align	2
_sensor_hub_input_attr_get_raw_value:   ; @sensor_hub_input_attr_get_raw_value
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0, #48]
	bl	_hid_get_drvdata
	mov	x21, x0
	ldr	w1, [x19, #48]
Lloh0:
	adrp	x8, _HID_INPUT_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_sensor_hub_report
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	ldr	x0, [x19]
	bl	_mutex_lock
Lloh3:
	adrp	x25, _SENSOR_HUB_SYNC@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SENSOR_HUB_SYNC@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, x19, #24
	bl	_init_completion
	stp	x23, x24, [x19, #32]
	add	x23, x21, #4
	str	wzr, [x19, #8]
	mov	x0, x23
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19, #12]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
LBB0_3:
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x19, #48]
Lloh5:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_hid_hw_request
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x25]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.4:
	add	x0, x19, #24
Lloh8:
	adrp	x8, _HZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
	bl	_wait_for_completion_interruptible_timeout
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #2
	b.eq	LBB0_7
; %bb.6:
	cmp	w8, #4
	b.ne	LBB0_10
LBB0_7:
	ldr	x0, [x19, #16]
	ldr	w20, [x0]
	b	LBB0_11
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_9:
	mov	w20, #0
	b	LBB0_12
LBB0_10:
	mov	w20, #0
	ldr	x0, [x19, #16]
LBB0_11:
	bl	_kfree
	str	wzr, [x19, #12]
LBB0_12:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SENSOR_HUB_SYNC,4,2            ; @SENSOR_HUB_SYNC
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
