	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___sleep                        ## -- Begin function __sleep
	.p2align	4, 0x90
___sleep:                               ## @__sleep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%ebx, %edi
	jae	LBB0_2
## %bb.1:
	subl	%edi, %ebx
	callq	___sleep
	addl	%ebx, %eax
	jmp	LBB0_5
LBB0_2:
	movl	%ebx, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	___libc_interposing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INTERPOS_nanosleep@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	-40(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	*(%rax,%rcx,8)
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_5
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	movl	%ebx, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movl	-24(%rbp), %eax
	cmpq	$1, -16(%rbp)
	sbbl	$-1, %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	___libc_interposing,8,3         ## @__libc_interposing
	.comm	_INTERPOS_nanosleep,8,3         ## @INTERPOS_nanosleep
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___sleep                        ; -- Begin function __sleep
	.p2align	2
___sleep:                               ; @__sleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cmp	w0, w19
	b.hs	LBB0_2
; %bb.1:
	sub	w19, w19, w0
	bl	___sleep
	add	w19, w19, w0
	b	LBB0_6
LBB0_2:
	str	w19, [sp, #16]
	str	xzr, [sp, #24]
Lloh3:
	adrp	x8, ___libc_interposing@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___libc_interposing@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _INTERPOS_nanosleep@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTERPOS_nanosleep@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, sp, #16
	mov	x1, sp
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	w19, #0
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _EINTR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [sp]
	ldr	x9, [sp, #8]
	cmp	x9, #0
	cinc	w19, w8, ne
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	___libc_interposing,8,3         ; @__libc_interposing
	.comm	_INTERPOS_nanosleep,8,3         ; @INTERPOS_nanosleep
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
