	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_clone                      ## -- Begin function rwm_clone
	.p2align	4, 0x90
_rwm_clone:                             ## @rwm_clone
	.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
	movq	(%rsi), %rax
	movq	_RM_INIT_MAGIC@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	sete	%cl
	movq	_RM_TMP_MAGIC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movq	%rdi, %r14
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	(%rax)
LBB0_3:
	movq	_rwm_total_msgs@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RM_INIT_MAGIC,8,3              ## @RM_INIT_MAGIC
	.comm	_RM_TMP_MAGIC,8,3               ## @RM_TMP_MAGIC
	.comm	_rwm_total_msgs,4,2             ## @rwm_total_msgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_clone                      ; -- Begin function rwm_clone
	.p2align	2
_rwm_clone:                             ; @rwm_clone
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _RM_INIT_MAGIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RM_INIT_MAGIC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
Lloh2:
	adrp	x9, _RM_TMP_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RM_TMP_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:
Lloh5:
	adrp	x8, _rwm_total_msgs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rwm_total_msgs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RM_INIT_MAGIC,8,3              ; @RM_INIT_MAGIC
	.comm	_RM_TMP_MAGIC,8,3               ; @RM_TMP_MAGIC
	.comm	_rwm_total_msgs,4,2             ; @rwm_total_msgs
.subsections_via_symbols
