	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma150_soft_reset
_bma150_soft_reset:                     ## @bma150_soft_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %edi
	movq	_BMA150_SW_RES_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BMA150_SW_RES_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BMA150_SW_RES_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %esi
	callq	_bma150_set_reg_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$2100, %esi                     ## imm = 0x834
	callq	_usleep_range
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMA150_SW_RES_POS,4,2          ## @BMA150_SW_RES_POS
	.comm	_BMA150_SW_RES_MSK,4,2          ## @BMA150_SW_RES_MSK
	.comm	_BMA150_SW_RES_REG,4,2          ## @BMA150_SW_RES_REG
	.no_dead_strip	_bma150_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma150_soft_reset
_bma150_soft_reset:                     ; @bma150_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _BMA150_SW_RES_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMA150_SW_RES_POS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _BMA150_SW_RES_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMA150_SW_RES_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _BMA150_SW_RES_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMA150_SW_RES_REG@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w1, #1
	bl	_bma150_set_reg_bits
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #2000
	mov	w1, #2100
	bl	_usleep_range
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BMA150_SW_RES_POS,4,2          ; @BMA150_SW_RES_POS
	.comm	_BMA150_SW_RES_MSK,4,2          ; @BMA150_SW_RES_MSK
	.comm	_BMA150_SW_RES_REG,4,2          ; @BMA150_SW_RES_REG
	.no_dead_strip	_bma150_soft_reset
.subsections_via_symbols
