	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_tmr_delay
_arm_tmr_delay:                         ## @arm_tmr_delay
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_arm_tmr_timecount@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	sarq	$50, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %r15d
	incl	%r15d
	movl	$-2147483648, %eax              ## imm = 0x80000000
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	imull	%edi, %r15d
	cmpl	%edi, %eax
	cmovbel	%ecx, %r15d
	movq	%rsi, %r14
	movq	_GBL_TIMER_COUNT_LOW@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_tmr_gbl_read_4
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_tmr_gbl_read_4
	subl	%eax, %ebx
	addl	%ebx, %r15d
	movq	%rax, %rbx
	testl	%r15d, %r15d
	jg	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_arm_tmr_timecount,4,2          ## @arm_tmr_timecount
	.comm	_GBL_TIMER_COUNT_LOW,4,2        ## @GBL_TIMER_COUNT_LOW
	.no_dead_strip	_arm_tmr_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_tmr_delay
_arm_tmr_delay:                         ; @arm_tmr_delay
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
Lloh0:
	adrp	x8, _arm_tmr_timecount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _arm_tmr_timecount@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	add	w8, w8, #1
	mov	w9, #-2147483648
	udiv	w9, w9, w8
	sub	w10, w9, #1
	mul	w8, w8, w0
	cmp	w9, w0
	csel	w21, w8, w10, hi
Lloh3:
	adrp	x22, _GBL_TIMER_COUNT_LOW@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GBL_TIMER_COUNT_LOW@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tmr_gbl_read_4
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_tmr_gbl_read_4
	sub	w8, w20, w0
	add	w21, w21, w8
	mov	x20, x0
	cmp	w21, #0
	b.gt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_arm_tmr_timecount,4,2          ; @arm_tmr_timecount
	.comm	_GBL_TIMER_COUNT_LOW,4,2        ; @GBL_TIMER_COUNT_LOW
	.no_dead_strip	_arm_tmr_delay
.subsections_via_symbols
