	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function os_pages_map
_os_pages_map:                          ## @os_pages_map
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_os_page@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ALIGNMENT_ADDR2BASE
	xorl	%edi, %edi
	cmpq	%r12, %rax
	sete	%dil
	callq	_assert
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ALIGNMENT_CEILING
	xorl	%edi, %edi
	cmpq	%r14, %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	_os_overcommits@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$1, (%r15)
	jmp	LBB0_4
LBB0_2:
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	_PAGES_PROT_DECOMMIT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_PAGES_PROT_COMMIT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	_mmap_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_9
## %bb.6:
	testq	%r12, %r12
	je	LBB0_10
## %bb.7:
	cmpq	%r12, %rbx
	je	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_os_pages_unmap
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	testq	%rbx, %rbx
	sete	%al
	testq	%r12, %r12
	sete	%cl
	orb	%al, %cl
	cmpq	%r12, %rbx
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_os_page,4,2                    ## @os_page
	.comm	_os_overcommits,8,3             ## @os_overcommits
	.comm	_PAGES_PROT_COMMIT,4,2          ## @PAGES_PROT_COMMIT
	.comm	_PAGES_PROT_DECOMMIT,4,2        ## @PAGES_PROT_DECOMMIT
	.comm	_mmap_flags,4,2                 ## @mmap_flags
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_MEM_COMMIT,4,2                 ## @MEM_COMMIT
	.comm	_MEM_RESERVE,4,2                ## @MEM_RESERVE
	.comm	_PAGE_READWRITE,4,2             ## @PAGE_READWRITE
	.no_dead_strip	_os_pages_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function os_pages_map
_os_pages_map:                          ; @os_pages_map
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _os_page@GOTPAGE
Lloh1:
	ldr	x22, [x22, _os_page@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ALIGNMENT_ADDR2BASE
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ALIGNMENT_CEILING
	cmp	x0, x20
	cset	w0, eq
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
Lloh2:
	adrp	x8, _os_overcommits@GOTPAGE
Lloh3:
	ldr	x8, [x8, _os_overcommits@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x21]
Lloh5:
	adrp	x8, _PAGES_PROT_COMMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGES_PROT_COMMIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _PAGES_PROT_COMMIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGES_PROT_COMMIT@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh9:
	adrp	x10, _PAGES_PROT_DECOMMIT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PAGES_PROT_DECOMMIT@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x10, x8, eq
LBB0_3:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _mmap_flags@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmap_flags@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh14:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_7
; %bb.4:
	cbz	x19, LBB0_8
; %bb.5:
	cmp	x21, x19
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_os_pages_unmap
LBB0_7:
	mov	x21, #0
LBB0_8:
	cmp	x19, #0
	ccmp	x21, #0, #4, ne
	ccmp	x21, x19, #4, ne
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_os_page,4,2                    ; @os_page
	.comm	_os_overcommits,8,3             ; @os_overcommits
	.comm	_PAGES_PROT_COMMIT,4,2          ; @PAGES_PROT_COMMIT
	.comm	_PAGES_PROT_DECOMMIT,4,2        ; @PAGES_PROT_DECOMMIT
	.comm	_mmap_flags,4,2                 ; @mmap_flags
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_MEM_COMMIT,4,2                 ; @MEM_COMMIT
	.comm	_MEM_RESERVE,4,2                ; @MEM_RESERVE
	.comm	_PAGE_READWRITE,4,2             ; @PAGE_READWRITE
	.no_dead_strip	_os_pages_map
.subsections_via_symbols
