	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_to_news_rpc               ## -- Begin function send_to_news_rpc
	.p2align	4, 0x90
_send_to_news_rpc:                      ## @send_to_news_rpc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_dl_abs
	movq	_CSN@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	_CS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_get_target_connection
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_rpc_sent@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STAT
	movslq	(%rbx), %r15
	xorl	%edi, %edi
	cmpq	$4, %r15
	setge	%dil
	callq	_assert
	shll	$2, (%rbx)
	movq	%r14, %rdi
	callq	_RPCC_DATA
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movl	%ecx, 4(%rbx)
	movl	(%rbx), %esi
	addl	$-4, %esi
	movq	%rbx, %rdi
	callq	_compute_crc32
	movl	%eax, -4(%rbx,%r15,4)
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_out
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_assert
	movl	(%rbx), %eax
	movq	_rpc_sent_size@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_RPCC_FUNC
	movq	%r14, %rdi
	callq	*(%rax)
	jmp	LBB0_3
LBB0_1:
	movq	_rpc_failed@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STAT
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSN,4,2                        ## @CSN
	.comm	_CS,8,3                         ## @CS
	.comm	_rpc_failed,4,2                 ## @rpc_failed
	.comm	_rpc_sent,4,2                   ## @rpc_sent
	.comm	_rpc_sent_size,4,2              ## @rpc_sent_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_to_news_rpc               ; -- Begin function send_to_news_rpc
	.p2align	2
_send_to_news_rpc:                      ; @send_to_news_rpc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	bl	_dl_abs
Lloh0:
	adrp	x8, _CSN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
Lloh3:
	adrp	x9, _CS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x9, w8, sxtw #2]
	bl	_get_target_connection
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _rpc_sent@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rpc_sent@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_STAT
	ldr	w21, [x19]
	cmp	w21, #3
	cset	w0, gt
	bl	_assert
	ldr	w8, [x19]
	lsl	w8, w8, #2
	str	w8, [x19]
	mov	x0, x20
	bl	_RPCC_DATA
	ldr	w8, [x0]
	add	w9, w8, #1
	str	w9, [x0]
	str	w8, [x19, #4]
	ldr	w8, [x19]
	sub	w1, w8, #4
	mov	x0, x19
	bl	_compute_crc32
	sub	w8, w21, #1
	str	w0, [x19, w8, sxtw #2]
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_write_out
	ldr	w8, [x19]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _rpc_sent_size@GOTPAGE
Lloh10:
	ldr	x9, [x9, _rpc_sent_size@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	mov	x0, x20
	bl	_RPCC_FUNC
	ldr	x8, [x0]
	mov	x0, x20
	blr	x8
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _rpc_failed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rpc_failed@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_STAT
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CSN,4,2                        ; @CSN
	.comm	_CS,8,3                         ; @CS
	.comm	_rpc_failed,4,2                 ; @rpc_failed
	.comm	_rpc_sent,4,2                   ; @rpc_sent
	.comm	_rpc_sent_size,4,2              ; @rpc_sent_size
.subsections_via_symbols
