	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_section                    ## -- Begin function add_section
	.p2align	4, 0x90
_add_section:                           ## @add_section
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$61, %esi
	callq	_strchr
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_2:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	%r15, %rbx
	subq	%r12, %rbx
	leal	1(%rbx), %edi
	callq	_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	movq	(%r13), %rax
LBB0_6:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	movb	$0, (%rax,%rcx)
	incq	%r15
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movl	-48(%rbp), %edi
	movl	%edi, 8(%r13)
	testl	%edi, %edi
	jle	LBB0_17
## %bb.9:
	callq	_malloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_13:
	movq	16(%r13), %rdi
	movl	8(%r13), %edx
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	movq	%r12, %rdi
	callq	_fclose
	jmp	LBB0_18
LBB0_17:
	movq	$0, 16(%r13)
LBB0_18:
	leaq	4(%r14), %rdi
	movq	_sadd_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_STAILQ_INSERT_TAIL
	movq	_SEC_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"illegal format for --add-section option"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failed"

L_.str.2:                               ## @.str.2
	.asciz	"stat failed"

L_.str.3:                               ## @.str.3
	.asciz	"r"

L_.str.4:                               ## @.str.4
	.asciz	"can not open %s"

L_.str.5:                               ## @.str.5
	.asciz	"fread failed"

	.comm	_sadd_list,4,2                  ## @sadd_list
	.comm	_SEC_ADD,4,2                    ## @SEC_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_section                    ; -- Begin function add_section
	.p2align	2
_add_section:                           ; @add_section
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #61
	bl	_strchr
	mov	x22, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_2:
	mov	w0, #24
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
	sub	x23, x22, x21
	add	w0, w23, #1
	bl	_malloc
	str	x0, [x20]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	ldr	x0, [x20]
LBB0_6:
	mov	x1, x21
	mov	x2, x23
	bl	_strncpy
	ldr	x8, [x20]
	strb	wzr, [x8, w23, sxtw]
	add	x21, x22, #1
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_8:
	ldr	w0, [sp, #8]
	str	w0, [x20, #8]
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.9:
	bl	_malloc
	str	x0, [x20, #16]
Lloh20:
	adrp	x23, _EXIT_FAILURE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _EXIT_FAILURE@GOTPAGEOFF]
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x23]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_11:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_fopen
	mov	x22, x0
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x23]
	str	x21, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_13:
	ldr	x0, [x20, #16]
	ldr	w2, [x20, #8]
	mov	w1, #1
	mov	x3, x22
	bl	_fread
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_ferror
	cbz	x0, LBB0_16
LBB0_15:
	ldr	w0, [x23]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_16:
	mov	x0, x22
	bl	_fclose
	b	LBB0_18
LBB0_17:
	str	xzr, [x20, #16]
LBB0_18:
	add	x0, x19, #4
Lloh30:
	adrp	x8, _sadd_list@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sadd_list@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_STAILQ_INSERT_TAIL
Lloh33:
	adrp	x8, _SEC_ADD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SEC_ADD@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"illegal format for --add-section option"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failed"

l_.str.2:                               ; @.str.2
	.asciz	"stat failed"

l_.str.3:                               ; @.str.3
	.asciz	"r"

l_.str.4:                               ; @.str.4
	.asciz	"can not open %s"

l_.str.5:                               ; @.str.5
	.asciz	"fread failed"

	.comm	_sadd_list,4,2                  ; @sadd_list
	.comm	_SEC_ADD,4,2                    ; @SEC_ADD
.subsections_via_symbols
