	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_add_content_elements       ## -- Begin function tui_add_content_elements
	.p2align	4, 0x90
_tui_add_content_elements:              ## @tui_add_content_elements
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	8(%r12), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	12(%r12), %esi
	movl	%r15d, %edi
	callq	_tui_alloc_content
	movq	%rax, (%r12)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.4:
	addl	%r14d, %r15d
	movslq	%r14d, %rbx
	movslq	%r15d, %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	callq	_xmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	12(%r12), %esi
	movq	%rax, %rdi
	callq	_init_content_element
	incl	8(%r12)
	incq	%rbx
	cmpq	%r15, %rbx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_tui_add_content_elements       ; -- Begin function tui_add_content_elements
	.p2align	2
_tui_add_content_elements:              ; @tui_add_content_elements
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w20, [x19, #8]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_tui_alloc_content
	mov	w20, #0
	str	x0, [x19]
	cbz	x0, LBB0_8
LBB0_3:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.4:
	add	w8, w20, w21
	sxtw	x21, w20
	sxtw	x22, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	bl	_xmalloc
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	str	x0, [x8, x21, lsl #3]
	ldr	w1, [x19, #12]
	bl	_init_content_element
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	x21, x21, #1
	cmp	x21, x22
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	w20, #-1
LBB0_8:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
