	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etcsystem_prune
_etcsystem_prune:                       ## @etcsystem_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	_g_etcfile@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	leaq	-72(%rbp), %rsi
	movl	%r12d, %edi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_4:
	movq	-72(%rbp), %rbx
	leaq	1(%rbx), %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_6:
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_read
	cmpq	%rbx, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_8:
	movb	$0, (%r15,%rbx)
	movl	%r12d, %edi
	callq	_close
	movq	_g_etcbegin@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_26
## %bb.9:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %rbx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_11:
	leaq	1(%r12), %rdi
	movq	(%r13), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_13:
	movq	_g_etcend@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_strstr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	cmpq	%rbx, %r12
	jbe	LBB0_17
LBB0_16:
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_17:
	movq	(%r13), %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_memmove
	movq	%r14, %rdi
	callq	_strlen
	addl	$80, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_alloca
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.8(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_snprintf
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_open
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.18:
	leaq	L_.str.9(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_19:
	movq	%r15, %rdi
	callq	_strlen
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_write
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jge	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_unlink
	leaq	L_.str.10(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fatal
LBB0_21:
	movl	%r13d, %edi
	callq	_close
	movq	-64(%rbp), %r13
	movq	-56(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_chown
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r12, %rdi
	callq	_unlink
	leaq	L_.str.11(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_fatal
LBB0_23:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rename
	cmpl	$-1, %eax
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.12(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fatal
LBB0_25:
	leaq	L_.str.13(%rip), %rdi
	movq	%r14, %rsi
	callq	_error
LBB0_26:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_14:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fatal
	cmpq	%rbx, %r12
	ja	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_g_etcfile,8,3                  ## @g_etcfile
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.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	_g_etcbegin,8,3                 ## @g_etcbegin
L_.str.4:                               ## @.str.4
	.asciz	"embedded nul byte in %s; manual repair of %s required\n"

L_.str.5:                               ## @.str.5
	.asciz	"multiple start sentinels in %s; manual repair of %s required\n"

	.comm	_g_etcend,8,3                   ## @g_etcend
L_.str.6:                               ## @.str.6
	.asciz	"missing end sentinel in %s; manual repair of %s required\n"

L_.str.7:                               ## @.str.7
	.asciz	"end sentinel preceeds start sentinel in %s; manual repair of %s required\n"

L_.str.8:                               ## @.str.8
	.asciz	"%s.dtrace.%d"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
L_.str.9:                               ## @.str.9
	.asciz	"failed to create %s"

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

L_.str.11:                              ## @.str.11
	.asciz	"failed to chown(2) %s to uid %d, gid %d"

L_.str.12:                              ## @.str.12
	.asciz	"rename of %s to %s failed"

L_.str.13:                              ## @.str.13
	.asciz	"cleaned up forceload directives in %s\n"

	.no_dead_strip	_etcsystem_prune
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etcsystem_prune
_etcsystem_prune:                       ; @etcsystem_prune
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, _g_etcfile@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_etcfile@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_2:
	add	x1, sp, #16
	mov	x0, x21
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_4:
	ldr	x22, [sp, #16]
	add	x0, x22, #1
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_read
	cmp	x0, x22
	b.eq	LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_8:
	strb	wzr, [x20, x22]
	mov	x0, x21
	bl	_close
Lloh14:
	adrp	x23, _g_etcbegin@GOTPAGE
Lloh15:
	ldr	x23, [x23, _g_etcbegin@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_25
; %bb.9:
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	cmp	x22, w0, sxtw
	b.eq	LBB0_11
; %bb.10:
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_11:
	add	x0, x21, #1
	ldr	x1, [x23]
	bl	_strstr
	cbz	x0, LBB0_13
; %bb.12:
	str	x19, [sp]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_13:
Lloh20:
	adrp	x23, _g_etcend@GOTPAGE
Lloh21:
	ldr	x23, [x23, _g_etcend@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x20
	bl	_strstr
	mov	x22, x0
	cbz	x0, LBB0_26
; %bb.14:
	cmp	x21, x22
	b.ls	LBB0_16
LBB0_15:
	str	x19, [sp]
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_16:
	ldr	x0, [x23]
	bl	_strlen
	add	w8, w0, #1
	add	x22, x22, w8, sxtw
	mov	x0, x22
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x21
	mov	x1, x22
	bl	_memmove
	mov	x0, x19
	bl	_strlen
	add	w8, w0, #80
	sxtw	x22, w8
	mov	x0, x22
	bl	_alloca
	mov	x21, x0
	bl	_getpid
	mov	x4, x0
Lloh24:
	adrp	x2, l_.str.8@PAGE
Lloh25:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	bl	_snprintf
Lloh26:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w8, [sp, #40]
	str	x8, [sp]
	mov	x0, x21
	bl	_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh35:
	adrp	x0, l_.str.9@PAGE
Lloh36:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x21
	bl	_fatal
LBB0_18:
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_write
	mov	x23, x0
	mov	x0, x20
	bl	_strlen
	cmp	w23, w0
	b.ge	LBB0_20
; %bb.19:
	mov	x0, x21
	bl	_unlink
Lloh37:
	adrp	x0, l_.str.10@PAGE
Lloh38:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x21
	bl	_fatal
LBB0_20:
	mov	x0, x22
	bl	_close
	ldp	x23, x22, [sp, #24]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_chown
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x21
	bl	_unlink
	stp	x22, x23, [sp]
Lloh39:
	adrp	x0, l_.str.11@PAGE
Lloh40:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, x21
	bl	_fatal
LBB0_22:
	mov	x0, x21
	mov	x1, x19
	bl	_rename
	cmn	w0, #1
	b.ne	LBB0_24
; %bb.23:
	str	x19, [sp]
Lloh41:
	adrp	x0, l_.str.12@PAGE
Lloh42:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x21
	bl	_fatal
LBB0_24:
Lloh43:
	adrp	x0, l_.str.13@PAGE
Lloh44:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_25:
	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
	add	sp, sp, #112
	b	_free
LBB0_26:
	str	x19, [sp]
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_fatal
	cmp	x21, x22
	b.hi	LBB0_15
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_g_etcfile,8,3                  ; @g_etcfile
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.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	_g_etcbegin,8,3                 ; @g_etcbegin
l_.str.4:                               ; @.str.4
	.asciz	"embedded nul byte in %s; manual repair of %s required\n"

l_.str.5:                               ; @.str.5
	.asciz	"multiple start sentinels in %s; manual repair of %s required\n"

	.comm	_g_etcend,8,3                   ; @g_etcend
l_.str.6:                               ; @.str.6
	.asciz	"missing end sentinel in %s; manual repair of %s required\n"

l_.str.7:                               ; @.str.7
	.asciz	"end sentinel preceeds start sentinel in %s; manual repair of %s required\n"

l_.str.8:                               ; @.str.8
	.asciz	"%s.dtrace.%d"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
l_.str.9:                               ; @.str.9
	.asciz	"failed to create %s"

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

l_.str.11:                              ; @.str.11
	.asciz	"failed to chown(2) %s to uid %d, gid %d"

l_.str.12:                              ; @.str.12
	.asciz	"rename of %s to %s failed"

l_.str.13:                              ; @.str.13
	.asciz	"cleaned up forceload directives in %s\n"

	.no_dead_strip	_etcsystem_prune
.subsections_via_symbols
