	.file	"extr_bma150.c_bma150_set_low_g_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bma150_set_low_g_interrupt, @function
bma150_set_low_g_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	mov	esi, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR BMA150_LOW_G_HYST_REG[rip]
	mov	ecx, DWORD PTR BMA150_LOW_G_HYST_MSK[rip]
	mov	edx, DWORD PTR BMA150_LOW_G_HYST_POS[rip]
	mov	edi, DWORD PTR [rdi]
	call	bma150_set_reg_bits@PLT
	test	eax, eax
	je	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR BMA150_LOW_G_DUR_REG[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, r13d
	call	bma150_write_byte@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR BMA150_LOW_G_THRES_REG[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	call	bma150_write_byte@PLT
	test	eax, eax
	jne	.L1
	xor	esi, esi
	test	ebp, ebp
	mov	edi, DWORD PTR [rbx]
	mov	ecx, DWORD PTR BMA150_LOW_G_EN_MSK[rip]
	mov	r8d, DWORD PTR BMA150_LOW_G_EN_REG[rip]
	mov	edx, DWORD PTR BMA150_LOW_G_EN_POS[rip]
	setne	sil
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	bma150_set_reg_bits@PLT
	.cfi_endproc
.LFE0:
	.size	bma150_set_low_g_interrupt, .-bma150_set_low_g_interrupt
	.comm	BMA150_LOW_G_THRES_REG,4,4
	.comm	BMA150_LOW_G_HYST_REG,4,4
	.comm	BMA150_LOW_G_HYST_POS,4,4
	.comm	BMA150_LOW_G_HYST_MSK,4,4
	.comm	BMA150_LOW_G_EN_REG,4,4
	.comm	BMA150_LOW_G_EN_POS,4,4
	.comm	BMA150_LOW_G_EN_MSK,4,4
	.comm	BMA150_LOW_G_DUR_REG,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_bma150.c_bma150_set_low_g_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bma150_set_low_g_interrupt, %function
bma150_set_low_g_interrupt:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	ip, r3
	mov	lr, r1
	ldr	r1, .L6
	sub	sp, sp, #12
	ldr	r6, [r1]
	ldr	r5, .L6+4
	ldr	r3, .L6+8
	mov	r4, r0
	ldr	r0, [r0]
	str	r6, [sp]
	mov	r1, r2
	ldr	r3, [r3]
	ldr	r2, [r5]
	mov	r6, lr
	mov	r5, ip
	ldr	r7, [sp, #32]
	bl	bma150_set_reg_bits
	cmp	r0, #0
	beq	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	ldr	r3, .L6+12
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	bma150_write_byte
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L6+16
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	bma150_write_byte
	cmp	r0, #0
	bne	.L1
	subs	r1, r6, #0
	movne	r1, #1
	ldr	r2, .L6+20
	ldr	r3, .L6+24
	ldr	ip, [r2]
	ldr	r2, .L6+28
	ldr	r0, [r4]
	str	ip, [sp, #32]
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	bma150_set_reg_bits
.L7:
	.align	2
.L6:
	.word	BMA150_LOW_G_HYST_REG
	.word	BMA150_LOW_G_HYST_POS
	.word	BMA150_LOW_G_HYST_MSK
	.word	BMA150_LOW_G_DUR_REG
	.word	BMA150_LOW_G_THRES_REG
	.word	BMA150_LOW_G_EN_REG
	.word	BMA150_LOW_G_EN_MSK
	.word	BMA150_LOW_G_EN_POS
	.size	bma150_set_low_g_interrupt, .-bma150_set_low_g_interrupt
	.comm	BMA150_LOW_G_THRES_REG,4,4
	.comm	BMA150_LOW_G_HYST_REG,4,4
	.comm	BMA150_LOW_G_HYST_POS,4,4
	.comm	BMA150_LOW_G_HYST_MSK,4,4
	.comm	BMA150_LOW_G_EN_REG,4,4
	.comm	BMA150_LOW_G_EN_POS,4,4
	.comm	BMA150_LOW_G_EN_MSK,4,4
	.comm	BMA150_LOW_G_DUR_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
