	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rwm_free                       ## -- Begin function rwm_free
	.p2align	4, 0x90
_rwm_free:                              ## @rwm_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_RM_INIT_MAGIC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	sete	%al
	movq	_RM_TMP_MAGIC@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r15d
	movq	8(%rdi), %r14
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_rwm_total_msgs@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	cmpl	(%r12), %r15d
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg_part_decref                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RM_INIT_MAGIC,4,2              ## @RM_INIT_MAGIC
	.comm	_RM_TMP_MAGIC,4,2               ## @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_free                       ; -- Begin function rwm_free
	.p2align	2
_rwm_free:                              ; @rwm_free
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _RM_INIT_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RM_INIT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
Lloh3:
	adrp	x22, _RM_TMP_MAGIC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RM_TMP_MAGIC@GOTPAGEOFF]
	ldr	w8, [x22]
	ccmp	w21, w8, #4, ne
	cset	w0, eq
	bl	_assert
Lloh5:
	adrp	x8, _rwm_total_msgs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rwm_total_msgs@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x19
	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
	b	_msg_part_decref
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RM_INIT_MAGIC,4,2              ; @RM_INIT_MAGIC
	.comm	_RM_TMP_MAGIC,4,2               ; @RM_TMP_MAGIC
	.comm	_rwm_total_msgs,4,2             ; @rwm_total_msgs
.subsections_via_symbols
