	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DELAY                          ## -- Begin function DELAY
	.p2align	4, 0x90
_DELAY:                                 ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_aml8726_timer_sc@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.6:
	xorl	%eax, %eax
	callq	_TSENTER
	movq	(%r14), %rdi
	movl	$999999, %eax                   ## imm = 0xF423F
	addl	(%rdi), %eax
	cltq
	imulq	$1125899907, %rax, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$50, %rbx
	addl	%eax, %ebx
	imull	%r15d, %ebx
	incl	%ebx
	callq	_aml8726_get_timecount
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_aml8726_get_timecount
	movl	%eax, %ecx
	subl	%r15d, %ecx
	movl	%eax, %r15d
	subl	%ecx, %ebx
	jg	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TSEXIT                         ## TAILCALL
LBB0_1:
	testl	%r15d, %r15d
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	$201, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_cpufunc_nullop
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	movl	%eax, %r15d
	jg	LBB0_2
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aml8726_timer_sc,8,3           ## @aml8726_timer_sc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DELAY                          ; -- Begin function DELAY
	.p2align	2
_DELAY:                                 ; @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, x0
Lloh0:
	adrp	x20, _aml8726_timer_sc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _aml8726_timer_sc@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	bl	_TSENTER
	ldr	x0, [x20]
	ldr	w8, [x0]
	mov	w9, #16959
	movk	w9, #15, lsl #16
	add	w8, w8, w9
	add	w9, w9, #1
	sdiv	w8, w8, w9
	orr	w9, wzr, #0x1
	madd	w21, w8, w19, w9
	bl	_aml8726_get_timecount
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_aml8726_get_timecount
	sub	w8, w0, w19
	subs	w21, w21, w8
	mov	x19, x0
	b.gt	LBB0_2
; %bb.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
	b	_TSEXIT
LBB0_4:
	cmp	w19, #1
	b.lt	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	w20, #201
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_cpufunc_nullop
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	w19, w19, #1
	b.gt	LBB0_5
LBB0_8:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aml8726_timer_sc,8,3           ; @aml8726_timer_sc
.subsections_via_symbols
