	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma150_initialize
_bma150_initialize:                     ## @bma150_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_bma150_soft_reset
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	48(%r14), %esi
	movq	%rbx, %rdi
	callq	_bma150_set_bandwidth
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movl	44(%r14), %esi
	movq	%rbx, %rdi
	callq	_bma150_set_range
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movl	40(%r14), %esi
	movl	32(%r14), %ecx
	movl	36(%r14), %edx
	movq	%rbx, %rdi
	callq	_bma150_set_any_motion_interrupt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	28(%r14), %esi
	movl	24(%r14), %edx
	movl	16(%r14), %r8d
	movl	20(%r14), %ecx
	movq	%rbx, %rdi
	callq	_bma150_set_high_g_interrupt
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	12(%r14), %esi
	movl	8(%r14), %edx
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	%rbx, %rdi
	callq	_bma150_set_low_g_interrupt
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movq	_BMA150_MODE_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bma150_set_mode                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BMA150_MODE_SLEEP,4,2          ## @BMA150_MODE_SLEEP
	.no_dead_strip	_bma150_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma150_initialize
_bma150_initialize:                     ; @bma150_initialize
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_bma150_soft_reset
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x20, #48]
	mov	x0, x19
	bl	_bma150_set_bandwidth
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x20, #44]
	mov	x0, x19
	bl	_bma150_set_range
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	ldp	w2, w1, [x20, #36]
	ldr	w3, [x20, #32]
	mov	x0, x19
	bl	_bma150_set_any_motion_interrupt
	cbnz	w0, LBB0_3
; %bb.6:
	ldp	w2, w1, [x20, #24]
	ldp	w4, w3, [x20, #16]
	mov	x0, x19
	bl	_bma150_set_high_g_interrupt
	cbnz	w0, LBB0_3
; %bb.7:
	ldp	w2, w1, [x20, #8]
	ldp	w4, w3, [x20]
	mov	x0, x19
	bl	_bma150_set_low_g_interrupt
	cbnz	w0, LBB0_3
LBB0_8:
Lloh0:
	adrp	x8, _BMA150_MODE_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMA150_MODE_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bma150_set_mode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BMA150_MODE_SLEEP,4,2          ; @BMA150_MODE_SLEEP
	.no_dead_strip	_bma150_initialize
.subsections_via_symbols
