	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_sigio
_handle_sigio:                          ## @handle_sigio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SIGIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	_handle_sigio(%rip), %rsi
	callq	_signal
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	_target_activity_fd@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	(%r14), %rdi
	incq	%rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	(%r14), %rdi
	leaq	-20(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_target_activity_function
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movq	_SIGINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kill
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGIO,4,2                      ## @SIGIO
	.comm	_target_activity_fd,8,3         ## @target_activity_fd
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_SIGINT,4,2                     ## @SIGINT
	.no_dead_strip	_handle_sigio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_sigio
_handle_sigio:                          ; @handle_sigio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SIGIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _handle_sigio@PAGE
Lloh4:
	add	x1, x1, _handle_sigio@PAGEOFF
	bl	_signal
	add	x0, sp, #12
	bl	_FD_ZERO
Lloh5:
	adrp	x19, _target_activity_fd@GOTPAGE
Lloh6:
	ldr	x19, [x19, _target_activity_fd@GOTPAGEOFF]
	ldr	x0, [x19]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x19]
	add	x0, x8, #1
	add	x1, sp, #12
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [x19]
	add	x1, sp, #12
	bl	_FD_ISSET
	cbz	x0, LBB0_4
; %bb.2:
	bl	_target_activity_function
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_PIDGET
Lloh10:
	adrp	x8, _SIGINT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_kill
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGIO,4,2                      ; @SIGIO
	.comm	_target_activity_fd,8,3         ; @target_activity_fd
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_SIGINT,4,2                     ; @SIGINT
	.no_dead_strip	_handle_sigio
.subsections_via_symbols
