	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_inputs
_check_inputs:                          ## @check_inputs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_FD_ZERO
	movl	$-1, %r15d
	movq	_FALSE@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_fileno
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_FD_SET
	cmpl	%r13d, %r15d
	cmovlel	%r13d, %r15d
	jmp	LBB0_6
LBB0_7:
	movq	$0, -56(%rbp)
	movq	_WTIMEOUT_VAL@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	movl	%eax, -64(%rbp)
	incl	%r15d
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %r8
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	movl	$-1, %r15d
	testl	%eax, %eax
	jle	LBB0_15
## %bb.8:
	movq	_dialog_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.9:
	movl	$-1, %r15d
	leaq	-44(%rbp), %r14
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_fileno
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r12d
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %eax
	movl	%eax, 8(%rbx)
	movl	%r12d, %r15d
	jmp	LBB0_14
LBB0_1:
	movl	$-1, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_state,8,3               ## @dialog_state
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WTIMEOUT_VAL,4,2               ## @WTIMEOUT_VAL
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_check_inputs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_inputs
_check_inputs:                          ; @check_inputs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x20, _dialog_state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dialog_state@GOTPAGEOFF]
	ldr	x21, [x20]
	cbz	x21, LBB0_14
; %bb.1:
	add	x0, sp, #28
	bl	_FD_ZERO
	mov	w22, #-1
Lloh2:
	adrp	x23, _FALSE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	str	w8, [x21, #8]
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_fileno
	tbnz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	add	x1, sp, #28
	bl	_FD_SET
	cmp	w22, w19
	csel	w22, w22, w19, gt
	b	LBB0_2
LBB0_6:
Lloh4:
	adrp	x8, _WTIMEOUT_VAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WTIMEOUT_VAL@GOTPAGEOFF]
	str	xzr, [sp, #16]
Lloh6:
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [sp, #8]
	add	w0, w22, #1
	add	x1, sp, #28
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	w19, #-1
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.7:
	ldr	x21, [x20]
	cbz	x21, LBB0_15
; %bb.8:
	mov	w19, #-1
Lloh7:
	adrp	x22, _TRUE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_fileno
	tbnz	w0, #31, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, x0
	add	x1, sp, #28
	bl	_FD_ISSET
	cbz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x22]
	str	w8, [x21, #8]
	mov	x19, x20
	b	LBB0_9
LBB0_14:
	mov	w19, #-1
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_state,8,3               ; @dialog_state
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WTIMEOUT_VAL,4,2               ; @WTIMEOUT_VAL
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_check_inputs
.subsections_via_symbols
