	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma220_init
_bma220_init:                           ## @bma220_init
	.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	%rdi, %rbx
	movq	_BMA220_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bma220_read_reg
	movq	_BMA220_CHIP_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_BMA220_REG_SUSPEND@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bma220_read_reg
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_BMA220_SUSPEND_WAKE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$0, %eax
	jne	LBB0_4
## %bb.5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bma220_read_reg                ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMA220_REG_ID,4,2              ## @BMA220_REG_ID
	.comm	_BMA220_CHIP_ID,4,2             ## @BMA220_CHIP_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BMA220_REG_SUSPEND,4,2         ## @BMA220_REG_SUSPEND
	.comm	_BMA220_SUSPEND_WAKE,4,2        ## @BMA220_SUSPEND_WAKE
	.no_dead_strip	_bma220_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma220_init
_bma220_init:                           ; @bma220_init
	.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	x19, x0
Lloh0:
	adrp	x8, _BMA220_REG_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMA220_REG_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bma220_read_reg
Lloh3:
	adrp	x8, _BMA220_CHIP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMA220_CHIP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x20, _BMA220_REG_SUSPEND@GOTPAGE
Lloh7:
	ldr	x20, [x20, _BMA220_REG_SUSPEND@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_bma220_read_reg
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _BMA220_SUSPEND_WAKE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMA220_SUSPEND_WAKE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bma220_read_reg
LBB0_4:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BMA220_REG_ID,4,2              ; @BMA220_REG_ID
	.comm	_BMA220_CHIP_ID,4,2             ; @BMA220_CHIP_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BMA220_REG_SUSPEND,4,2         ; @BMA220_REG_SUSPEND
	.comm	_BMA220_SUSPEND_WAKE,4,2        ; @BMA220_SUSPEND_WAKE
	.no_dead_strip	_bma220_init
.subsections_via_symbols
