	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_svc_run
_udp_svc_run:                           ## @udp_svc_run
	.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
	movq	%rdi, %r12
	movl	$4, %esi
	callq	_rs_svc_grow_sets
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	%eax, -48(%rbp)
	movq	16(%r12), %rax
	movl	4(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_write_all
	movslq	%r14d, %r14
LBB0_19:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	24(%r12), %rax
	movq	_udp_svc_fds@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	16(%r12), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	(%r12), %eax
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jle	LBB0_19
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	leal	1(%rax), %esi
	movq	(%r15), %rdi
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edx
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	andl	$-4, %edx
	leaq	48(%rdi), %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, -48(%rbx)
	movq	$0, -32(%rbx)
	movq	$0, -16(%rbx)
	movq	$0, (%rbx)
	addq	$4, %rcx
	addq	$64, %rbx
	cmpq	%rcx, %rdx
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	shlq	$4, %rcx
	addq	%rdi, %rcx
	shlq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, (%rcx,%rdx)
	addq	$16, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %edx
	callq	_poll
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_udp_svc_process_sock
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$16, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	movslq	%eax, %rcx
	incq	%rbx
	addq	$16, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_18
LBB0_15:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rcx
	cmpq	$0, (%rcx,%r13)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	8(%r12), %rax
	movl	4(%rax,%rbx,4), %edi
	callq	_udp_svc_process_rs
	movl	(%r12), %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_udp_svc_fds,8,3                ## @udp_svc_fds
	.comm	_POLLIN,4,2                     ## @POLLIN
	.no_dead_strip	_udp_svc_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_svc_run
_udp_svc_run:                           ; @udp_svc_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w1, #4
	bl	_rs_svc_grow_sets
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	w0, [sp, #8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	mov	w2, #4
	bl	_write_all
	sxtw	x0, w20
	b	LBB0_20
LBB0_2:
Lloh0:
	adrp	x20, _udp_svc_fds@GOTPAGE
Lloh1:
	ldr	x20, [x20, _udp_svc_fds@GOTPAGEOFF]
	ldp	x9, x8, [x19, #16]
	str	x8, [x20]
	ldr	w9, [x9, #4]
Lloh2:
	adrp	x10, _POLLIN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _POLLIN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
	ldr	w8, [x19]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	b.le	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x0, [x20]
	add	w1, w8, #1
	tbnz	w8, #31, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w1, #4
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x1, #0xfffffffc
	add	x9, x0, #32
	mov	x10, x8
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	xzr, [x9, #-32]
	stur	xzr, [x9, #-16]
	str	xzr, [x9]
	str	xzr, [x9, #16]
	add	x9, x9, #64
	subs	x10, x10, #4
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x1
	b.eq	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x0, x8, lsl #4
	sub	x8, x1, x8
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	xzr, [x9], #16
	subs	x8, x8, #1
	b.ne	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #-1
	bl	_poll
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_udp_svc_process_sock
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	mov	w22, #16
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	add	x21, x21, #1
	add	x22, x22, #16
	cmp	x21, w8, sxtw
	b.ge	LBB0_3
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20]
	ldr	x9, [x9, x22]
	cbz	x9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	ldr	x8, [x19, #8]
	add	x8, x8, x21, lsl #2
	ldr	w0, [x8, #4]
	bl	_udp_svc_process_rs
	ldr	w8, [x19]
	b	LBB0_16
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_udp_svc_fds,8,3                ; @udp_svc_fds
	.comm	_POLLIN,4,2                     ; @POLLIN
	.no_dead_strip	_udp_svc_run
.subsections_via_symbols
