	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2rec_mem_free                ## -- Begin function sh2rec_mem_free
	.p2align	4, 0x90
_sh2rec_mem_free:                       ## @sh2rec_mem_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rcx)
LBB0_2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rcx, (%rax)
LBB0_4:
	movq	_usedblocks@GOTPCREL(%rip), %rdx
	cmpq	%rdi, (%rdx)
	jne	LBB0_6
## %bb.5:
	movq	%rcx, (%rdx)
LBB0_6:
	movq	_usedblocks_tail@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	%rax, (%rcx)
LBB0_8:
	movq	$0, 24(%rdi)
	movq	_freeblocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rdi)
	movq	$0, 8(%rdi)
	addl	$24, (%rdi)
	movq	%rdi, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usedblocks,8,3                 ## @usedblocks
	.comm	_usedblocks_tail,8,3            ## @usedblocks_tail
	.comm	_freeblocks,8,3                 ## @freeblocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2rec_mem_free                ; -- Begin function sh2rec_mem_free
	.p2align	2
_sh2rec_mem_free:                       ; @sh2rec_mem_free
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0, #8]
	cbz	x9, LBB0_2
; %bb.1:
	str	x8, [x9]
LBB0_2:
	cbz	x8, LBB0_4
; %bb.3:
	str	x9, [x8]
LBB0_4:
Lloh0:
	adrp	x10, _usedblocks@GOTPAGE
Lloh1:
	ldr	x10, [x10, _usedblocks@GOTPAGEOFF]
	ldr	x11, [x10]
	cmp	x11, x0
	b.ne	LBB0_6
; %bb.5:
	str	x9, [x10]
LBB0_6:
Lloh2:
	adrp	x9, _usedblocks_tail@GOTPAGE
Lloh3:
	ldr	x9, [x9, _usedblocks_tail@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, x0
	b.ne	LBB0_8
; %bb.7:
	str	x8, [x9]
LBB0_8:
	str	xzr, [x0, #24]
Lloh4:
	adrp	x8, _freeblocks@GOTPAGE
Lloh5:
	ldr	x8, [x8, _freeblocks@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	xzr, x9, [x0, #8]
	ldr	w9, [x0]
	add	w9, w9, #24
	str	w9, [x0]
	str	x0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_usedblocks,8,3                 ; @usedblocks
	.comm	_usedblocks_tail,8,3            ; @usedblocks_tail
	.comm	_freeblocks,8,3                 ; @freeblocks
.subsections_via_symbols
