	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etcsystem_add
_etcsystem_add:                         ## @etcsystem_add
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_g_etcfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_ofile@GOTPCREL(%rip), %r15
	movl	%edi, (%r15)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	_g_ofp@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_2:
	movq	_g_etcbegin@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_oprintf
	movq	_g_etc@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movl	$8, %ebx
	leaq	L_.str.2(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_oprintf
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jne	LBB0_4
LBB0_5:
	movq	_g_dtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-208(%rbp), %rsi
	movl	$19, %edx
	callq	_dtrace_provider_modules
	movl	%eax, %r13d
	movslq	%eax, %rbx
	cmpl	$19, %ebx
	jbe	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -208(%rbp,%rbx,8)
	testl	%r13d, %r13d
	jns	LBB0_8
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -208(%rbp,%rbx,8)
LBB0_8:
	incl	%r13d
	xorl	%ebx, %ebx
	leaq	L_.str.5(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-208(%rbp,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_oprintf
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_9
LBB0_10:
	movq	_g_etcend@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_oprintf
	movq	(%r12), %rdi
	callq	_fclose
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
LBB0_12:
	movl	(%r15), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_error
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_etcfile,4,2                  ## @g_etcfile
	.comm	_g_ofile,4,2                    ## @g_ofile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

	.comm	_g_ofp,8,3                      ## @g_ofp
L_.str.1:                               ## @.str.1
	.asciz	"failed to open output file '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.comm	_g_etcbegin,8,3                 ## @g_etcbegin
	.comm	_g_etc,8,3                      ## @g_etc
	.comm	_g_dtp,4,2                      ## @g_dtp
L_.str.3:                               ## @.str.3
	.asciz	"unexpectedly large number of modules!"

L_.str.4:                               ## @.str.4
	.asciz	"dtrace"

L_.str.5:                               ## @.str.5
	.asciz	"forceload: drv/%s\n"

	.comm	_g_etcend,8,3                   ## @g_etcend
	.comm	_EOF,8,3                        ## @EOF
L_.str.6:                               ## @.str.6
	.asciz	"failed to close output file '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"added forceload directives to %s\n"

	.no_dead_strip	_etcsystem_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etcsystem_add
_etcsystem_add:                         ; @etcsystem_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _g_etcfile@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_etcfile@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x20, _g_ofile@GOTPAGE
Lloh7:
	ldr	x20, [x20, _g_ofile@GOTPAGEOFF]
	str	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
Lloh10:
	adrp	x21, _g_ofp@GOTPAGE
Lloh11:
	ldr	x21, [x21, _g_ofp@GOTPAGEOFF]
	str	x0, [x21]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh14:
	adrp	x8, _g_etcbegin@GOTPAGE
Lloh15:
	ldr	x8, [x8, _g_etcbegin@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_oprintf
Lloh19:
	adrp	x22, _g_etc@GOTPAGE
Lloh20:
	ldr	x22, [x22, _g_etc@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.3:
	mov	w23, #8
Lloh21:
	adrp	x19, l_.str.2@PAGE
Lloh22:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_oprintf
	ldr	x8, [x22]
	ldr	x1, [x8, x23]
	add	x23, x23, #8
	cbnz	x1, LBB0_4
LBB0_5:
Lloh23:
	adrp	x8, _g_dtp@GOTPAGE
Lloh24:
	ldr	x8, [x8, _g_dtp@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x19, sp, #8
	add	x1, sp, #8
	mov	w2, #19
	bl	_dtrace_provider_modules
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	cmp	w0, #19
	b.ls	LBB0_7
; %bb.6:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
Lloh28:
	adrp	x8, l_.str.4@PAGE
Lloh29:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19, x22, lsl #3]
	tbz	w22, #31, LBB0_8
	b	LBB0_10
LBB0_7:
Lloh30:
	adrp	x8, l_.str.4@PAGE
Lloh31:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19, x22, lsl #3]
LBB0_8:
	add	w22, w22, #1
	add	x23, sp, #8
Lloh32:
	adrp	x19, l_.str.5@PAGE
Lloh33:
	add	x19, x19, l_.str.5@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23], #8
	mov	x0, x19
	bl	_oprintf
	subs	x22, x22, #1
	b.ne	LBB0_9
LBB0_10:
Lloh34:
	adrp	x8, _g_etcend@GOTPAGE
Lloh35:
	ldr	x8, [x8, _g_etcend@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_oprintf
	ldr	x0, [x21]
	bl	_fclose
Lloh39:
	adrp	x8, _EOF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh42:
	adrp	x0, l_.str.6@PAGE
Lloh43:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fatal
LBB0_12:
	ldr	w1, [x20]
Lloh44:
	adrp	x0, l_.str.7@PAGE
Lloh45:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_error
	ldur	x8, [x29, #-56]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_g_etcfile,4,2                  ; @g_etcfile
	.comm	_g_ofile,4,2                    ; @g_ofile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

	.comm	_g_ofp,8,3                      ; @g_ofp
l_.str.1:                               ; @.str.1
	.asciz	"failed to open output file '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.comm	_g_etcbegin,8,3                 ; @g_etcbegin
	.comm	_g_etc,8,3                      ; @g_etc
	.comm	_g_dtp,4,2                      ; @g_dtp
l_.str.3:                               ; @.str.3
	.asciz	"unexpectedly large number of modules!"

l_.str.4:                               ; @.str.4
	.asciz	"dtrace"

l_.str.5:                               ; @.str.5
	.asciz	"forceload: drv/%s\n"

	.comm	_g_etcend,8,3                   ; @g_etcend
	.comm	_EOF,8,3                        ; @EOF
l_.str.6:                               ; @.str.6
	.asciz	"failed to close output file '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"added forceload directives to %s\n"

	.no_dead_strip	_etcsystem_add
.subsections_via_symbols
