	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movq	8(%rbx), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_34
## %bb.6:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_7:
	movq	$0, -104(%rbp)
	movl	$1, -112(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_pipe
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_9:
	leaq	-116(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	-56(%rbp), %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	-56(%rbp), %edi
	incl	%edi
	leaq	-112(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_12:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	movl	-56(%rbp), %edi
	leaq	-116(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_31
## %bb.14:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_30
LBB0_15:
	movq	$0, -104(%rbp)
	movl	$1, -112(%rbp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	leaq	-112(%rbp), %r8
	movl	$100, %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_select
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_18:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_19:
	leaq	-112(%rbp), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testl	%eax, %eax
	je	LBB0_31
## %bb.20:
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.21:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_err
LBB0_22:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_30
LBB0_23:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_25
## %bb.24:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_err
LBB0_25:
	movl	%ebx, %edi
	callq	_close
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movl	%ebx, -88(%rbp)
	movq	%rax, -72(%rbp)
	movq	_INFTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rdi
	movl	$2, %esi
	callq	_poll
	cmpl	$1, %eax
	je	LBB0_27
## %bb.26:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str.12(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_27:
	movq	-80(%rbp), %rax
	movq	_POLLNVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.28:
	cmpq	$0, -104(%rbp)
	je	LBB0_31
LBB0_29:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
LBB0_30:
	xorl	%eax, %eax
	callq	_errx
LBB0_31:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_45
## %bb.33:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	xorl	%edi, %edi
	callq	_closefrom
	movq	_O_RDWR@GOTPCREL(%rip), %r13
	leaq	L_.str.15(%rip), %r15
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %r12
	leaq	L_.str.16(%rip), %r14
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_36 Depth=1
	cmpl	$7, %ebx
	jge	LBB0_38
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_35
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_err
	jmp	LBB0_35
LBB0_38:
	movl	(%r13), %esi
	leaq	L_.str.15(%rip), %rdi
	callq	_open
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpl	$-1, %eax
	jne	LBB0_40
## %bb.39:
	movq	_ENFILE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_41
LBB0_40:
	movl	(%r12), %edi
	leaq	L_.str.17(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_41:
	movq	_F_MAXFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_fcntl
	cmpl	$7, %eax
	je	LBB0_43
## %bb.42:
	movl	(%r12), %edi
	leaq	L_.str.18(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_43:
	movl	(%r13), %esi
	leaq	L_.str.10(%rip), %rdi
	callq	_open
	cmpl	$8, %eax
	je	LBB0_31
## %bb.44:
	movl	(%r12), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.19(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_31
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need testname as param"

L_.str.1:                               ## @.str.1
	.asciz	"select_timeout"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"pipe"

L_.str.3:                               ## @.str.3
	.asciz	"select"

L_.str.4:                               ## @.str.4
	.asciz	"select succesful"

L_.str.5:                               ## @.str.5
	.asciz	"stdin fileno is still set"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
L_.str.6:                               ## @.str.6
	.asciz	"select_allunset"

L_.str.7:                               ## @.str.7
	.asciz	"select2"

L_.str.8:                               ## @.str.8
	.asciz	"select2 succesful"

L_.str.9:                               ## @.str.9
	.asciz	"invafd"

L_.str.10:                              ## @.str.10
	.asciz	"/rump/dev/null"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.11:                              ## @.str.11
	.asciz	"open"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_POLLIN,8,3                     ## @POLLIN
	.comm	_INFTIM,4,2                     ## @INFTIM
L_.str.12:                              ## @.str.12
	.asciz	"poll unexpected rv %d (%d)"

	.comm	_errno,8,3                      ## @errno
	.comm	_POLLNVAL,8,3                   ## @POLLNVAL
L_.str.13:                              ## @.str.13
	.asciz	"poll unexpected revents"

L_.str.14:                              ## @.str.14
	.asciz	"fdoff8"

L_.str.15:                              ## @.str.15
	.asciz	"/dev/null"

L_.str.16:                              ## @.str.16
	.asciz	"open1"

	.comm	_ENFILE,8,3                     ## @ENFILE
L_.str.17:                              ## @.str.17
	.asciz	"unexpected fd8 %d %d"

	.comm	_F_MAXFD,4,2                    ## @F_MAXFD
L_.str.18:                              ## @.str.18
	.asciz	"fd leak?"

L_.str.19:                              ## @.str.19
	.asciz	"rump open %d %d"

	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str.6@PAGE
Lloh8:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.4:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.9@PAGE
Lloh10:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.5:
	ldr	x0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.14@PAGE
Lloh12:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_30
; %bb.6:
Lloh13:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
	b	LBB0_42
LBB0_7:
	str	xzr, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #32]
	sub	x0, x29, #64
	bl	_pipe
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_9:
	add	x0, sp, #28
	bl	_FD_ZERO
	ldur	w0, [x29, #-64]
	add	x1, sp, #28
	bl	_FD_SET
	ldur	w8, [x29, #-64]
	add	w0, w8, #1
	add	x1, sp, #28
	add	x4, sp, #32
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cbz	w0, LBB0_13
; %bb.10:
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_12:
Lloh25:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
LBB0_13:
	ldur	w0, [x29, #-64]
	add	x1, sp, #28
	bl	_FD_ISSET
	cbz	x0, LBB0_41
; %bb.14:
Lloh30:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_40
LBB0_15:
	str	xzr, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #32]
	sub	x0, x29, #64
	bl	_FD_ZERO
	sub	x1, x29, #64
	sub	x2, x29, #64
	sub	x3, x29, #64
	add	x4, sp, #32
	mov	w0, #100
	bl	_select
	cbz	w0, LBB0_19
; %bb.16:
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh35:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_18:
Lloh40:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
LBB0_19:
	add	x4, sp, #32
	mov	w0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cbz	w0, LBB0_41
; %bb.20:
	cmn	w0, #1
	b.ne	LBB0_22
; %bb.21:
Lloh45:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.7@PAGE
Lloh49:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_err
LBB0_22:
Lloh50:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x1, l_.str.8@PAGE
Lloh54:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_40
LBB0_23:
Lloh55:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x0, l_.str.10@PAGE
Lloh59:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_25
; %bb.24:
Lloh60:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
Lloh63:
	adrp	x1, l_.str.11@PAGE
Lloh64:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_err
LBB0_25:
	mov	x0, x19
	bl	_close
Lloh65:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh66:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh68:
	adrp	x8, _POLLIN@GOTPAGE
Lloh69:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	str	x8, [sp, #48]
	str	w19, [sp, #56]
	str	x8, [sp, #72]
Lloh71:
	adrp	x8, _INFTIM@GOTPAGE
Lloh72:
	ldr	x8, [x8, _INFTIM@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w1, #2
	bl	_poll
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.eq	LBB0_27
; %bb.26:
Lloh74:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
Lloh77:
	adrp	x9, _errno@GOTPAGE
Lloh78:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh79:
	ldr	x9, [x9]
	stp	x0, x9, [sp]
Lloh80:
	adrp	x1, l_.str.12@PAGE
Lloh81:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x8
	bl	_errx
LBB0_27:
	ldr	x8, [sp, #64]
Lloh82:
	adrp	x9, _POLLNVAL@GOTPAGE
Lloh83:
	ldr	x9, [x9, _POLLNVAL@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.28:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_41
LBB0_29:
Lloh85:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh86:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
Lloh88:
	adrp	x1, l_.str.13@PAGE
Lloh89:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_40
LBB0_30:
	bl	_closefrom
Lloh90:
	adrp	x23, _O_RDWR@GOTPAGE
Lloh91:
	ldr	x23, [x23, _O_RDWR@GOTPAGEOFF]
Lloh92:
	adrp	x19, l_.str.15@PAGE
Lloh93:
	add	x19, x19, l_.str.15@PAGEOFF
Lloh94:
	adrp	x22, _EXIT_FAILURE@GOTPAGE
Lloh95:
	ldr	x22, [x22, _EXIT_FAILURE@GOTPAGEOFF]
Lloh96:
	adrp	x20, l_.str.16@PAGE
Lloh97:
	add	x20, x20, l_.str.16@PAGEOFF
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	cmp	w21, #7
	b.ge	LBB0_34
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_err
	b	LBB0_31
LBB0_34:
	ldr	w1, [x23]
Lloh98:
	adrp	x0, l_.str.15@PAGE
Lloh99:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_open
                                        ; kill: def $w0 killed $w0 def $x0
Lloh100:
	adrp	x19, _errno@GOTPAGE
Lloh101:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh102:
	adrp	x8, _ENFILE@GOTPAGE
Lloh103:
	ldr	x8, [x8, _ENFILE@GOTPAGEOFF]
Lloh104:
	ldr	x8, [x8]
	cmn	w0, #1
	ccmp	x9, x8, #0, eq
	b.eq	LBB0_36
; %bb.35:
	ldr	w8, [x22]
	stp	x0, x9, [sp]
Lloh105:
	adrp	x1, l_.str.17@PAGE
Lloh106:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x8
	bl	_errx
LBB0_36:
Lloh107:
	adrp	x8, _F_MAXFD@GOTPAGE
Lloh108:
	ldr	x8, [x8, _F_MAXFD@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_fcntl
	cmp	w0, #7
	b.eq	LBB0_38
; %bb.37:
	ldr	w0, [x22]
Lloh110:
	adrp	x1, l_.str.18@PAGE
Lloh111:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_errx
LBB0_38:
	ldr	w1, [x23]
Lloh112:
	adrp	x0, l_.str.10@PAGE
Lloh113:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_open
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #8
	b.eq	LBB0_41
; %bb.39:
	ldr	w8, [x22]
	ldr	x9, [x19]
	stp	x0, x9, [sp]
Lloh114:
	adrp	x1, l_.str.19@PAGE
Lloh115:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x8
LBB0_40:
	bl	_errx
LBB0_41:
Lloh116:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh117:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
LBB0_42:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh118:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh119:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh120:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need testname as param"

l_.str.1:                               ; @.str.1
	.asciz	"select_timeout"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"pipe"

l_.str.3:                               ; @.str.3
	.asciz	"select"

l_.str.4:                               ; @.str.4
	.asciz	"select succesful"

l_.str.5:                               ; @.str.5
	.asciz	"stdin fileno is still set"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
l_.str.6:                               ; @.str.6
	.asciz	"select_allunset"

l_.str.7:                               ; @.str.7
	.asciz	"select2"

l_.str.8:                               ; @.str.8
	.asciz	"select2 succesful"

l_.str.9:                               ; @.str.9
	.asciz	"invafd"

l_.str.10:                              ; @.str.10
	.asciz	"/rump/dev/null"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.11:                              ; @.str.11
	.asciz	"open"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_POLLIN,8,3                     ; @POLLIN
	.comm	_INFTIM,4,2                     ; @INFTIM
l_.str.12:                              ; @.str.12
	.asciz	"poll unexpected rv %d (%d)"

	.comm	_errno,8,3                      ; @errno
	.comm	_POLLNVAL,8,3                   ; @POLLNVAL
l_.str.13:                              ; @.str.13
	.asciz	"poll unexpected revents"

l_.str.14:                              ; @.str.14
	.asciz	"fdoff8"

l_.str.15:                              ; @.str.15
	.asciz	"/dev/null"

l_.str.16:                              ; @.str.16
	.asciz	"open1"

	.comm	_ENFILE,8,3                     ; @ENFILE
l_.str.17:                              ; @.str.17
	.asciz	"unexpected fd8 %d %d"

	.comm	_F_MAXFD,4,2                    ; @F_MAXFD
l_.str.18:                              ; @.str.18
	.asciz	"fd leak?"

l_.str.19:                              ; @.str.19
	.asciz	"rump open %d %d"

	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
.subsections_via_symbols
