	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_handler                     ## -- Begin function io_handler
	.p2align	4, 0x90
_io_handler:                            ## @io_handler
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_handler_calls@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_activefds@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -28(%rbp)
	movq	_maxactivefd@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	incq	%rdi
	leaq	-28(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	testl	%ebx, %ebx
	jg	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_sanitize_fdset
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	(%r14), %eax
	movl	%eax, -28(%rbp)
	movq	(%r15), %rdi
	incq	%rdi
	leaq	-28(%rbp), %rsi
	leaq	-48(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_get_systime
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_input_handler_scan
	jmp	LBB0_8
LBB0_5:
	cmpl	$-1, %ebx
	jne	LBB0_8
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msyslog
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_handler_calls,4,2              ## @handler_calls
	.comm	_activefds,4,2                  ## @activefds
	.comm	_maxactivefd,8,3                ## @maxactivefd
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select() error: %m"

	.comm	_LOG_DEBUG,4,2                  ## @LOG_DEBUG
	.comm	_debug,4,2                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_io_handler                     ; -- Begin function io_handler
	.p2align	2
_io_handler:                            ; @io_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, _handler_calls@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handler_calls@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x20, _activefds@GOTPAGE
Lloh3:
	ldr	x20, [x20, _activefds@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [sp, #28]
Lloh4:
	adrp	x21, _maxactivefd@GOTPAGE
Lloh5:
	ldr	x21, [x21, _maxactivefd@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #1
	add	x1, sp, #28
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cmp	w19, #1
	b.ge	LBB0_4
	b	LBB0_5
LBB0_2:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_sanitize_fdset
	cbz	x0, LBB0_5
; %bb.3:
	str	wzr, [sp, #8]
	str	xzr, [sp, #16]
	ldr	w8, [x20]
	str	w8, [sp, #28]
	ldr	x8, [x21]
	add	x0, x8, #1
	add	x1, sp, #28
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x19, x0
	cmp	w19, #1
	b.lt	LBB0_5
LBB0_4:
	add	x0, sp, #8
	bl	_get_systime
	add	x0, sp, #8
	add	x1, sp, #28
	bl	_input_handler_scan
	b	LBB0_8
LBB0_5:
	cmn	w19, #1
	b.ne	LBB0_8
; %bb.6:
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.eq	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_handler_calls,4,2              ; @handler_calls
	.comm	_activefds,4,2                  ; @activefds
	.comm	_maxactivefd,8,3                ; @maxactivefd
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select() error: %m"

	.comm	_LOG_DEBUG,4,2                  ; @LOG_DEBUG
	.comm	_debug,4,2                      ; @debug
.subsections_via_symbols
