	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_source_or_disasm_and_command
_show_source_or_disasm_and_command:     ## @show_source_or_disasm_and_command
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_tui_current_layout
	cmpl	%r12d, %eax
	je	LBB0_18
## %bb.1:
	xorl	%eax, %eax
	callq	_tui_locator_win_info_ptr
	movq	%rax, %r14
	movq	%rax, -56(%rbp)
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_tui_term_height
	cltq
	imulq	$1431655766, %rax, %r15         ## imm = 0x55555556
	movq	%r15, %rax
	shrq	$63, %rax
	shrq	$32, %r15
	addl	%eax, %r15d
LBB0_4:
	xorl	%eax, %eax
	callq	_tui_term_height
	movl	%eax, %ebx
	movq	_SRC_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, %eax
	jne	LBB0_5
## %bb.6:
	movq	_TUI_SRC_WIN@GOTPCREL(%rip), %r13
	jmp	LBB0_7
LBB0_5:
	movq	_TUI_DISASM_WIN@GOTPCREL(%rip), %r13
LBB0_7:
	subl	%r15d, %ebx
	cmpq	$0, (%r13)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.12:
	movq	_LOCATOR_WIN@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_tui_term_width
	leal	-1(%rbx), %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	$2, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	callq	_init_gen_win_info
	movq	_TRUE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	movq	(%r13), %rax
	leaq	16(%rax), %rdi
	movl	32(%rax), %esi
	movl	20(%rax), %ecx
	movq	8(%rax), %rax
	movl	4(%rax), %r8d
	movl	%r15d, %edx
	xorl	%r9d, %r9d
	callq	_init_gen_win_info
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	movq	_EXEC_INFO_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_init_gen_win_info
	movq	(%r14), %rax
	movq	(%r13), %rdi
	movq	%rax, 40(%rdi)
	addq	$16, %rdi
	callq	_tui_make_visible
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	callq	_tui_make_visible
	jmp	LBB0_13
LBB0_8:
	leal	-1(%rbx), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	cmpl	%r12d, %eax
	jne	LBB0_10
## %bb.9:
	callq	_make_source_window
	jmp	LBB0_11
LBB0_10:
	callq	_make_disasm_window
LBB0_11:
	movq	_LOCATOR_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_tui_term_width
	movq	_DONT_BOX_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	leaq	-56(%rbp), %rdi
	movl	%r15d, %esi
	movl	$2, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	callq	_init_and_make_win
LBB0_13:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	-56(%rbp), %rdi
	callq	_tui_make_visible
	xorl	%eax, %eax
	callq	_tui_show_locator_content
	movq	(%r13), %rdi
	callq	_tui_show_source_content
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.16:
	movl	16(%rdi), %esi
	movl	(%rdi), %edx
	movl	4(%rdi), %ecx
	movl	8(%rdi), %r8d
	movl	12(%rdi), %r9d
	callq	_init_gen_win_info
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdi
	movl	%eax, 20(%rdi)
	callq	_tui_make_visible
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_make_command_window
	movq	(%rbx), %rdi
	callq	_tui_refresh_win
LBB0_17:
	movl	%r12d, %edi
	callq	_tui_set_current_layout_to
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUI_CMD_WIN,8,3                ## @TUI_CMD_WIN
	.comm	_SRC_COMMAND,4,2                ## @SRC_COMMAND
	.comm	_TUI_SRC_WIN,8,3                ## @TUI_SRC_WIN
	.comm	_TUI_DISASM_WIN,8,3             ## @TUI_DISASM_WIN
	.comm	_LOCATOR_WIN,4,2                ## @LOCATOR_WIN
	.comm	_DONT_BOX_WINDOW,4,2            ## @DONT_BOX_WINDOW
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_EXEC_INFO_WIN,4,2              ## @EXEC_INFO_WIN
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_show_source_or_disasm_and_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_source_or_disasm_and_command
_show_source_or_disasm_and_command:     ; @show_source_or_disasm_and_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_tui_current_layout
	cmp	w0, w19
	b.eq	LBB0_14
; %bb.1:
	bl	_tui_locator_win_info_ptr
	mov	x24, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x20, _TUI_CMD_WIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TUI_CMD_WIN@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w21, [x8]
	b	LBB0_4
LBB0_3:
	bl	_tui_term_height
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w21, w8, w9
LBB0_4:
	bl	_tui_term_height
	sub	w22, w0, w21
