	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_message                    ## -- Begin function add_message
	.p2align	4, 0x90
_add_message:                           ## @add_message
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	movq	_g@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rax,%rcx,4), %edi
	movq	_MAX_TEXT_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rcx
	callq	_snprintf
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	incq	%rax
	movq	_MAX_MESSAGES@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_g,8,3                          ## @g
	.comm	_MAX_TEXT_LENGTH,4,2            ## @MAX_TEXT_LENGTH
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_MAX_MESSAGES,4,2               ## @MAX_MESSAGES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_message                    ; -- Begin function add_message
	.p2align	2
_add_message:                           ; @add_message
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh2:
	adrp	x20, _g@GOTPAGE
Lloh3:
	ldr	x20, [x20, _g@GOTPAGEOFF]
	ldr	x8, [x20]
	ldp	x8, x9, [x8]
	ldr	w0, [x9, x8, lsl #2]
Lloh4:
	adrp	x8, _MAX_TEXT_LENGTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_TEXT_LENGTH@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_snprintf
	ldr	x8, [x20]
	ldr	x9, [x8]
	add	x9, x9, #1
Lloh9:
	adrp	x10, _MAX_MESSAGES@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_MESSAGES@GOTPAGEOFF]
Lloh11:
	ldrsw	x10, [x10]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	str	x9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_g,8,3                          ; @g
	.comm	_MAX_TEXT_LENGTH,4,2            ; @MAX_TEXT_LENGTH
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_MAX_MESSAGES,4,2               ; @MAX_MESSAGES
.subsections_via_symbols
