	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2_dynarec_cleanup            ## -- Begin function sh2_dynarec_cleanup
	.p2align	4, 0x90
_sh2_dynarec_cleanup:                   ## @sh2_dynarec_cleanup
	.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	_BASE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_TARGET_SIZE_2@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shll	%cl, %esi
	callq	_munmap
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	xorl	%ebx, %ebx
	movq	_jump_in@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_ll_clear
	incq	%rbx
	cmpq	$2048, %rbx                     ## imm = 0x800
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	_jump_out@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_ll_clear
	incq	%rbx
	cmpq	$2048, %rbx                     ## imm = 0x800
	jne	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	movq	_jump_dirty@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_ll_clear
	incq	%rbx
	cmpq	$2048, %rbx                     ## imm = 0x800
	jne	LBB0_7
## %bb.8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE_ADDR,8,3                  ## @BASE_ADDR
	.comm	_TARGET_SIZE_2,4,2              ## @TARGET_SIZE_2
	.comm	_jump_in,8,3                    ## @jump_in
	.comm	_jump_out,8,3                   ## @jump_out
	.comm	_jump_dirty,8,3                 ## @jump_dirty
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"munmap() failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sh2_dynarec_cleanup            ; -- Begin function sh2_dynarec_cleanup
	.p2align	2
_sh2_dynarec_cleanup:                   ; @sh2_dynarec_cleanup
	.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
Lloh0:
	adrp	x8, _BASE_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _TARGET_SIZE_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_SIZE_2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w1, w9, w8
	bl	_munmap
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_2:
	mov	x19, #0
Lloh8:
	adrp	x20, _jump_in@GOTPAGE
Lloh9:
	ldr	x20, [x20, _jump_in@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x19, x8
	bl	_ll_clear
	add	x19, x19, #1
	cmp	x19, #2048
	b.ne	LBB0_3
; %bb.4:
	mov	x19, #0
Lloh10:
	adrp	x20, _jump_out@GOTPAGE
Lloh11:
	ldr	x20, [x20, _jump_out@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x19, x8
	bl	_ll_clear
	add	x19, x19, #1
	cmp	x19, #2048
	b.ne	LBB0_5
; %bb.6:
	mov	x19, #0
Lloh12:
	adrp	x20, _jump_dirty@GOTPAGE
Lloh13:
	ldr	x20, [x20, _jump_dirty@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x19, x8
	bl	_ll_clear
	add	x19, x19, #1
	cmp	x19, #2048
	b.ne	LBB0_7
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE_ADDR,8,3                  ; @BASE_ADDR
	.comm	_TARGET_SIZE_2,4,2              ; @TARGET_SIZE_2
	.comm	_jump_in,8,3                    ; @jump_in
	.comm	_jump_out,8,3                   ; @jump_out
	.comm	_jump_dirty,8,3                 ; @jump_dirty
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"munmap() failed"

.subsections_via_symbols
