	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_poll_events
_rs_poll_events:                        ## @rs_poll_events
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	%edx, %r12d
	shlq	$4, %r12
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15,%r14), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %rsi
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rsi,%r14)
	cmpq	$1, %rax
	sbbl	$-1, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %r14
	cmpq	%r14, %r12
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15,%r14)
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movl	12(%rsi,%r14), %esi
	movq	_idm@GOTPCREL(%rip), %rdi
	callq	_idm_lookup
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	%r15, %r12
	movq	%rax, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_fastlock_acquire
	movq	(%rbx), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_rs_get_cq_event
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_ds_get_cq_event
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_fastlock_release
	movl	8(%r13,%r14), %esi
	movq	_rs_poll_all@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rs_poll_rs
	movq	%r13, %rsi
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_1:
	xorl	%ecx, %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idm,4,2                        ## @idm
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_rs_poll_all,4,2                ## @rs_poll_all
	.no_dead_strip	_rs_poll_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_poll_events
_rs_poll_events:                        ; @rs_poll_events
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x0
	mov	w19, #0
Lloh0:
	adrp	x21, _idm@GOTPAGE
Lloh1:
	ldr	x21, [x21, _idm@GOTPAGEOFF]
	add	x24, x1, #12
Lloh2:
	adrp	x25, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	adrp	x26, _rs_poll_all@GOTPAGE
Lloh5:
	ldr	x26, [x26, _rs_poll_all@GOTPAGEOFF]
	mov	w27, w2
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	stur	x0, [x24, #-12]
	cmp	x0, #0
	cinc	w19, w19, ne
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #16
	add	x20, x20, #16
	subs	x27, x27, #1
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_idm_lookup
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_fastlock_acquire
	ldr	x8, [x22]
	ldr	x9, [x25]
	mov	x0, x22
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_rs_get_cq_event
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_ds_get_cq_event
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_fastlock_release
	ldur	w1, [x24, #-4]
	ldr	w3, [x26]
	mov	x0, x22
	mov	w2, #1
	bl	_rs_poll_rs
	b	LBB0_3
LBB0_11:
	mov	w19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_idm,4,2                        ; @idm
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_rs_poll_all,4,2                ; @rs_poll_all
	.no_dead_strip	_rs_poll_events
.subsections_via_symbols