Lloh2:
	adrp	x8, _SRC_COMMAND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SRC_COMMAND@GOTPAGEOFF]
Lloh4:
	adrp	x9, _TUI_DISASM_WIN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TUI_DISASM_WIN@GOTPAGEOFF]
Lloh6:
	adrp	x10, _TUI_SRC_WIN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TUI_SRC_WIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	x23, x10, x9, eq
	ldr	x9, [x23]
Lloh9:
	adrp	x27, _TRUE@GOTPAGE
Lloh10:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _LOCATOR_WIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOCATOR_WIN@GOTPAGEOFF]
Lloh13:
	ldr	w25, [x8]
	bl	_tui_term_width
	mov	x3, x0
	sub	w26, w22, #1
	mov	x0, x24
	mov	x1, x25
	mov	w2, #2
	mov	w4, #0
	mov	x5, x26
	bl	_init_gen_win_info
	ldr	x8, [x27]
	ldr	x9, [x23]
	str	x8, [x9]
	ldr	x8, [x23]
	add	x0, x8, #16
	ldr	w1, [x8, #32]
	ldr	w3, [x8, #20]
	ldr	x8, [x8, #8]
	ldr	w4, [x8, #4]
	mov	x2, x26
	mov	w5, #0
	bl	_init_gen_win_info
	ldr	x8, [x23]
	ldr	x0, [x8, #8]
Lloh14:
	adrp	x8, _EXEC_INFO_WIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXEC_INFO_WIN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x26
	mov	w3, #3
	mov	w4, #0
	mov	w5, #0
	bl	_init_gen_win_info
	ldr	x8, [x27]
	ldr	x9, [x23]
	str	x8, [x9, #40]
	add	x0, x9, #16
	bl	_tui_make_visible
	ldr	x8, [x23]
	ldr	x0, [x8, #8]
	bl	_tui_make_visible
	ldr	x8, [x23]
	cbnz	x8, LBB0_10
	b	LBB0_13
LBB0_6:
	sub	w24, w22, #1
	mov	x0, x23
	mov	x1, x24
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
	mov	w2, #0
	bl	_make_source_window
	b	LBB0_9
LBB0_8:
	mov	w2, #0
	bl	_make_disasm_window
LBB0_9:
Lloh17:
	adrp	x8, _LOCATOR_WIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOCATOR_WIN@GOTPAGEOFF]
Lloh19:
	ldr	w25, [x8]
	bl	_tui_term_width
	mov	x3, x0
Lloh20:
	adrp	x8, _DONT_BOX_WINDOW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DONT_BOX_WINDOW@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	x1, x25
	mov	w2, #2
	mov	w4, #0
	mov	x5, x24
	bl	_init_and_make_win
	ldr	x8, [x23]
	cbz	x8, LBB0_13
LBB0_10:
	ldr	x9, [x27]
	str	x9, [x8]
	ldr	x0, [sp, #8]
	bl	_tui_make_visible
	bl	_tui_show_locator_content
	ldr	x0, [x23]
	bl	_tui_show_source_content
	ldr	x0, [x20]
	cbz	x0, LBB0_12
; %bb.11:
	ldp	w5, w1, [x0, #12]
	ldp	w2, w3, [x0]
	ldr	w4, [x0, #8]
	bl	_init_gen_win_info
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	x0, [x20]
	str	w8, [x0, #20]
	bl	_tui_make_visible
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_make_command_window
	ldr	x0, [x20]
	bl	_tui_refresh_win
LBB0_13:
	mov	x0, x19
	bl	_tui_set_current_layout_to
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TUI_CMD_WIN,8,3                ; @TUI_CMD_WIN
	.comm	_SRC_COMMAND,4,2                ; @SRC_COMMAND
	.comm	_TUI_SRC_WIN,8,3                ; @TUI_SRC_WIN
	.comm	_TUI_DISASM_WIN,8,3             ; @TUI_DISASM_WIN
	.comm	_LOCATOR_WIN,4,2                ; @LOCATOR_WIN
	.comm	_DONT_BOX_WINDOW,4,2            ; @DONT_BOX_WINDOW
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_EXEC_INFO_WIN,4,2              ; @EXEC_INFO_WIN
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_show_source_or_disasm_and_command
.subsections_via_symbols
