	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_object_text                ## -- Begin function add_object_text
	.p2align	4, 0x90
_add_object_text:                       ## @add_object_text
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_check_type
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_check_object_id
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	24(%rbx), %edi
	callq	_check_text_len
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	_write_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_no_changes@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	orq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	movq	_changes_memory@GOTPCREL(%rip), %r12
	subl	%eax, (%r12)
	movq	(%rbx), %rdi
	callq	_prepare_str
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	addl	%eax, (%r12)
	testq	%r15, %r15
	je	LBB0_5
## %bb.7:
	movq	_stat_global@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movslq	%ecx, %rdx
	movq	(%rax,%rdx,8), %rax
	incl	4(%rax)
	movl	8(%rbx), %ecx
	movq	_global_changes_st@GOTPCREL(%rip), %rdi
	movq	_global_changes_en@GOTPCREL(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %r8
	callq	_chg_list_add_string
	movq	_changes_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_5:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_only,8,3                 ## @write_only
	.comm	_no_changes,8,3                 ## @no_changes
	.comm	_changes_memory,4,2             ## @changes_memory
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"botva %s\n"

	.comm	_stat_global,8,3                ## @stat_global
	.comm	_global_changes_st,4,2          ## @global_changes_st
	.comm	_global_changes_en,4,2          ## @global_changes_en
	.comm	_changes_count,4,2              ## @changes_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_object_text                ; -- Begin function add_object_text
	.p2align	2
_add_object_text:                       ; @add_object_text
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x0, [x0, #16]
	bl	_check_type
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_check_object_id
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w0, [x19, #24]
	bl	_check_text_len
	cbz	w0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _write_only@GOTPAGE
Lloh1:
	ldr	x8, [x8, _write_only@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _no_changes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _no_changes@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_6
; %bb.4:
	bl	_dl_get_memory_used
Lloh6:
	adrp	x21, _changes_memory@GOTPAGE
Lloh7:
	ldr	x21, [x21, _changes_memory@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w8, w0
	str	w8, [x21]
	ldr	x0, [x19]
	bl	_prepare_str
	mov	x20, x0
	bl	_dl_get_memory_used
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
	cbz	x20, LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _stat_global@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stat_global@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x2, [x19, #16]
	sbfiz	x9, x2, #3, #32
	ldr	x8, [x8, x9]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	w3, [x19, #8]
Lloh11:
	adrp	x0, _global_changes_st@GOTPAGE
Lloh12:
	ldr	x0, [x0, _global_changes_st@GOTPAGEOFF]
Lloh13:
	adrp	x1, _global_changes_en@GOTPAGE
Lloh14:
	ldr	x1, [x1, _global_changes_en@GOTPAGEOFF]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x4, x20
	bl	_chg_list_add_string
Lloh15:
	adrp	x8, _changes_count@GOTPAGE
Lloh16:
	ldr	x8, [x8, _changes_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh17:
	adrp	x8, _verbosity@GOTPAGE
Lloh18:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_10:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_write_only,8,3                 ; @write_only
	.comm	_no_changes,8,3                 ; @no_changes
	.comm	_changes_memory,4,2             ; @changes_memory
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"botva %s\n"

	.comm	_stat_global,8,3                ; @stat_global
	.comm	_global_changes_st,4,2          ; @global_changes_st
	.comm	_global_changes_en,4,2          ; @global_changes_en
	.comm	_changes_count,4,2              ; @changes_count
.subsections_via_symbols
