	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_string_ref
_add_string_ref:                        ## @add_string_ref
	.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
	movl	$0, -36(%rbp)
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	movq	_UT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rdx, %rax
	je	LBB0_7
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	cmpq	%r12, %rax
	jne	LBB0_5
LBB0_4:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
LBB0_5:
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_is_string_at
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r15
	movq	(%r14), %rdi
	movq	_R_ANAL_REF_TYPE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_r_anal_xrefs_set
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_r_name_filter
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_sdb_fmt
	movq	%rax, %r12
	movl	8(%r14), %edi
	movq	_R_FLAGS_FS_STRINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_r_flag_space_push
	movl	8(%r14), %edi
	movl	-36(%rbp), %ecx
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_r_flag_set
	movl	8(%r14), %edi
	callq	_r_flag_space_pop
	movq	(%r14), %rdi
	movl	-36(%rbp), %ecx
	addl	%ebx, %ecx
	movl	$115, %esi
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_r_meta_add
	movq	%r15, %rdi
	callq	_free
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UT64_MAX,8,3                   ## @UT64_MAX
	.comm	_R_ANAL_REF_TYPE_DATA,4,2       ## @R_ANAL_REF_TYPE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"str.%s"

	.comm	_R_FLAGS_FS_STRINGS,4,2         ## @R_FLAGS_FS_STRINGS
	.no_dead_strip	_add_string_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_string_ref
_add_string_ref:                        ; @add_string_ref
	.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
	str	wzr, [sp, #12]
	cbz	x2, LBB0_7
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, _UT64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.eq	LBB0_7
; %bb.2:
	mov	x22, x1
	mov	x20, x0
	cbz	x1, LBB0_4
; %bb.3:
	cmp	x8, x22
	b.ne	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x22, [x8]
LBB0_5:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_is_string_at
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _R_ANAL_REF_TYPE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_ANAL_REF_TYPE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x22
	mov	x2, x19
	bl	_r_anal_xrefs_set
	mov	x0, x21
	mov	w1, #-1
	bl	_r_name_filter
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_sdb_fmt
	mov	x22, x0
	ldr	w0, [x20, #8]
Lloh8:
	adrp	x8, _R_FLAGS_FS_STRINGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R_FLAGS_FS_STRINGS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_r_flag_space_push
	ldr	w0, [x20, #8]
	ldr	w3, [sp, #12]
	mov	x1, x22
	mov	x2, x19
	bl	_r_flag_set
	ldr	w0, [x20, #8]
	bl	_r_flag_space_pop
	ldr	x0, [x20]
	ldr	w8, [sp, #12]
	add	w3, w8, w19
	mov	w1, #115
	mov	x2, x19
	mov	x4, x21
	bl	_r_meta_add
	mov	x0, x21
	bl	_free
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UT64_MAX,8,3                   ; @UT64_MAX
	.comm	_R_ANAL_REF_TYPE_DATA,4,2       ; @R_ANAL_REF_TYPE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"str.%s"

	.comm	_R_FLAGS_FS_STRINGS,4,2         ; @R_FLAGS_FS_STRINGS
	.no_dead_strip	_add_string_ref
.subsections_via_symbols
