	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ignore_sigio_fd                ## -- Begin function ignore_sigio_fd
	.p2align	4, 0x90
_ignore_sigio_fd:                       ## @ignore_sigio_fd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_write_sigio_pid@GOTPCREL(%rip), %rax
	cmpl	$-1, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_sigio_lock
	movq	_current_poll@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$0, %eax
	testl	%esi, %esi
	jle	LBB0_7
## %bb.3:
	movq	8(%r12), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rcx,%rax,4)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_4
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_7:
	cmpl	%esi, %eax
	je	LBB0_15
## %bb.8:
	decl	%esi
	movq	_next_poll@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_need_poll
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	movq	8(%r12), %rcx
	movq	8(%r15), %r8
	xorl	%esi, %esi
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rsi
	movslq	%eax, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edx
	cmpl	%ebx, %edx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%edi, %rax
	incl	%edi
	movl	%edx, (%r8,%rax,4)
	movl	(%r12), %eax
	jmp	LBB0_13
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_14:
	decl	%eax
	movl	%eax, (%r15)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_update_thread
LBB0_15:
	xorl	%eax, %eax
	callq	_sigio_unlock
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_sigio_pid,4,2            ## @write_sigio_pid
	.comm	_EIO,4,2                        ## @EIO
	.comm	_current_poll,16,3              ## @current_poll
	.comm	_next_poll,16,3                 ## @next_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ignore_sigio_fd                ; -- Begin function ignore_sigio_fd
	.p2align	2
_ignore_sigio_fd:                       ; @ignore_sigio_fd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _write_sigio_pid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_sigio_pid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_sigio_lock
Lloh3:
	adrp	x22, _current_poll@GOTPAGE
Lloh4:
	ldr	x22, [x22, _current_poll@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x9, #0
	ldr	x10, [x22, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w19
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_15
LBB0_5:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_6:
	mov	w9, #0
LBB0_7:
	cmp	w9, w8
	b.eq	LBB0_15
; %bb.8:
	sub	w1, w8, #1
Lloh8:
	adrp	x20, _next_poll@GOTPAGE
Lloh9:
	ldr	x20, [x20, _next_poll@GOTPAGEOFF]
	mov	x0, x20
	bl	_need_poll
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x9, #0
	mov	w12, #0
	ldr	x10, [x22, #8]
	ldr	x11, [x20, #8]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	cmp	x9, w8, sxtw
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x9, lsl #2]
	cmp	w13, w19
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	w13, [x11, w12, sxtw #2]
	add	w12, w12, #1
	ldr	w8, [x22]
	b	LBB0_11
LBB0_14:
	sub	w8, w8, #1
	str	w8, [x20]
	bl	_update_thread
LBB0_15:
	mov	w21, #0
LBB0_16:
	bl	_sigio_unlock
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_write_sigio_pid,4,2            ; @write_sigio_pid
	.comm	_EIO,4,2                        ; @EIO
	.comm	_current_poll,16,3              ; @current_poll
	.comm	_next_poll,16,3                 ; @next_poll
.subsections_via_symbols
