	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma7455_drdy
_mma7455_drdy:                          ## @mma7455_drdy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_regmap_get_device
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_MMA7455_REG_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_MMA7455_STATUS_DRDY@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movl	$20, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %eax
	testl	%eax, -36(%rbp)
	jne	LBB0_2
## %bb.6:
	movl	$20, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	(%r12), %ecx
	movl	$0, %eax
	testl	%ecx, -36(%rbp)
	jne	LBB0_9
## %bb.8:
	movl	$20, %edi
	callq	_msleep
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA7455_REG_STATUS,4,2         ## @MMA7455_REG_STATUS
	.comm	_MMA7455_STATUS_DRDY,4,2        ## @MMA7455_STATUS_DRDY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data not ready\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mma7455_drdy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma7455_drdy
_mma7455_drdy:                          ; @mma7455_drdy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	w0, [x0]
	bl	_regmap_get_device
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _MMA7455_REG_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMA7455_REG_STATUS@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x22, _MMA7455_STATUS_DRDY@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MMA7455_STATUS_DRDY@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.6:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x20]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_4
; %bb.7:
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.8:
	mov	w0, #20
	bl	_msleep
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA7455_REG_STATUS,4,2         ; @MMA7455_REG_STATUS
	.comm	_MMA7455_STATUS_DRDY,4,2        ; @MMA7455_STATUS_DRDY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data not ready\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mma7455_drdy
.subsections_via_symbols
