	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_poll                           ## -- Begin function poll
	.p2align	4, 0x90
_poll:                                  ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_init_preload
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.1:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r15, %r13
	shlq	$4, %r13
	xorl	%ebx, %ebx
	movq	_fd_rsocket@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r14,%rbx), %edi
	callq	_fd_gett
	cmpq	(%r12), %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_3
LBB0_15:
	movq	_real@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_fds_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r14,%r12), %edi
	callq	_fd_getd
	movl	%eax, 12(%rbx,%r12)
	movl	8(%r14,%r12), %eax
	movl	%eax, 8(%rbx,%r12)
	movq	$0, (%rbx,%r12)
	addq	$16, %r12
	cmpq	%r12, %r13
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_rpoll
	leaq	-1(%r15), %rdx
	movl	%r15d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_9:
	andl	$-4, %r15d
	movl	$48, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbx,%rsi), %rdi
	movq	%rdi, -48(%r14,%rsi)
	movq	-32(%rbx,%rsi), %rdi
	movq	%rdi, -32(%r14,%rsi)
	movq	-16(%rbx,%rsi), %rdi
	movq	%rdi, -16(%r14,%rsi)
	movq	(%rbx,%rsi), %rdi
	movq	%rdi, (%r14,%rsi)
	addq	$4, %rdx
	addq	$64, %rsi
	cmpq	%rdx, %r15
	jne	LBB0_10
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:
	shlq	$4, %rdx
	addq	%rdx, %r14
	addq	%rdx, %rbx
	shlq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx), %rsi
	movq	%rsi, (%r14,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_rsocket,8,3                 ## @fd_rsocket
	.comm	_real,8,3                       ## @real
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_poll                           ; -- Begin function poll
	.p2align	2
_poll:                                  ; @poll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_init_preload
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w23, w21
	add	x22, x19, #12
Lloh0:
	adrp	x24, _fd_rsocket@GOTPAGE
Lloh1:
	ldr	x24, [x24, _fd_rsocket@GOTPAGEOFF]
	mov	x25, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_fd_gett
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #16
	subs	x25, x25, #1
	b.ne	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _real@GOTPAGE
Lloh3:
	ldr	x8, [x8, _real@GOTPAGEOFF]
Lloh4:
	ldr	x3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x3
LBB0_5:
	mov	x0, x21
	bl	_fds_alloc
	cbz	x0, LBB0_11
; %bb.6:
	mov	x22, x0
	mov	x24, #0
	lsl	x25, x23, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x19, x24
	ldr	w0, [x26, #12]
	bl	_fd_getd
	add	x8, x22, x24
	ldr	w9, [x26, #8]
	stp	w9, w0, [x8, #8]
	str	xzr, [x8]
	add	x24, x24, #16
	cmp	x25, x24
	b.ne	LBB0_7
; %bb.8:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_rpoll
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22], #16
	str	x8, [x19], #16
	subs	x23, x23, #1
	b.ne	LBB0_9
; %bb.10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_rsocket,8,3                 ; @fd_rsocket
	.comm	_real,8,3                       ; @real
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
