	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_release_extra_page         ## -- Begin function r5c_release_extra_page
	.p2align	4, 0x90
_r5c_release_extra_page:                ## @r5c_release_extra_page
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rax
	movq	16(%rsi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	(%rax), %r13
	movslq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	leaq	(%rax,%rax,2), %rcx
	leaq	-24(,%rcx,8), %r15
	leal	-1(%rax), %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi,%r15), %rax
	movq	16(%rsi,%r15), %rbx
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 16(%rsi,%r15)
	addq	%r15, %rsi
	movq	_R5_OrigPageUPTDODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_clear_bit
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_put_page
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	$1, %r12d
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rsi
	addq	$-24, %r15
	jmp	LBB0_2
LBB0_7:
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_R5C_EXTRA_PAGE_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rsi
	callq	_clear_bit
	movq	(%rbx), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_wakeup_thread               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R5_OrigPageUPTDODATE,4,2       ## @R5_OrigPageUPTDODATE
	.comm	_R5C_EXTRA_PAGE_IN_USE,4,2      ## @R5C_EXTRA_PAGE_IN_USE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_release_extra_page         ; -- Begin function r5c_release_extra_page
	.p2align	2
_r5c_release_extra_page:                ; @r5c_release_extra_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	x8, x21, [x0, #8]
	ldr	x22, [x8, #16]
	ldr	x9, [x21, #16]
	ldr	x23, [x9]
	ldrsw	x9, [x0]
	cbz	w9, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x10, x9, x9, lsl #1
	lsl	x24, x10, #3
	sub	w25, w9, #1
Lloh0:
	adrp	x26, _R5_OrigPageUPTDODATE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _R5_OrigPageUPTDODATE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x24
	ldp	x9, x20, [x8, #-16]
	cmp	x9, x20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stur	x9, [x8, #-8]
	ldr	w0, [x26]
	sub	x1, x8, #24
	bl	_clear_bit
	cmp	x22, x23
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_put_page
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	sub	x24, x24, #24
	sub	w25, w25, #1
	b	LBB0_2
LBB0_7:
	cmp	x22, x23
	b.eq	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh2:
	adrp	x8, _R5C_EXTRA_PAGE_IN_USE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R5C_EXTRA_PAGE_IN_USE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_clear_bit
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_md_wakeup_thread
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_R5_OrigPageUPTDODATE,4,2       ; @R5_OrigPageUPTDODATE
	.comm	_R5C_EXTRA_PAGE_IN_USE,4,2      ; @R5C_EXTRA_PAGE_IN_USE
.subsections_via_symbols
