	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_mem_map_pages              ## -- Begin function rxe_mem_map_pages
	.p2align	4, 0x90
_rxe_mem_map_pages:                     ## @rxe_mem_map_pages
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%ecx, (%rsi)
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_2:
	movl	%ecx, %r9d
	movl	4(%rsi), %ecx
	movl	$1, %r10d
	shll	%cl, %r10d
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.3:
	movq	32(%rsi), %r11
	movq	(%r11), %rax
	movq	(%rax), %rax
	cmpl	$1, %r9d
	je	LBB0_13
## %bb.4:
	movl	%r9d, %edi
	andl	$-2, %edi
	xorl	%ebx, %ebx
	movq	_RXE_BUF_PER_MAP@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r11), %rax
	addq	$8, %r11
	movq	(%rax), %rax
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	16(%r15), %rdx
	addl	$-2, %edi
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r15
	movl	(%rdx), %edx
	movl	%edx, 4(%rax)
	movl	%r10d, (%rax)
	incl	%ebx
	cmpl	(%r14), %ebx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r11), %rax
	addq	$8, %r11
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r15), %edx
	movl	%edx, 4(%rax)
	movl	%r10d, (%rax)
	incl	%ebx
	cmpl	(%r14), %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rax
	jmp	LBB0_11
LBB0_12:
	addq	$16, %r15
	movq	%r15, %rdx
LBB0_13:
	testb	$1, %r9b
	je	LBB0_15
## %bb.14:
	movl	(%rdx), %edx
	movl	%edx, 4(%rax)
	movl	%r10d, (%rax)
LBB0_15:
	movq	%r8, 24(%rsi)
	movq	%r8, 16(%rsi)
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	movl	%r9d, 8(%rsi)
	movq	_RXE_MEM_STATE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rsi)
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RXE_BUF_PER_MAP,4,2            ## @RXE_BUF_PER_MAP
	.comm	_RXE_MEM_STATE_VALID,4,2        ## @RXE_MEM_STATE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_mem_map_pages              ; -- Begin function rxe_mem_map_pages
	.p2align	2
_rxe_mem_map_pages:                     ; @rxe_mem_map_pages
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, w3
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldr	w8, [x1, #4]
	cmp	w3, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w9, #0
	mov	w10, #1
	lsl	w10, w10, w8
	ldr	x11, [x1, #32]
	ldr	x12, [x11]
	ldr	x13, [x12]
Lloh3:
	adrp	x12, _RXE_BUF_PER_MAP@GOTPAGE
Lloh4:
	ldr	x12, [x12, _RXE_BUF_PER_MAP@GOTPAGEOFF]
	mov	x14, x3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
	ldr	x13, [x11, #8]!
	ldr	x13, [x13]
	subs	w14, w14, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x2], #8
	stp	w10, w15, [x13]
	add	w9, w9, #1
	ldr	w15, [x12]
	cmp	w9, w15
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x13, x13, #8
	subs	w14, w14, #1
	b.ne	LBB0_5
LBB0_7:
	mov	w0, #0
	stp	x4, x4, [x1, #16]
	lsl	w8, w3, w8
Lloh5:
	adrp	x9, _RXE_MEM_STATE_VALID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RXE_MEM_STATE_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [x1, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RXE_BUF_PER_MAP,4,2            ; @RXE_BUF_PER_MAP
	.comm	_RXE_MEM_STATE_VALID,4,2        ; @RXE_MEM_STATE_VALID
.subsections_via_symbols
