	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_alloc_source_buffer        ## -- Begin function tui_alloc_source_buffer
	.p2align	4, 0x90
_tui_alloc_source_buffer:               ## @tui_alloc_source_buffer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_13:
	movq	_TUI_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	movslq	4(%rdi), %r12
	decq	%r12
	movl	%r14d, %edi
	imull	%r12d, %edi
	callq	_xmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r13
	movq	_SRC_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_tui_alloc_content
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	callq	_xfree
LBB0_4:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_fputs_unfiltered
	xorl	%r13d, %r13d
LBB0_5:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.6:
	movq	8(%r15), %rcx
	leaq	-1(%r14), %rax
	movl	%r14d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_8:
	andl	$-4, %r14d
	leaq	(%r12,%r12), %r9
	leaq	(,%r12,4), %r10
	leaq	(%r12,%r12,2), %rax
	xorl	%edx, %edx
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	%rbx, (%rsi)
	leaq	(%rbx,%r12), %rsi
	movq	8(%rcx,%rdx,8), %rdi
	movq	%rsi, (%rdi)
	leaq	(%rbx,%r9), %rsi
	movq	16(%rcx,%rdx,8), %rdi
	movq	%rsi, (%rdi)
	leaq	(%rbx,%rax), %rsi
	movq	24(%rcx,%rdx,8), %rdi
	movq	%rsi, (%rdi)
	addq	$4, %rdx
	addq	%r10, %rbx
	cmpq	%rdx, %r14
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rcx,%rdx,8), %rax
	imulq	%r12, %rdx
	addq	%rdx, %r13
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	movq	%r13, (%rdx)
	incq	%rcx
	addq	%r12, %r13
	cmpq	%rcx, %r8
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_TUI_FAILURE,4,2                ## @TUI_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to Allocate Memory for Source or Disassembly Display.\n"

	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.comm	_SRC_WIN,4,2                    ## @SRC_WIN
	.comm	_TUI_SUCCESS,4,2                ## @TUI_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_alloc_source_buffer        ; -- Begin function tui_alloc_source_buffer
	.p2align	2
_tui_alloc_source_buffer:               ; @tui_alloc_source_buffer
	.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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldp	w19, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	x22, x8, #1
	mul	w0, w22, w19
	bl	_xmalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x8, _SRC_WIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRC_WIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tui_alloc_content
	str	x0, [x20, #8]
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_xfree
LBB0_4:
Lloh3:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fputs_unfiltered
	mov	x21, #0
LBB0_5:
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x8, [x20, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8], #8
	str	x21, [x9]
	add	x21, x21, x22
	subs	x19, x19, #1
	b.ne	LBB0_7
LBB0_8:
Lloh8:
	adrp	x8, _TUI_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TUI_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TUI_FAILURE,4,2                ; @TUI_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to Allocate Memory for Source or Disassembly Display.\n"

	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.comm	_SRC_WIN,4,2                    ; @SRC_WIN
	.comm	_TUI_SUCCESS,4,2                ; @TUI_SUCCESS
.subsections_via_symbols
