	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_free_message               ## -- Begin function gru_free_message
	.p2align	4, 0x90
_gru_free_message:                      ## @gru_free_message
	.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	(%rdi), %r14
	movq	24(%r14), %rbx
	movslq	(%rbx), %r15
	cmpq	$2, %r15
	jne	LBB0_1
## %bb.2:
	movq	_MQS_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_restore_present2
	movq	24(%r14), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rcx
LBB0_3:
	movq	_MQS_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_GRU_CACHE_LINE_BYTES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	%r15, %rax
	addq	%rcx, %rax
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.5:
	movq	8(%r14), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_9
## %bb.6:
	cmpq	%rdx, %rax
	jb	LBB0_9
## %bb.7:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_4:
	movq	32(%r14), %rax
	movl	$1, %ecx
LBB0_8:
	movq	16(%r14), %rdx
	movl	$1, (%rdx,%rcx,4)
LBB0_9:
	movq	%rax, 24(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MQS_EMPTY,4,2                  ## @MQS_EMPTY
	.comm	_GRU_CACHE_LINE_BYTES,4,2       ## @GRU_CACHE_LINE_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_free_message               ; -- Begin function gru_free_message
	.p2align	2
_gru_free_message:                      ; @gru_free_message
	.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
	ldr	x20, [x0]
	ldr	x19, [x20, #24]
	ldrsw	x21, [x19]
Lloh0:
	adrp	x22, _MQS_EMPTY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MQS_EMPTY@GOTPAGEOFF]
	cmp	w21, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_restore_present2
	ldr	x9, [x20, #24]
	b	LBB0_3
LBB0_2:
	mov	x9, x19
LBB0_3:
	ldr	w8, [x22]
	str	w8, [x19, #4]
Lloh2:
	adrp	x8, _GRU_CACHE_LINE_BYTES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRU_CACHE_LINE_BYTES@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	madd	x8, x8, x21, x9
	ldr	x10, [x20]
	cmp	x8, x10
	b.eq	LBB0_6
; %bb.4:
	ldr	x10, [x20, #8]
	cmp	x9, x10
	ccmp	x8, x10, #0, lo
	b.lo	LBB0_8
; %bb.5:
	mov	x9, #0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20, #32]
	mov	w9, #1
LBB0_7:
	ldr	x10, [x20, #16]
	mov	w11, #1
	str	w11, [x10, x9, lsl #2]
LBB0_8:
	str	x8, [x20, #24]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MQS_EMPTY,4,2                  ; @MQS_EMPTY
	.comm	_GRU_CACHE_LINE_BYTES,4,2       ; @GRU_CACHE_LINE_BYTES
.subsections_via_symbols
