	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_svc_process_sock
_udp_svc_process_sock:                  ## @udp_svc_process_sock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	leaq	-24(%rbp), %rsi
	movl	$16, %edx
	callq	_read_all
	movl	-24(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.3:
	movq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rs_svc_add_rs
	movl	%eax, -20(%rbp)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_RS_OPT_SVC_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-16(%rbp), %rcx
	orl	%eax, (%rcx)
	movq	16(%rbx), %rax
	movq	_udp_svc_fds@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movl	4(%rcx), %ecx
	movq	(%rbx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%ecx, 8(%rax,%rdx,4)
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax,%rdx,4)
	movl	$0, (%rax,%rdx,4)
	jmp	LBB0_8
LBB0_5:
	movq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rs_svc_rm_rs
	movl	%eax, -20(%rbp)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_RS_OPT_SVC_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-16(%rbp), %rcx
	andl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_7:
	movl	$0, -20(%rbp)
LBB0_8:
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	leaq	-24(%rbp), %rsi
	movl	$16, %edx
	callq	_write_all
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_OPT_SVC_ACTIVE,4,2          ## @RS_OPT_SVC_ACTIVE
	.comm	_udp_svc_fds,8,3                ## @udp_svc_fds
	.comm	_POLLIN,4,2                     ## @POLLIN
	.no_dead_strip	_udp_svc_process_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_svc_process_sock
_udp_svc_process_sock:                  ; @udp_svc_process_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
	mov	x1, sp
	mov	w2, #16
	bl	_read_all
	ldr	w8, [sp]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_rs_svc_add_rs
	str	w0, [sp, #4]
	cbnz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x8, _RS_OPT_SVC_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RS_OPT_SVC_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh3:
	adrp	x8, _udp_svc_fds@GOTPAGE
Lloh4:
	ldr	x8, [x8, _udp_svc_fds@GOTPAGEOFF]
	ldr	x10, [x19, #16]
Lloh5:
	str	x10, [x8]
	ldr	w8, [x9, #4]
	ldr	x9, [x19]
	mov	w11, #12
	madd	x9, x9, x11, x10
	str	w8, [x9, #8]
Lloh6:
	adrp	x8, _POLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	wzr, w8, [x9]
	b	LBB0_8
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_rs_svc_rm_rs
	str	w0, [sp, #4]
	cbnz	w0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _RS_OPT_SVC_ACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RS_OPT_SVC_ACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	b	LBB0_8
LBB0_7:
	str	wzr, [sp, #4]
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	mov	x1, sp
	mov	w2, #16
	bl	_write_all
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_OPT_SVC_ACTIVE,4,2          ; @RS_OPT_SVC_ACTIVE
	.comm	_udp_svc_fds,8,3                ; @udp_svc_fds
	.comm	_POLLIN,4,2                     ; @POLLIN
	.no_dead_strip	_udp_svc_process_sock
.subsections_via_symbols
