	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms_delay
_ms_delay:                              ## @ms_delay
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	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
	movl	%edi, %ebx
	leaq	_ms_delay.mutex(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_MS_TICKS@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	leal	-1(%rbx), %eax
	leal	254(%rbx), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movq	_ciaa@GOTPCREL(%rip), %rax
	movl	%ecx, %edx
	andl	$-256, %edx
	negl	%edx
	addl	%ebx, %edx
	decl	%edx
	movl	%edx, (%rax)
	sarl	$8, %ecx
	movl	%ecx, 4(%rax)
	movl	$25, 8(%rax)
	movq	_ms_wait_completion@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ms_delay.mutex,4,2 ## @ms_delay.mutex
	.comm	_MS_TICKS,4,2                   ## @MS_TICKS
	.comm	_ciaa,12,2                      ## @ciaa
	.comm	_ms_wait_completion,4,2         ## @ms_wait_completion
	.no_dead_strip	_ms_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms_delay
_ms_delay:                              ; @ms_delay
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	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	x19, x0
Lloh0:
	adrp	x20, _ms_delay.mutex@PAGE
Lloh1:
	add	x20, x20, _ms_delay.mutex@PAGEOFF
	mov	x0, x20
	bl	_mutex_lock
Lloh2:
	adrp	x8, _MS_TICKS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MS_TICKS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w8, w8, w19
	sub	w8, w8, #1
	add	w9, w8, #255
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w10, w9, #8
	and	w9, w9, #0xffffff00
	sub	w8, w8, w9
Lloh5:
	adrp	x9, _ciaa@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ciaa@GOTPAGEOFF]
	stp	w8, w10, [x9]
	mov	w8, #25
	str	w8, [x9, #8]
Lloh7:
	adrp	x0, _ms_wait_completion@GOTPAGE
Lloh8:
	ldr	x0, [x0, _ms_wait_completion@GOTPAGEOFF]
	bl	_wait_for_completion
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ms_delay.mutex,4,2 ; @ms_delay.mutex
	.comm	_MS_TICKS,4,2                   ; @MS_TICKS
	.comm	_ciaa,12,2                      ; @ciaa
	.comm	_ms_wait_completion,4,2         ; @ms_wait_completion
	.no_dead_strip	_ms_delay
.subsections_via_symbols
