	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function populate_rw_params
_populate_rw_params:                    ## @populate_rw_params
	.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	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	callq	_page_to_phys
	cmpq	%rbx, %r14
	jne	LBB0_2
## %bb.1:
	subl	%r13d, %r12d
	movslq	%r12d, %rcx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	notq	%rdx
	andq	%r13, %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	notq	%rdx
	andq	%r13, %rdx
	subq	%rdx, %rcx
LBB0_3:
	orq	%rax, %rdx
	movq	32(%rbp), %rdi
	movq	16(%rdi), %rsi
	movq	%rdx, (%rsi)
	movq	(%rdi), %rdx
	movl	%ecx, (%rdx)
	xorl	%ebx, %ebx
	cmpl	$2, %r15d
	jl	LBB0_9
## %bb.4:
	leal	-1(%r15), %r14d
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	movl	$1, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbp), %rdi
	movq	16(%rdi), %rdx
	movslq	%ebx, %rsi
	incl	%ebx
	movq	%rax, 8(%rdx,%rsi,8)
	movq	(%rdi), %rdx
	movl	%ecx, 4(%rdx,%rsi,4)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rdi
	callq	_page_to_phys
	cmpq	%r12, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%edx, %ecx
	movl	16(%rbp), %esi
	cmovel	%esi, %ecx
	addq	%rdx, %r13
	cmpq	%r13, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbp), %rdx
	movq	(%rdx), %rdx
	movslq	%ebx, %rsi
	addl	%ecx, (%rdx,%rsi,4)
	jmp	LBB0_8
LBB0_9:
	incl	%ebx
	movq	32(%rbp), %rax
	movl	%ebx, 8(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.no_dead_strip	_populate_rw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function populate_rw_params
_populate_rw_params:                    ; @populate_rw_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x24, x5
	mov	x25, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x26, [x29, #16]
	ldr	x0, [x0]
	bl	_page_to_phys
Lloh0:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	cmp	x25, x24
	b.ne	LBB0_2
; %bb.1:
	sub	w8, w23, w22
	sxtw	x8, w8
Lloh2:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	bic	x9, x22, x9
	b	LBB0_3
LBB0_2:
	ldr	x8, [x27]
Lloh5:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	bic	x9, x22, x9
	sub	x8, x8, x9
LBB0_3:
	orr	x9, x9, x0
	ldr	x10, [x26, #16]
	str	x9, [x10]
	ldr	x9, [x26]
	str	w8, [x9]
	cmp	w21, #2
	b.lt	LBB0_9
; %bb.4:
	mov	w22, #0
	sub	w8, w21, #1
	mov	w20, w20
	mov	w9, w21
	sub	x21, x8, #1
	add	x19, x19, #8
	sub	x23, x9, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x9, w22
	add	x22, x9, #1
	ldr	x9, [x26, #16]
	str	x0, [x9, x22, lsl #3]
	ldr	x9, [x26]
	str	w8, [x9, x22, lsl #2]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x21, x21, #1
	add	x19, x19, #8
	subs	x23, x23, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x0
	ldr	x0, [x19]
	bl	_page_to_phys
	ldr	x9, [x27]
	cmp	x21, #0
	csel	w8, w20, w9, eq
	add	x9, x9, x24
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x26]
	sbfiz	x10, x22, #2, #32
	ldr	w11, [x9, x10]
	add	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_6
LBB0_9:
	mov	w22, #0
LBB0_10:
	add	w8, w22, #1
	str	w8, [x26, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.no_dead_strip	_populate_rw_params
.subsections_via_symbols
