	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readmap
_readmap:                               ## @readmap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-44(%rbp), %rsi
	callq	_kinfo_getvmmap
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_err
LBB0_2:
	movq	$0, -56(%rbp)
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	leaq	-56(%rbp), %r12
	xorl	%ebx, %ebx
	movq	_KVME_PROT_READ@GOTPCREL(%rip), %r13
	movq	_KVME_FLAG_NOCOREDUMP@GOTPCREL(%rip), %rsi
	movq	_KVME_TYPE_DEAD@GOTPCREL(%rip), %rdi
	movq	_KVME_TYPE_UNKNOWN@GOTPCREL(%rip), %r8
	movq	_pflags@GOTPCREL(%rip), %r9
	movq	_PFLAGS_FULL@GOTPCREL(%rip), %r10
	movq	_KVME_TYPE_DEFAULT@GOTPCREL(%rip), %r11
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	addq	$8, %r12
	movl	-44(%rbp), %eax
	movq	_KVME_TYPE_UNKNOWN@GOTPCREL(%rip), %r8
	movq	_pflags@GOTPCREL(%rip), %r9
	movq	_PFLAGS_FULL@GOTPCREL(%rip), %r10
	movq	_KVME_TYPE_DEFAULT@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$32, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_20
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r14d
	testl	%r14d, (%r13)
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rsi), %ecx
	testl	%ecx, 4(%r15)
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rcx
	cmpq	(%rdi), %rcx
	je	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%r8), %rcx
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r10), %edx
	testl	%edx, (%r9)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%r11), %rcx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_KVME_TYPE_VNODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_KVME_TYPE_SWAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_KVME_TYPE_PHYS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
	movl	(%r15), %r14d
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movups	16(%r15), %xmm0
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VM_PROT_READ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movups	%xmm0, 16(%r12)
	movl	%eax, (%r12)
	movq	_KVME_PROT_EXEC@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	movq	_KVME_FLAG_NOCOREDUMP@GOTPCREL(%rip), %rsi
	movq	_KVME_TYPE_DEAD@GOTPCREL(%rip), %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_VM_PROT_EXECUTE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	jmp	LBB0_18
LBB0_20:
	movq	-56(%rbp), %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_3:
	xorl	%ebx, %ebx
LBB0_21:
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot retrieve mappings for %u process"

	.comm	_KVME_PROT_READ,4,2             ## @KVME_PROT_READ
	.comm	_KVME_FLAG_NOCOREDUMP,4,2       ## @KVME_FLAG_NOCOREDUMP
	.comm	_KVME_TYPE_DEAD,8,3             ## @KVME_TYPE_DEAD
	.comm	_KVME_TYPE_UNKNOWN,8,3          ## @KVME_TYPE_UNKNOWN
	.comm	_pflags,4,2                     ## @pflags
	.comm	_PFLAGS_FULL,4,2                ## @PFLAGS_FULL
	.comm	_KVME_TYPE_DEFAULT,8,3          ## @KVME_TYPE_DEFAULT
	.comm	_KVME_TYPE_VNODE,8,3            ## @KVME_TYPE_VNODE
	.comm	_KVME_TYPE_SWAP,8,3             ## @KVME_TYPE_SWAP
	.comm	_KVME_TYPE_PHYS,8,3             ## @KVME_TYPE_PHYS
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_VM_PROT_READ,4,2               ## @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_KVME_PROT_EXEC,4,2             ## @KVME_PROT_EXEC
	.comm	_VM_PROT_EXECUTE,4,2            ## @VM_PROT_EXECUTE
	.no_dead_strip	_readmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readmap
_readmap:                               ; @readmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	add	x1, sp, #20
	bl	_kinfo_getvmmap
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_err
LBB0_2:
	str	xzr, [sp, #24]
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.3:
	mov	x22, #0
Lloh2:
	adrp	x23, _KVME_PROT_READ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KVME_PROT_READ@GOTPAGEOFF]
Lloh4:
	adrp	x24, _KVME_FLAG_NOCOREDUMP@GOTPAGE
Lloh5:
	ldr	x24, [x24, _KVME_FLAG_NOCOREDUMP@GOTPAGEOFF]
Lloh6:
	adrp	x26, _KVME_TYPE_DEAD@GOTPAGE
Lloh7:
	ldr	x26, [x26, _KVME_TYPE_DEAD@GOTPAGEOFF]
Lloh8:
	adrp	x27, _KVME_TYPE_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x27, [x27, _KVME_TYPE_UNKNOWN@GOTPAGEOFF]
