	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___udelay                       ## -- Begin function __udelay
	.p2align	4, 0x90
___udelay:                              ## @__udelay
	.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
	cmpq	$100001, %rdi                   ## imm = 0x186A1
	jb	LBB0_4
## %bb.1:
	shrq	$3, %rdi
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	movq	%rdi, %rax
	mulq	%rcx
	shrq	$4, %rdx
	movq	_CONFIG_SYS_HZ@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %r14          ## imm = 0x10624DD3
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$38, %r14
	addl	%eax, %r14d
	xorl	%edi, %edi
	callq	_get_timer
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_get_timer
	cmpl	%r14d, %eax
	jl	LBB0_2
	jmp	LBB0_3
LBB0_4:
	movq	_TIMER_CLOCK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	cltq
	imulq	%rdi, %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	shrq	$4, %rdx
	testl	%edx, %edx
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_5
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_SYS_HZ,4,2              ## @CONFIG_SYS_HZ
	.comm	_TIMER_CLOCK,4,2                ## @TIMER_CLOCK
	.comm	_READ_TIMER_HW,4,2              ## @READ_TIMER_HW
	.comm	_TIMER_LOAD_VAL,4,2             ## @TIMER_LOAD_VAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___udelay                       ; -- Begin function __udelay
	.p2align	2
___udelay:                              ; @__udelay
	.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	w8, #34465
	movk	w8, #1, lsl #16
	cmp	x0, x8
	b.lo	LBB0_3
; %bb.1:
	lsr	x8, x0, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #4
Lloh0:
	adrp	x9, _CONFIG_SYS_HZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CONFIG_SYS_HZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w20, w8, w9
	mov	w0, #0
	bl	_get_timer
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_timer
	cmp	w0, w20
	b.lt	LBB0_2
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _TIMER_CLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIMER_CLOCK@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x8, w8
	mul	x8, x8, x0
	lsr	x8, x8, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #4
	cmp	w8, #1
	b.lt	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_SYS_HZ,4,2              ; @CONFIG_SYS_HZ
	.comm	_TIMER_CLOCK,4,2                ; @TIMER_CLOCK
	.comm	_READ_TIMER_HW,4,2              ; @READ_TIMER_HW
	.comm	_TIMER_LOAD_VAL,4,2             ; @TIMER_LOAD_VAL
.subsections_via_symbols
