	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mem_ptr                        ## -- Begin function mem_ptr
	.p2align	4, 0x90
_mem_ptr:                               ## @mem_ptr
	.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
	movl	%edx, %r12d
	movq	%rdi, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_PAGE
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mem_pt
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	testq	%r13, %r13
	je	LBB0_14
LBB0_9:
	movq	_MEM_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_14
## %bb.10:
	movl	(%r13), %eax
	movq	_P_WRITE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.11:
	movq	_P_COW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	8(%r13), %rax
	movslq	4(%r13), %r12
	addq	(%rax), %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movq	_MAP_ANONYMOUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movq	_P_COW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	notl	%r9d
	andl	(%r13), %r9d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_pt_map
	jmp	LBB0_13
LBB0_1:
	movq	%r15, %rcx
	incq	%rcx
	movq	_MEM_PAGES@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	(%r13), %rax
	cmpq	%rax, %rcx
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mem_pt
	leaq	1(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%r13), %rax
LBB0_5:
	cmpq	%rax, %rbx
	jge	LBB0_15
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mem_pt
	movq	_P_GROWSDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.7:
	movq	_P_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_pt_map_nothing
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mem_pt
	movq	%rax, %r13
	testq	%r13, %r13
	jne	LBB0_9
LBB0_14:
	testq	%r13, %r13
	je	LBB0_15
LBB0_13:
	movq	8(%r13), %rax
	movslq	4(%r13), %rbx
	addq	(%rax), %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_PGOFFSET
	cltq
	addq	%rbx, %rax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_PAGES,8,3                  ## @MEM_PAGES
	.comm	_P_GROWSDOWN,4,2                ## @P_GROWSDOWN
	.comm	_P_WRITE,4,2                    ## @P_WRITE
	.comm	_MEM_WRITE,4,2                  ## @MEM_WRITE
	.comm	_P_COW,4,2                      ## @P_COW
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_ANONYMOUS,4,2              ## @MAP_ANONYMOUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mem_ptr                        ; -- Begin function mem_ptr
	.p2align	2
_mem_ptr:                               ; @mem_ptr
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_PAGE
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mem_pt
	mov	x23, x0
	cbz	x0, LBB0_6
; %bb.1:
	cbz	x23, LBB0_13
LBB0_2:
Lloh0:
	adrp	x8, _MEM_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEM_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_13
; %bb.3:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _P_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _P_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.4:
Lloh6:
	adrp	x25, _P_COW@GOTPAGE
Lloh7:
	ldr	x25, [x25, _P_COW@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.5:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x23, #4]
	add	x22, x8, x9
Lloh8:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh10:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _MAP_PRIVATE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MAP_PRIVATE@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh18:
	ldr	w8, [x10]
Lloh19:
	adrp	x9, _MAP_ANONYMOUS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAP_ANONYMOUS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	w4, #0
	mov	w5, #0
	bl	_mmap
	mov	x24, x0
	ldr	w2, [x26]
	mov	x1, x22
	bl	_memcpy
	ldr	w8, [x23]
	ldr	w9, [x25]
	bic	w5, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	mov	x3, x24
	mov	w4, #0
	bl	_pt_map
	b	LBB0_14
LBB0_6:
	add	x8, x21, #1
Lloh22:
	adrp	x24, _MEM_PAGES@GOTPAGE
Lloh23:
	ldr	x24, [x24, _MEM_PAGES@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	ldr	x8, [x24]
	cmp	x23, x8
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_mem_pt
	add	x8, x23, #1
	cbz	x0, LBB0_7
; %bb.9:
	ldr	x8, [x24]
LBB0_10:
	cmp	x23, x8
	b.ge	LBB0_15
; %bb.11:
	mov	x0, x20
	mov	x1, x23
	bl	_mem_pt
	ldr	w9, [x0]
Lloh24:
	adrp	x8, _P_GROWSDOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _P_GROWSDOWN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_15
; %bb.12:
Lloh27:
	adrp	x9, _P_WRITE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _P_WRITE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_pt_map_nothing
	mov	x0, x20
	mov	x1, x21
	bl	_mem_pt
	mov	x23, x0
	cbnz	x23, LBB0_2
LBB0_13:
	cbz	x23, LBB0_15
LBB0_14:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldrsw	x9, [x23, #4]
	add	x20, x8, x9
	mov	x0, x19
	bl	_PGOFFSET
	add	x0, x20, w0, sxtw
	b	LBB0_16
LBB0_15:
	mov	x0, #0
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_PAGES,8,3                  ; @MEM_PAGES
	.comm	_P_GROWSDOWN,4,2                ; @P_GROWSDOWN
	.comm	_P_WRITE,4,2                    ; @P_WRITE
	.comm	_MEM_WRITE,4,2                  ; @MEM_WRITE
	.comm	_P_COW,4,2                      ; @P_COW
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_ANONYMOUS,4,2              ; @MAP_ANONYMOUS
.subsections_via_symbols
