	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dof_prune
_dof_prune:                             ## @dof_prune
	.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
	movq	%rdi, %r14
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	leaq	-72(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_fatal
LBB0_5:
	movq	-72(%rbp), %rbx
	leaq	1(%rbx), %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_fatal
LBB0_7:
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_read
	cmpq	%rbx, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_fatal
LBB0_9:
	movb	$0, (%r15,%rbx)
	movl	%r12d, %edi
	callq	_close
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_fatal
LBB0_11:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.12:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	cmpq	%rbx, %r14
	jae	LBB0_30
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	leaq	(%r15,%r14), %rdi
	movl	$9, %edx
	leaq	L_.str.5(%rip), %rsi
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%r14, %r14
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$10, -1(%r14,%r15)
	jne	LBB0_29
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_error
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %r13
	subq	%r12, %r13
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	%r15, %r12
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_write
	cmpq	%r13, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_fatal
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%rbx, %r14
	jae	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, (%r15,%r14)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %r14
	jmp	LBB0_27
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	1(%r14), %r12
	cmpq	%rbx, %r12
	jae	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	%r13d
	jmp	LBB0_29
LBB0_30:
	subq	%r12, %rbx
	jbe	LBB0_33
## %bb.31:
	movq	%r15, %rsi
	addq	%r12, %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_write
	cmpq	%rbx, %rax
	je	LBB0_33
## %bb.32:
	leaq	L_.str.7(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_fatal
LBB0_33:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open %s"

L_.str.1:                               ## @.str.1
	.asciz	"failed to fstat %s"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate memory for %s"

L_.str.3:                               ## @.str.3
	.asciz	"failed to read %s"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
L_.str.4:                               ## @.str.4
	.asciz	"failed to open %s for writing"

L_.str.5:                               ## @.str.5
	.asciz	"dof-data-"

L_.str.6:                               ## @.str.6
	.asciz	"cleaned up old anonymous enabling in %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to write to %s"

	.no_dead_strip	_dof_prune
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dof_prune
_dof_prune:                             ; @dof_prune
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.1:
	mov	x22, x0
	add	x1, sp, #8
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_3:
	ldr	x21, [sp, #8]
	add	x0, x21, #1
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_read
	cmp	x0, x21
	b.eq	LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_7:
	strb	wzr, [x20, x21]
	mov	x0, x22
	bl	_close
Lloh9:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_9:
	cbz	x21, LBB0_29
; %bb.10:
	mov	w27, #0
	mov	x28, #0
	mov	x25, #0
Lloh17:
	adrp	x23, l_.str.5@PAGE
Lloh18:
	add	x23, x23, l_.str.5@PAGEOFF
Lloh19:
	adrp	x24, l_.str.6@PAGE
Lloh20:
	add	x24, x24, l_.str.6@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x28, x28, #1
	cmp	x28, x21
	b.hs	LBB0_26
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	add	x0, x20, x28
	mov	x1, x23
	mov	w2, #9
	bl	_strncmp
	cbnz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	x28, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x28, x20
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w27, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	subs	x26, x28, x25
	b.ne	LBB0_18
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_error
	subs	x26, x28, x25
	b.eq	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x1, x20, x25
	mov	x0, x22
	mov	x2, x26
	bl	_write
	cmp	x0, x26
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	x28, x21
	b.hs	LBB0_24
LBB0_21:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20, x28]
	cmp	w8, #10
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	x28, x28, #1
	cmp	x21, x28
	b.ne	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x28, x21
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x28, #1
	cmp	x25, x21
	b.hs	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w27, w27, #1
	b	LBB0_11
LBB0_26:
	subs	x21, x21, x25
	b.ls	LBB0_29
; %bb.27:
	add	x1, x20, x25
	mov	x0, x22
	mov	x2, x21
	bl	_write
	cmp	x0, x21
	b.eq	LBB0_29
; %bb.28:
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_29:
	mov	x0, x22
	bl	_close
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_free
LBB0_30:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _ENOENT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.31:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_32:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fatal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open %s"

l_.str.1:                               ; @.str.1
	.asciz	"failed to fstat %s"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate memory for %s"

l_.str.3:                               ; @.str.3
	.asciz	"failed to read %s"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
l_.str.4:                               ; @.str.4
	.asciz	"failed to open %s for writing"

l_.str.5:                               ; @.str.5
	.asciz	"dof-data-"

l_.str.6:                               ; @.str.6
	.asciz	"cleaned up old anonymous enabling in %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to write to %s"

	.no_dead_strip	_dof_prune
.subsections_via_symbols
