	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_msg_buffers_chunk_internal ## -- Begin function free_msg_buffers_chunk_internal
	.p2align	4, 0x90
_free_msg_buffers_chunk_internal:       ## @free_msg_buffers_chunk_internal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MSG_CHUNK_USED_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_MSG_CHUNK_HEAD_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%r14), %rax
	sete	%dil
	callq	_assert
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	8(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r14, 64(%rbx)
	sete	%dil
	callq	_assert
	movq	$0, (%rbx)
	movq	$0, 64(%rbx)
	movq	48(%rbx), %rax
	movq	56(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%rcx)
	movq	16(%rbx), %rax
	subq	%rax, 16(%r14)
	movl	16(%rbx), %eax
	subl	%eax, 40(%r14)
	movq	32(%r14), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 32(%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	_allocated_buffer_chunks@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_MSG_BUFFERS_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_allocated_buffer_bytes@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_CHUNK_USED_MAGIC,8,3       ## @MSG_CHUNK_USED_MAGIC
	.comm	_MSG_CHUNK_HEAD_MAGIC,8,3       ## @MSG_CHUNK_HEAD_MAGIC
	.comm	_allocated_buffer_chunks,4,2    ## @allocated_buffer_chunks
	.comm	_MSG_BUFFERS_CHUNK_SIZE,8,3     ## @MSG_BUFFERS_CHUNK_SIZE
	.comm	_allocated_buffer_bytes,4,2     ## @allocated_buffer_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_free_msg_buffers_chunk_internal ; -- Begin function free_msg_buffers_chunk_internal
	.p2align	2
_free_msg_buffers_chunk_internal:       ; @free_msg_buffers_chunk_internal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MSG_CHUNK_USED_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_CHUNK_USED_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MSG_CHUNK_HEAD_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSG_CHUNK_HEAD_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldp	x8, x9, [x19, #16]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #64]
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	str	xzr, [x19]
	str	xzr, [x19, #64]
	ldp	x9, x8, [x19, #48]
	str	x8, [x9]
	str	x9, [x8]
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	sub	x8, x9, x8
	str	x8, [x20, #16]
	ldr	w8, [x19, #16]
	ldr	w9, [x20, #40]
	sub	w8, w9, w8
	str	w8, [x20, #40]
	ldr	x8, [x20, #32]
	sub	x9, x8, #1
	str	x9, [x20, #32]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh6:
	adrp	x8, _allocated_buffer_chunks@GOTPAGE
Lloh7:
	ldr	x8, [x8, _allocated_buffer_chunks@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh8:
	adrp	x8, _MSG_BUFFERS_CHUNK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_BUFFERS_CHUNK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _allocated_buffer_bytes@GOTPAGE
Lloh12:
	ldr	x9, [x9, _allocated_buffer_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_CHUNK_USED_MAGIC,8,3       ; @MSG_CHUNK_USED_MAGIC
	.comm	_MSG_CHUNK_HEAD_MAGIC,8,3       ; @MSG_CHUNK_HEAD_MAGIC
	.comm	_allocated_buffer_chunks,4,2    ; @allocated_buffer_chunks
	.comm	_MSG_BUFFERS_CHUNK_SIZE,8,3     ; @MSG_BUFFERS_CHUNK_SIZE
	.comm	_allocated_buffer_bytes,4,2     ; @allocated_buffer_bytes
.subsections_via_symbols
