	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_dump_maps
_prof_dump_maps:                        ## @prof_dump_maps
	.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	%edi, %r14d
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	xorl	%eax, %eax
	callq	_prof_getpid
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_prof_open_maps
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_prof_open_maps
	movl	%eax, %r12d
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	callq	_prof_dump_write
	movl	$1, %ebx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	movq	_prof_dump_buf_end@GOTPCREL(%rip), %rbx
	movq	_PROF_DUMP_BUFSIZE@GOTPCREL(%rip), %r13
	movq	_prof_dump_buf@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	(%r13), %rdx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(,%rax,4), %rsi
	addq	(%r15), %rsi
	subq	%rax, %rdx
	movl	%r12d, %edi
	callq	_malloc_read_fd
	testq	%rax, %rax
	jle	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	movq	(%r13), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %edi
	callq	_prof_dump_flush
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%r12d, %edi
	callq	_close
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/%d/task/%d/maps"

L_.str.1:                               ## @.str.1
	.asciz	"/proc/%d/maps"

L_.str.2:                               ## @.str.2
	.asciz	"\nMAPPED_LIBRARIES:\n"

	.comm	_prof_dump_buf_end,8,3          ## @prof_dump_buf_end
	.comm	_PROF_DUMP_BUFSIZE,8,3          ## @PROF_DUMP_BUFSIZE
	.comm	_prof_dump_buf,8,3              ## @prof_dump_buf
	.no_dead_strip	_prof_dump_maps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_dump_maps
_prof_dump_maps:                        ; @prof_dump_maps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	bl	_prof_getpid
	mov	x21, x0
	mov	x8, x0
	stp	x8, x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_prof_open_maps
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_prof_open_maps
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_14
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_prof_dump_write
	cbz	w19, LBB0_4
; %bb.3:
	cbnz	x0, LBB0_10
LBB0_4:
	mov	x0, #0
Lloh9:
	adrp	x21, _prof_dump_buf_end@GOTPAGE
Lloh10:
	ldr	x21, [x21, _prof_dump_buf_end@GOTPAGEOFF]
Lloh11:
	adrp	x22, _PROF_DUMP_BUFSIZE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _PROF_DUMP_BUFSIZE@GOTPAGEOFF]
Lloh13:
	adrp	x23, _prof_dump_buf@GOTPAGE
Lloh14:
	ldr	x23, [x23, _prof_dump_buf@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x23]
	add	x1, x10, x8, lsl #2
	sub	x2, x9, x8
	mov	x0, x20
	bl	_malloc_read_fd
	cmp	x0, #0
	b.le	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x8, x8, x0
	cmp	x8, x9
	str	x8, [x21]
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_prof_dump_flush
	cbz	w19, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x0, LBB0_5
LBB0_10:
	mov	w19, #1
	b	LBB0_12
LBB0_11:
	mov	w19, #0
LBB0_12:
	mov	x0, x20
	bl	_close
LBB0_13:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_14:
	mov	w19, #1
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/%d/task/%d/maps"

l_.str.1:                               ; @.str.1
	.asciz	"/proc/%d/maps"

l_.str.2:                               ; @.str.2
	.asciz	"\nMAPPED_LIBRARIES:\n"

	.comm	_prof_dump_buf_end,8,3          ; @prof_dump_buf_end
	.comm	_PROF_DUMP_BUFSIZE,8,3          ; @PROF_DUMP_BUFSIZE
	.comm	_prof_dump_buf,8,3              ; @prof_dump_buf
	.no_dead_strip	_prof_dump_maps
.subsections_via_symbols
