	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sensor_hub_get_feature         ## -- Begin function sensor_hub_get_feature
	.p2align	4, 0x90
_sensor_hub_get_feature:                ## @sensor_hub_get_feature
	.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, %rbx
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_hid_get_drvdata
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rax, %rbx
	xorl	%esi, %esi
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r14), %esi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_sensor_hub_report
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	cmpq	%r12, (%rax)
	jbe	LBB0_3
## %bb.2:
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_hid_hw_request
	movl	(%r14), %edi
	callq	_hid_hw_wait
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	4(%rax), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	8(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	imull	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%eax, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r15d
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.6:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.7:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r14
	movl	4(%rax), %eax
	xorl	%ebx, %ebx
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	8(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
	movl	4(%rdx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	cmpl	(%rdx), %r12d
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %r14
	sarl	$3, %ecx
	addl	%ecx, %ebx
	incl	%r12d
	cmpl	%r15d, %ebx
	jl	LBB0_8
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	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_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sensor_hub_get_feature         ; -- Begin function sensor_hub_get_feature
	.p2align	2
_sensor_hub_get_feature:                ; @sensor_hub_get_feature
	.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	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
	ldr	w0, [x0]
	bl	_hid_get_drvdata
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x24]
Lloh0:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_sensor_hub_report
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x8, x21
	b.ls	LBB0_7
; %bb.2:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_7
; %bb.3:
	ldr	w0, [x24]
Lloh3:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_hid_hw_request
	ldr	w0, [x24]
	bl	_hid_hw_wait
	ldr	x8, [x22, #8]
	lsl	x24, x21, #3
	ldr	x8, [x8, x24]
	ldr	w0, [x8, #4]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24]
	ldr	w8, [x8]
	mul	w0, w8, w0
	cbz	w0, LBB0_7
; %bb.4:
	mov	x1, x23
	bl	_min
	mov	x23, x0
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #1
	ccmp	w0, #1, #8, ge
	b.lt	LBB0_8
; %bb.5:
	mov	w25, #0
	ldr	x24, [x8, #8]
	ldr	w8, [x8, #4]
	mov	w26, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, w25, sxtw #2
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	mov	x1, x24
	bl	_memcpy
	add	x24, x24, #16
	ldr	x8, [x22, #8]
	ldr	x9, [x8, x21, lsl #3]
	ldp	w9, w8, [x9]
	add	w10, w8, #7
	cmp	w8, #0
	csel	w10, w10, w8, lt
	add	w25, w25, w10, asr #3
	cmp	w26, w9
	add	w26, w26, #1
	ccmp	w25, w23, #0, lt
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
.subsections_via_symbols