Lloh10:
	adrp	x25, _pflags@GOTPAGE
Lloh11:
	ldr	x25, [x25, _pflags@GOTPAGEOFF]
Lloh12:
	adrp	x15, _PFLAGS_FULL@GOTPAGE
Lloh13:
	ldr	x15, [x15, _PFLAGS_FULL@GOTPAGEOFF]
Lloh14:
	adrp	x16, _KVME_TYPE_DEFAULT@GOTPAGE
Lloh15:
	ldr	x16, [x16, _KVME_TYPE_DEFAULT@GOTPAGEOFF]
Lloh16:
	adrp	x17, _KVME_TYPE_VNODE@GOTPAGE
Lloh17:
	ldr	x17, [x17, _KVME_TYPE_VNODE@GOTPAGEOFF]
Lloh18:
	adrp	x0, _KVME_TYPE_SWAP@GOTPAGE
Lloh19:
	ldr	x0, [x0, _KVME_TYPE_SWAP@GOTPAGEOFF]
	add	x20, sp, #24
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x21, [x20]
	add	x20, x21, #8
	ldr	w8, [sp, #20]
Lloh20:
	adrp	x15, _PFLAGS_FULL@GOTPAGE
Lloh21:
	ldr	x15, [x15, _PFLAGS_FULL@GOTPAGEOFF]
Lloh22:
	adrp	x16, _KVME_TYPE_DEFAULT@GOTPAGE
Lloh23:
	ldr	x16, [x16, _KVME_TYPE_DEFAULT@GOTPAGEOFF]
Lloh24:
	adrp	x17, _KVME_TYPE_VNODE@GOTPAGE
Lloh25:
	ldr	x17, [x17, _KVME_TYPE_VNODE@GOTPAGEOFF]
Lloh26:
	adrp	x0, _KVME_TYPE_SWAP@GOTPAGE
Lloh27:
	ldr	x0, [x0, _KVME_TYPE_SWAP@GOTPAGEOFF]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	add	x19, x19, #32
	cmp	x22, w8, sxtw
	b.ge	LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w28, [x19]
	ldr	w9, [x23]
	tst	w9, w28
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x19, #4]
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x26]
	ldr	x11, [x27]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x25]
	ldr	w11, [x15]
	tst	w11, w10
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x16]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x17]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x0]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh28:
	adrp	x10, _KVME_TYPE_PHYS@GOTPAGE
Lloh29:
	ldr	x10, [x10, _KVME_TYPE_PHYS@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x21, x0
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
	ldr	w28, [x19]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x19, #16]
	stp	x9, x8, [x21, #16]
Lloh33:
	adrp	x8, _VM_PROT_READ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VM_PROT_READ@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh39:
	adrp	x9, _KVME_PROT_EXEC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _KVME_PROT_EXEC@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w28
	b.eq	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh42:
	adrp	x9, _VM_PROT_EXECUTE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _VM_PROT_EXECUTE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_4
LBB0_18:
	ldr	x20, [sp, #24]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_20
LBB0_19:
	mov	x20, #0
LBB0_20:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot retrieve mappings for %u process"

	.comm	_KVME_PROT_READ,4,2             ; @KVME_PROT_READ
	.comm	_KVME_FLAG_NOCOREDUMP,4,2       ; @KVME_FLAG_NOCOREDUMP
	.comm	_KVME_TYPE_DEAD,8,3             ; @KVME_TYPE_DEAD
	.comm	_KVME_TYPE_UNKNOWN,8,3          ; @KVME_TYPE_UNKNOWN
	.comm	_pflags,4,2                     ; @pflags
	.comm	_PFLAGS_FULL,4,2                ; @PFLAGS_FULL
	.comm	_KVME_TYPE_DEFAULT,8,3          ; @KVME_TYPE_DEFAULT
	.comm	_KVME_TYPE_VNODE,8,3            ; @KVME_TYPE_VNODE
	.comm	_KVME_TYPE_SWAP,8,3             ; @KVME_TYPE_SWAP
	.comm	_KVME_TYPE_PHYS,8,3             ; @KVME_TYPE_PHYS
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_VM_PROT_READ,4,2               ; @VM_PROT_READ
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_KVME_PROT_EXEC,4,2             ; @KVME_PROT_EXEC
	.comm	_VM_PROT_EXECUTE,4,2            ; @VM_PROT_EXECUTE
	.no_dead_strip	_readmap
.subsections_via_symbols
