	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___add_cmdf_panel               ## -- Begin function __add_cmdf_panel
	.p2align	4, 0x90
___add_cmdf_panel:                      ## @__add_cmdf_panel
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	___check_panel_num
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-44(%rbp), %rdi
	callq	_r_cons_get_size
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	movq	-8(%rcx,%rax,8), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movq	(%rax,%rcx,8), %r13
	movq	%rbx, %rdi
	callq	___adjust_side_panels
	movl	8(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___insert_panel
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	___get_panel
	movq	%rax, %r12
	movq	(%rax), %rdi
	movq	_PANEL_CONFIG_SIDEPANEL_W@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-44(%rbp), %r8d
	decl	%r8d
	xorl	%esi, %esi
	movl	$1, %edx
	callq	___set_geometry
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	___load_cmdf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	___set_cmd_str_cache
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	___set_curnode
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	___set_refresh_all
	movq	_PANEL_MODE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	___set_mode
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_PANEL_CONFIG_SIDEPANEL_W,4,2   ## @PANEL_CONFIG_SIDEPANEL_W
	.comm	_PANEL_MODE_DEFAULT,4,2         ## @PANEL_MODE_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___add_cmdf_panel               ; -- Begin function __add_cmdf_panel
	.p2align	2
___add_cmdf_panel:                      ; @__add_cmdf_panel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	bl	___check_panel_num
	cbz	w0, LBB0_2
; %bb.1:
	add	x0, sp, #12
	bl	_r_cons_get_size
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #3
	ldur	x8, [x8, #-8]
	ldr	x9, [x8, #16]
	ldr	x8, [x8]
	ldr	x23, [x9, x8, lsl #3]
	mov	x0, x19
	bl	___adjust_side_panels
	ldr	w2, [x23, #8]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	___insert_panel
	mov	x0, x22
	mov	w1, #0
	bl	___get_panel
	mov	x22, x0
	ldr	x0, [x0]
Lloh2:
	adrp	x8, _PANEL_CONFIG_SIDEPANEL_W@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PANEL_CONFIG_SIDEPANEL_W@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	ldr	w8, [sp, #12]
	sub	w4, w8, #1
	mov	w1, #0
	mov	w2, #1
	bl	___set_geometry
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	___load_cmdf
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	___set_cmd_str_cache
	mov	x0, x19
	mov	w1, #0
	bl	___set_curnode
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	___set_refresh_all
Lloh5:
	adrp	x8, _PANEL_MODE_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PANEL_MODE_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___set_mode
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_PANEL_CONFIG_SIDEPANEL_W,4,2   ; @PANEL_CONFIG_SIDEPANEL_W
	.comm	_PANEL_MODE_DEFAULT,4,2         ; @PANEL_MODE_DEFAULT
.subsections_via_symbols
