	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScreenManager_add              ## -- Begin function ScreenManager_add
	.p2align	4, 0x90
_ScreenManager_add:                     ## @ScreenManager_add
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_HORIZONTAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	%edx, %r15d
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_2
## %bb.3:
	movl	32(%rbx), %edi
	decq	%rsi
	callq	_Vector_get
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	leal	(%rcx,%rax), %r12d
	incl	%r12d
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	movq	_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	16(%rbx), %edx
	addl	20(%rbx), %edx
	testl	%r15d, %r15d
	jg	LBB0_6
## %bb.5:
	movq	_COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	24(%rbx), %eax
	addl	%r12d, %eax
	subl	%eax, %r15d
	addl	28(%rbx), %r15d
LBB0_6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_Panel_resize
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_Panel_move
LBB0_7:
	movl	32(%rbx), %edi
	movq	%r14, %rsi
	callq	_Vector_add
	movl	$1, 8(%r14)
	incq	8(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HORIZONTAL,8,3                 ## @HORIZONTAL
	.comm	_LINES,4,2                      ## @LINES
	.comm	_COLS,4,2                       ## @COLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScreenManager_add              ; -- Begin function ScreenManager_add
	.p2align	2
_ScreenManager_add:                     ; @ScreenManager_add
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HORIZONTAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HORIZONTAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x2
	ldr	x8, [x19, #8]
	subs	x1, x8, #1
	b.lt	LBB0_3
; %bb.2:
	ldr	w0, [x19, #32]
	bl	_Vector_get
	ldp	w8, w9, [x0]
	add	w8, w8, w9
	add	w22, w8, #1
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
Lloh3:
	adrp	x8, _LINES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #16]
	sub	w8, w8, w9
	add	w2, w8, w10
	cmp	w21, #0
	b.gt	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _COLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COLS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #24]
	add	w9, w22, w9
	sub	w8, w8, w9
	add	w21, w8, w10
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	bl	_Panel_resize
	ldr	w2, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_Panel_move
LBB0_7:
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_Vector_add
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HORIZONTAL,8,3                 ; @HORIZONTAL
	.comm	_LINES,4,2                      ; @LINES
	.comm	_COLS,4,2                       ; @COLS
.subsections_via_symbols
