	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_poll_arm
_rs_poll_arm:                           ## @rs_poll_arm
	.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
	testl	%edx, %edx
	jle	LBB0_13
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	%edx, %r13d
	leaq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	shlq	$4, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r14,%r15), %eax
	movl	%eax, 12(%r12,%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, 8(%r12,%r15)
	movq	$0, (%r12,%r15)
	addq	$16, %r15
	cmpq	%r15, %r13
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r14,%r15), %esi
	movq	_idm@GOTPCREL(%rip), %rdi
	callq	_idm_lookup
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	8(%r14,%r15), %esi
	movq	_rs_is_cq_armed@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rs_poll_rs
	movq	%rax, (%r14,%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rax
	movq	_rs_connected@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rbx
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rbx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	movl	%eax, 12(%r12,%r15)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_4:
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idm,4,2                        ## @idm
	.comm	_rs_is_cq_armed,4,2             ## @rs_is_cq_armed
	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_rs_connected,8,3               ## @rs_connected
	.comm	_POLLIN,4,2                     ## @POLLIN
	.no_dead_strip	_rs_poll_arm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_poll_arm
_rs_poll_arm:                           ; @rs_poll_arm
	.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_12
; %bb.1:
	add	x21, x0, #12
Lloh0:
	adrp	x19, _idm@GOTPAGE
Lloh1:
	ldr	x19, [x19, _idm@GOTPAGEOFF]
Lloh2:
	adrp	x22, _rs_is_cq_armed@GOTPAGE
Lloh3:
	ldr	x22, [x22, _rs_is_cq_armed@GOTPAGEOFF]
Lloh4:
	adrp	x23, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SOCK_STREAM@GOTPAGEOFF]
	add	x24, x1, #8
Lloh6:
	adrp	x25, _rs_connected@GOTPAGE
Lloh7:
	ldr	x25, [x25, _rs_connected@GOTPAGEOFF]
	mov	w26, w2
Lloh8:
	adrp	x27, _POLLIN@GOTPAGE
Lloh9:
	ldr	x27, [x27, _POLLIN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, #4]
	str	w8, [x21]
	mov	x8, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	stur	w8, [x21, #-4]
	stur	xzr, [x21, #-12]
	add	x21, x21, #16
	add	x24, x24, #16
	subs	x26, x26, #1
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24, #4]
	mov	x0, x19
	bl	_idm_lookup
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	w1, [x24]
	ldr	w3, [x22]
	mov	w2, #0
	bl	_rs_poll_rs
	stur	x0, [x24, #-8]
	cbnz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x25]
	ldr	x8, [x20, #24]
	cmp	x9, x10
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, #16
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x8, x27
	b	LBB0_3
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_idm,4,2                        ; @idm
	.comm	_rs_is_cq_armed,4,2             ; @rs_is_cq_armed
	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_rs_connected,8,3               ; @rs_connected
	.comm	_POLLIN,4,2                     ; @POLLIN
	.no_dead_strip	_rs_poll_arm
.subsections_via_symbols
