	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addsym2
_addsym2:                               ## @addsym2
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	%rsi, -40(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_findsym
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jns	LBB0_4
## %bb.1:
	movq	_nsyms@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_MAXSYMS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_errx
	movq	(%r12), %rax
LBB0_3:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r12)
LBB0_4:
	movq	_ignore@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rsi
	movl	%r15d, (%rcx,%rsi,4)
	movq	_symname@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%rsi,8)
	movq	_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, (%rax,%rsi,8)
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_debugsym
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nsyms,8,3                      ## @nsyms
	.comm	_MAXSYMS,8,3                    ## @MAXSYMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many symbols"

	.comm	_ignore,8,3                     ## @ignore
	.comm	_symname,8,3                    ## @symname
	.comm	_value,8,3                      ## @value
L_.str.1:                               ## @.str.1
	.asciz	"addsym"

	.no_dead_strip	_addsym2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addsym2
_addsym2:                               ; @addsym2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	x1, [sp, #8]
	add	x0, sp, #8
	bl	_findsym
	mov	x1, x0
	tbz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _nsyms@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nsyms@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh2:
	adrp	x8, _MAXSYMS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAXSYMS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x1, x8
	b.lt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_errx
	ldr	x1, [x22]
LBB0_3:
	add	x8, x1, #1
	str	x8, [x22]
LBB0_4:
Lloh7:
	adrp	x8, _ignore@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ignore@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	w21, [x8, w1, sxtw #2]
Lloh10:
	adrp	x8, _symname@GOTPAGE
Lloh11:
	ldr	x8, [x8, _symname@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	mov	x9, x1
	sbfiz	x9, x9, #3, #32
	str	x20, [x8, x9]
Lloh13:
	adrp	x8, _value@GOTPAGE
Lloh14:
	ldr	x8, [x8, _value@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x19, [x8, x9]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_debugsym
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_nsyms,8,3                      ; @nsyms
	.comm	_MAXSYMS,8,3                    ; @MAXSYMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many symbols"

	.comm	_ignore,8,3                     ; @ignore
	.comm	_symname,8,3                    ; @symname
	.comm	_value,8,3                      ; @value
l_.str.1:                               ; @.str.1
	.asciz	"addsym"

	.no_dead_strip	_addsym2
.subsections_via_symbols
