	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_poll                      ## -- Begin function scif_poll
	.p2align	4, 0x90
_scif_poll:                             ## @scif_poll
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	sete	%r14b
	js	LBB0_1
## %bb.2:
	movq	%rdx, %rdi
	callq	_msecs_to_jiffies
	jmp	LBB0_3
LBB0_1:
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-80(%rbp), %rdi
	callq	_poll_initwait
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shlq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_EPOLLERR@GOTPCREL(%rip), %r15
	movq	_EPOLLHUP@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movzbl	%r14b, %r14d
	andl	$1, %r14d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%ecx, 4(%rbx,%r14)
	addq	$16, %r14
	cmpq	%r14, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %eax
	orl	(%rbx,%r14), %eax
	orl	(%r12), %eax
	movl	%eax, -72(%rbp)
	movq	8(%rbx,%r14), %rdx
	movl	(%rdx), %edi
	leaq	-72(%rbp), %rsi
	callq	___scif_pollfd
	movl	(%r15), %ecx
	orl	(%rbx,%r14), %ecx
	orl	(%r12), %ecx
	andl	%eax, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	%r13d
	movq	$0, -64(%rbp)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, -64(%rbp)
	testl	%r13d, %r13d
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, -64(%rbp)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-80(%rbp), %r13d
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	movq	_EINTR@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	orl	%r13d, %r14d
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_schedule_timeout_interruptible
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_4
LBB0_14:
	leaq	-80(%rbp), %rdi
	callq	_poll_freewait
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ## @MAX_SCHEDULE_TIMEOUT
	.comm	_EPOLLERR,4,2                   ## @EPOLLERR
	.comm	_EPOLLHUP,4,2                   ## @EPOLLHUP
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_poll                      ; -- Begin function scif_poll
	.p2align	2
_scif_poll:                             ; @scif_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	str	x0, [sp]                        ; 8-byte Folded Spill
	cmp	x2, #0
	cset	w24, eq
	tbnz	x2, #63, LBB0_2
; %bb.1:
	mov	x0, x2
	bl	_msecs_to_jiffies
	mov	x21, x0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
LBB0_3:
	add	x20, sp, #8
	add	x0, sp, #8
	bl	_poll_initwait
	add	x22, x20, #8
Lloh3:
	adrp	x27, _EPOLLERR@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EPOLLERR@GOTPAGEOFF]
	mov	w25, w19
Lloh5:
	adrp	x26, _EPOLLHUP@GOTPAGE
Lloh6:
	ldr	x26, [x26, _EPOLLHUP@GOTPAGEOFF]
	cbz	w19, LBB0_9
LBB0_4:
	mov	w23, #0
	mov	x28, x25
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x20, #4]
	add	x20, x20, #16
	subs	x28, x28, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	str	w8, [sp, #16]
	ldr	x2, [x20, #8]
	ldr	w0, [x2]
	mov	x1, x22
	bl	___scif_pollfd
	ldr	w8, [x20]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	ands	w8, w8, w0
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	str	xzr, [sp, #24]
	b	LBB0_5
LBB0_8:
	str	xzr, [sp, #24]
	cbnz	w23, LBB0_12
	b	LBB0_10
LBB0_9:
	str	xzr, [sp, #24]
LBB0_10:
	ldr	w23, [sp, #8]
Lloh7:
	adrp	x8, _current@GOTPAGE
Lloh8:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_12
; %bb.11:
Lloh10:
	adrp	x8, _EINTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	and	w8, w24, #0x1
	orr	w8, w23, w8
	cbnz	w8, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_schedule_timeout_interruptible
	cmp	w0, #0
	cset	w24, eq
	cbnz	w19, LBB0_4
	b	LBB0_9
LBB0_14:
	add	x0, sp, #8
	bl	_poll_freewait
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SCHEDULE_TIMEOUT,4,2       ; @MAX_SCHEDULE_TIMEOUT
	.comm	_EPOLLERR,4,2                   ; @EPOLLERR
	.comm	_EPOLLHUP,4,2                   ; @EPOLLHUP
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
