	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stilloob                       ## -- Begin function stilloob
	.p2align	4, 0x90
_stilloob:                              ## @stilloob
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_ourpty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fatal
LBB0_2:
	leal	1(%r14), %r15d
	leaq	-44(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	leaq	_stilloob.timeout(%rip), %r8
	callq	_select
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rcx
	cmpq	%rcx, (%r13)
	je	LBB0_3
LBB0_5:
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	movq	_ourpty@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fatalperror
LBB0_7:
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edi
	callq	_FD_ISSET
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_stilloob.timeout,4,2 ## @stilloob.timeout
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
	.comm	_ourpty,4,2                     ## @ourpty
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fd too large"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"select"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stilloob                       ; -- Begin function stilloob
	.p2align	2
_stilloob:                              ; @stilloob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _FD_SETSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_SETSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ourpty@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ourpty@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
	add	w20, w19, #1
Lloh8:
	adrp	x22, _errno@GOTPAGE
Lloh9:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh10:
	adrp	x23, _EINTR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
Lloh12:
	adrp	x21, _stilloob.timeout@PAGE
Lloh13:
	add	x21, x21, _stilloob.timeout@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_FD_ZERO
	add	x1, sp, #12
	mov	x0, x19
	bl	_FD_SET
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	x4, x21
	bl	_select
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_3
; %bb.4:
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _ourpty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ourpty@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fatalperror
LBB0_6:
	add	x1, sp, #12
	mov	x0, x19
	bl	_FD_ISSET
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_stilloob.timeout,4,2 ; @stilloob.timeout
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
	.comm	_ourpty,4,2                     ; @ourpty
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fd too large"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"select"

.subsections_via_symbols
