	.file	"extr_hid-sensor-attributes.c_hid_sensor_read_samp_freq_value.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hid_sensor_read_samp_freq_value
	.type	hid_sensor_read_samp_freq_value, @function
hid_sensor_read_samp_freq_value:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	ecx, 8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR 12[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR 16[rdi]
	mov	r8, rsp
	call	sensor_hub_get_feature@PLT
	test	eax, eax
	js	.L2
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	js	.L2
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR HID_USAGE_SENSOR_UNITS_MILLISECOND[rip]
	je	.L10
	cmp	rax, QWORD PTR HID_USAGE_SENSOR_UNITS_SECOND[rip]
	je	.L11
.L2:
	mov	DWORD PTR [r12], 0
	mov	DWORD PTR 0[r13], 0
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rcx, r12
	mov	rdx, r13
	mov	edi, 1
	call	simple_div@PLT
.L6:
	mov	eax, DWORD PTR IIO_VAL_INT_PLUS_MICRO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rcx, r12
	mov	rdx, r13
	mov	edi, 1000
	call	simple_div@PLT
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hid_sensor_read_samp_freq_value, .-hid_sensor_read_samp_freq_value
	.comm	IIO_VAL_INT_PLUS_MICRO,4,4
	.comm	HID_USAGE_SENSOR_UNITS_SECOND,8,8
	.comm	HID_USAGE_SENSOR_UNITS_MILLISECOND,8,8
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hid-sensor-attributes.c_hid_sensor_read_samp_freq_value.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hid_sensor_read_samp_freq_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	hid_sensor_read_samp_freq_value, %function
hid_sensor_read_samp_freq_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #16
	ldr	ip, .L13
	add	r3, sp, #8
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	ldr	r1, [r0, #8]
	ldr	r2, [r0, #4]
	ldr	r0, [r0, #12]
	str	r3, [sp]
	mov	r3, #4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	sensor_hub_get_feature
	cmp	r0, #0
	blt	.L2
	ldr	r1, [sp, #8]
	cmp	r1, #0
	blt	.L2
	ldr	r2, .L13+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L13+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
.L2:
	mov	r3, #0
	ldr	r2, .L13+12
	str	r3, [r6]
	str	r3, [r5]
	ldr	r0, [r2]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r3, r6
	mov	r2, r5
	mov	r0, #1
	bl	simple_div
.L6:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	b	.L1
.L10:
	mov	r3, r6
	mov	r2, r5
	mov	r0, #1000
	bl	simple_div
	b	.L6
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	HID_USAGE_SENSOR_UNITS_MILLISECOND
	.word	HID_USAGE_SENSOR_UNITS_SECOND
	.word	EINVAL
	.word	IIO_VAL_INT_PLUS_MICRO
	.size	hid_sensor_read_samp_freq_value, .-hid_sensor_read_samp_freq_value
	.comm	IIO_VAL_INT_PLUS_MICRO,4,4
	.comm	HID_USAGE_SENSOR_UNITS_SECOND,4,4
	.comm	HID_USAGE_SENSOR_UNITS_MILLISECOND,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
