	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unmap_memblk
_unmap_memblk:                          ## @unmap_memblk
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	32(%rsi), %r15
	movq	40(%rsi), %rdi
	cmpq	%r14, %rdi
	je	LBB0_1
## %bb.2:
	movq	_mapped_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_emu10k1_memblk
	movl	4(%rax), %ecx
	addl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	(%r15), %rdi
	cmpq	%r14, %rdi
	je	LBB0_4
## %bb.5:
	movq	_mapped_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_emu10k1_memblk
	jmp	LBB0_6
LBB0_4:
	movq	_MAX_ALIGN_PAGES@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_list_del
	leaq	16(%r13), %rdi
	callq	_list_del
	movl	8(%r13), %r15d
	cmpl	12(%r13), %r15d
	jg	LBB0_9
## %bb.7:
	movl	(%r13), %ebx
	decl	%r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_silent_ptb
	incl	%ebx
	incl	%r15d
	cmpl	12(%r13), %r15d
	jl	LBB0_8
LBB0_9:
	movl	$-1, (%r13)
	subl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapped_link,4,2                ## @mapped_link
	.comm	_MAX_ALIGN_PAGES,4,2            ## @MAX_ALIGN_PAGES
	.no_dead_strip	_unmap_memblk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unmap_memblk
_unmap_memblk:                          ; @unmap_memblk
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	add	x21, x1, #32
	ldr	x0, [x1, #40]
Lloh0:
	adrp	x23, _mapped_link@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mapped_link@GOTPAGEOFF]
	cmp	x0, x20
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x23]
	bl	_get_emu10k1_memblk
	ldp	w8, w9, [x0]
	add	w22, w9, w8
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	x0, [x21]
	cmp	x0, x20
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x23]
	bl	_get_emu10k1_memblk
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x0, _MAX_ALIGN_PAGES@GOTPAGE
Lloh3:
	ldr	x0, [x0, _MAX_ALIGN_PAGES@GOTPAGEOFF]
LBB0_6:
	ldr	w23, [x0]
	mov	x0, x21
	bl	_list_del
	add	x0, x19, #16
	bl	_list_del
	ldp	w8, w9, [x19, #8]
	cmp	w8, w9
	b.gt	LBB0_9
; %bb.7:
	ldr	w21, [x19]
	sub	w24, w8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_set_silent_ptb
	add	w21, w21, #1
	ldr	w8, [x19, #12]
	add	w24, w24, #1
	cmp	w24, w8
	b.lt	LBB0_8
LBB0_9:
	mov	w8, #-1
	str	w8, [x19]
	sub	w0, w23, w22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mapped_link,4,2                ; @mapped_link
	.comm	_MAX_ALIGN_PAGES,4,2            ; @MAX_ALIGN_PAGES
	.no_dead_strip	_unmap_memblk
.subsections_via_symbols
