	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m5mols_busy_wait               ## -- Begin function m5mols_busy_wait
	.p2align	4, 0x90
_m5mols_busy_wait:                      ## @m5mols_busy_wait
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	testl	%r8d, %r8d
	jns	LBB0_2
## %bb.1:
	movq	_M5MOLS_BUSY_WAIT_DEF_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r14
	addq	%r15, %r14
	leaq	-52(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_m5mols_read_u8
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %eax
	andl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	xorb	-48(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_M5MOLS_I2C_RDY_WAIT_FL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$100, %edi
	movl	$250, %esi
	callq	_usleep_range
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	jne	LBB0_3
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_M5MOLS_BUSY_WAIT_DEF_TIMEOUT,4,2 ## @M5MOLS_BUSY_WAIT_DEF_TIMEOUT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_M5MOLS_I2C_RDY_WAIT_FL,4,2     ## @M5MOLS_I2C_RDY_WAIT_FL
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m5mols_busy_wait               ; -- Begin function m5mols_busy_wait
	.p2align	2
_m5mols_busy_wait:                      ; @m5mols_busy_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _M5MOLS_BUSY_WAIT_DEF_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M5MOLS_BUSY_WAIT_DEF_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w4, #0
	csel	w23, w8, w4, lt
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	mov	x0, x23
	bl	_msecs_to_jiffies
	add	x24, x0, x24
Lloh6:
	adrp	x25, _M5MOLS_I2C_RDY_WAIT_FL@GOTPAGE
Lloh7:
	ldr	x25, [x25, _M5MOLS_I2C_RDY_WAIT_FL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_m5mols_read_u8
	tbnz	w0, #31, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	and	w8, w8, w19
	eor	w8, w8, w20
	tst	w8, #0xff
	b.ne	LBB0_5
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	tst	w8, w19
	b.eq	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #100
	mov	w1, #250
	bl	_usleep_range
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_1
LBB0_7:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_M5MOLS_BUSY_WAIT_DEF_TIMEOUT,4,2 ; @M5MOLS_BUSY_WAIT_DEF_TIMEOUT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_M5MOLS_I2C_RDY_WAIT_FL,4,2     ; @M5MOLS_I2C_RDY_WAIT_FL
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
