	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_read_samp_freq_value ## -- Begin function hid_sensor_read_samp_freq_value
	.p2align	4, 0x90
_hid_sensor_read_samp_freq_value:       ## @hid_sensor_read_samp_freq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	leaq	-32(%rbp), %r8
	movl	$8, %ecx
	callq	_sensor_hub_get_feature
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	js	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	_HID_USAGE_SENSOR_UNITS_MILLISECOND@GOTPCREL(%rip), %rcx
	movl	$1000, %edi                     ## imm = 0x3E8
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_HID_USAGE_SENSOR_UNITS_SECOND@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_5:
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_simple_div
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movl	$0, (%r14)
	movl	$0, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HID_USAGE_SENSOR_UNITS_MILLISECOND,8,3 ## @HID_USAGE_SENSOR_UNITS_MILLISECOND
	.comm	_HID_USAGE_SENSOR_UNITS_SECOND,8,3 ## @HID_USAGE_SENSOR_UNITS_SECOND
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_read_samp_freq_value ; -- Begin function hid_sensor_read_samp_freq_value
	.p2align	2
_hid_sensor_read_samp_freq_value:       ; @hid_sensor_read_samp_freq_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #16]
	ldp	w2, w1, [x21, #8]
	add	x4, sp, #8
	mov	w3, #8
	bl	_sensor_hub_get_feature
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x1, [sp, #8]
	tbnz	x1, #63, LBB0_7
; %bb.2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _HID_USAGE_SENSOR_UNITS_MILLISECOND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_USAGE_SENSOR_UNITS_MILLISECOND@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1000
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x9, _HID_USAGE_SENSOR_UNITS_SECOND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_USAGE_SENSOR_UNITS_SECOND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #1
LBB0_6:
	mov	x2, x19
	mov	x3, x20
	bl	_simple_div
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	str	wzr, [x20]
	str	wzr, [x19]
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HID_USAGE_SENSOR_UNITS_MILLISECOND,8,3 ; @HID_USAGE_SENSOR_UNITS_MILLISECOND
	.comm	_HID_USAGE_SENSOR_UNITS_SECOND,8,3 ; @HID_USAGE_SENSOR_UNITS_SECOND
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
.subsections_via_symbols
