	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotRemoveConsoleMessage        ## -- Begin function BotRemoveConsoleMessage
	.p2align	4, 0x90
_BotRemoveConsoleMessage:               ## @BotRemoveConsoleMessage
	.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
	movl	%esi, %ebx
	callq	_BotChatStateFromHandle
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	addq	$8, %rax
	movq	8(%r14), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rdi
	movq	8(%rcx), %rcx
	cmpl	%ebx, (%rdi)
	jne	LBB0_2
## %bb.4:
	movq	16(%rdi), %rdx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	%rdx, 16(%rcx)
	movq	16(%rdi), %rdx
	jmp	LBB0_7
LBB0_6:
	movq	%rdx, 16(%r14)
LBB0_7:
	testq	%rdx, %rdx
	cmovneq	%rdx, %rax
	movq	%rcx, (%rax)
	callq	_FreeConsoleMessage
	decl	(%r14)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotRemoveConsoleMessage        ; -- Begin function BotRemoveConsoleMessage
	.p2align	2
_BotRemoveConsoleMessage:               ; @BotRemoveConsoleMessage
	.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	x20, x1
	bl	_BotChatStateFromHandle
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x8, x0
	ldr	x9, [x8, #8]!
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x9
	ldr	x9, [x9, #8]
	ldr	w10, [x0]
	cmp	w10, w20
	b.ne	LBB0_2
; %bb.4:
	ldr	x10, [x0, #16]
	cbz	x9, LBB0_6
; %bb.5:
	str	x10, [x9, #16]
	ldr	x10, [x0, #16]
	b	LBB0_7
LBB0_6:
	str	x10, [x19, #16]
LBB0_7:
	cmp	x10, #0
	csel	x8, x8, x10, eq
	str	x9, [x8]
	bl	_FreeConsoleMessage
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
