	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_link                       ## -- Begin function add_link
	.p2align	4, 0x90
_add_link:                              ## @add_link
	.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, %r13
	movl	%edi, %r15d
	movq	8(%rsi), %rdi
	callq	_find_prog
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$3, %r15d
	jl	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movl	%r15d, %r12d
	movl	$2, %ebx
	movq	_list_mode@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_add_string
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13,%rbx,8), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	jmp	LBB0_5
LBB0_7:
	movq	_curfilename@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_linenum@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r13), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	movq	_goterror@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%d: no prog %s previously declared, skipping link"

	.comm	_curfilename,4,2                ## @curfilename
	.comm	_linenum,4,2                    ## @linenum
	.comm	_goterror,4,2                   ## @goterror
	.comm	_list_mode,8,3                  ## @list_mode
L_.str.1:                               ## @.str.1
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_link                       ; -- Begin function add_link
	.p2align	2
_add_link:                              ; @add_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x21, x0
	ldr	x0, [x1, #8]
	bl	_find_prog
	cbz	x0, LBB0_6
; %bb.1:
	cmp	w21, #3
	b.lt	LBB0_7
; %bb.2:
	mov	x19, x0
	mov	w8, w21
	add	x21, x20, #16
	sub	x22, x8, #2
Lloh0:
	adrp	x23, _list_mode@GOTPAGE
Lloh1:
	ldr	x23, [x23, _list_mode@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21], #8
	mov	x0, x19
	bl	_add_string
	subs	x22, x22, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x21]
	mov	x0, x20
	bl	_printf
	b	LBB0_3
LBB0_6:
Lloh4:
	adrp	x8, _curfilename@GOTPAGE
Lloh5:
	ldr	x8, [x8, _curfilename@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _linenum@GOTPAGE
Lloh8:
	ldr	x8, [x8, _linenum@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	x3, [x20, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh12:
	adrp	x8, _goterror@GOTPAGE
Lloh13:
	ldr	x8, [x8, _goterror@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%d: no prog %s previously declared, skipping link"

	.comm	_curfilename,4,2                ; @curfilename
	.comm	_linenum,4,2                    ; @linenum
	.comm	_goterror,4,2                   ; @goterror
	.comm	_list_mode,8,3                  ; @list_mode
l_.str.1:                               ; @.str.1
	.asciz	"%s\n"

.subsections_via_symbols
