	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_out_cstring                ## -- Begin function rpc_out_cstring
	.p2align	4, 0x90
_rpc_out_cstring:                       ## @rpc_out_cstring
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%r15, %rdx
	callq	_vkprintf
	xorl	%edi, %edi
	cmpq	$16777216, %r15                 ## imm = 0x1000000
	setb	%dil
	callq	_assert
	movq	_packet_ptr@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_packet_buffer@GOTPCREL(%rip), %rcx
	movq	_PACKET_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rdx
	addq	%r15, %rax
	addq	$8, %rax
	xorl	%edi, %edi
	cmpq	%rdx, %rax
	setb	%dil
	callq	_assert
	movq	(%r12), %r13
	cmpq	$253, %r15
	jg	LBB0_2
## %bb.1:
	movb	%r15b, (%r13)
	incq	%r13
	jmp	LBB0_3
LBB0_2:
	movl	%r15d, %eax
	shll	$8, %eax
	orl	$254, %eax
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_3:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	leaq	(%r15,%r13), %rdi
	testb	$3, %dil
	je	LBB0_5
## %bb.4:
	leal	(%r15,%r13), %ebx
	andl	$3, %ebx
	movl	$4, %esi
	subq	%rbx, %rsi
	xorq	$3, %rbx
	callq	___bzero
	addq	%r15, %rbx
	leaq	(%rbx,%r13), %rdi
	incq	%rdi
LBB0_5:
	movq	%rdi, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rpc_out_cstring (len: %lld)\n"

	.comm	_packet_ptr,8,3                 ## @packet_ptr
	.comm	_packet_buffer,8,3              ## @packet_buffer
	.comm	_PACKET_BUFFER_SIZE,8,3         ## @PACKET_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_out_cstring                ; -- Begin function rpc_out_cstring
	.p2align	2
_rpc_out_cstring:                       ; @rpc_out_cstring
	.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
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x19
	bl	_vkprintf
	lsr	x8, x19, #24
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh2:
	adrp	x22, _packet_ptr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _packet_ptr@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, x19
	add	x8, x8, #8
Lloh4:
	adrp	x9, _packet_buffer@GOTPAGE
Lloh5:
	ldr	x9, [x9, _packet_buffer@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _PACKET_BUFFER_SIZE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PACKET_BUFFER_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x8, x9
	cset	w0, lo
	bl	_assert
	ldr	x21, [x22]
	cmp	x19, #253
	b.gt	LBB0_2
; %bb.1:
	strb	w19, [x21], #1
	b	LBB0_3
LBB0_2:
	mov	w8, #254
	bfi	w8, w19, #8, #24
	str	w8, [x21], #4
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	x0, x21, x19
	tst	x0, #0x3
	b.eq	LBB0_5
; %bb.4:
	add	w8, w21, w19
	and	x8, x8, #0x3
	eor	x20, x8, #0x3
	mov	w9, #4
	sub	x1, x9, x8
	bl	_bzero
	add	x8, x20, x19
	add	x8, x8, x21
	add	x0, x8, #1
LBB0_5:
	str	x0, [x22]
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rpc_out_cstring (len: %lld)\n"

	.comm	_packet_ptr,8,3                 ; @packet_ptr
	.comm	_packet_buffer,8,3              ; @packet_buffer
	.comm	_PACKET_BUFFER_SIZE,8,3         ; @PACKET_BUFFER_SIZE
.subsections_via_symbols
