	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_save_panels_layout           ## -- Begin function r_save_panels_layout
	.p2align	4, 0x90
_r_save_panels_layout:                  ## @r_save_panels_layout
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	___show_status_input
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_R_STR_ISEMPTY
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___show_status                  ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	___create_panels_config_path
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pj_new
	movq	%rax, %r13
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	leaq	L_.str.7(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_pj_o
	movq	8(%r14), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_pj_ks
	movq	8(%r14), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_pj_ks
	movq	(%r14), %rax
	movl	12(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_pj_kn
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_pj_kn
	movq	(%r14), %rax
	movl	4(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_pj_kn
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_pj_kn
	movq	%r13, %rdi
	callq	_pj_end
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_4
LBB0_5:
	leaq	L_.str.6(%rip), %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_r_sandbox_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_pj_drain
	movq	%rax, %r14
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_fprintf
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_fclose
	movq	___init_menu_saved_layout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.9(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	___update_menu
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	___show_status
LBB0_7:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Name for the layout: "

L_.str.1:                               ## @.str.1
	.asciz	"Name can't be empty!"

L_.str.2:                               ## @.str.2
	.asciz	"Title"

L_.str.3:                               ## @.str.3
	.asciz	"Cmd"

L_.str.4:                               ## @.str.4
	.asciz	"x"

L_.str.5:                               ## @.str.5
	.asciz	"y"

L_.str.6:                               ## @.str.6
	.asciz	"w"

L_.str.7:                               ## @.str.7
	.asciz	"h"

L_.str.8:                               ## @.str.8
	.asciz	"%s\n"

L_.str.9:                               ## @.str.9
	.asciz	"File.Load Layout.Saved"

	.comm	___init_menu_saved_layout,4,2   ## @__init_menu_saved_layout
L_.str.10:                              ## @.str.10
	.asciz	"Panels layout saved!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_save_panels_layout           ; -- Begin function r_save_panels_layout
	.p2align	2
_r_save_panels_layout:                  ; @r_save_panels_layout
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	___show_status_input
	mov	x20, x0
	bl	_R_STR_ISEMPTY
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	b	___show_status
LBB0_3:
	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
LBB0_4:
	mov	x0, x20
	bl	___create_panels_config_path
	stp	x19, x0, [sp]                   ; 16-byte Folded Spill
	ldr	x22, [x19]
	bl	_pj_new
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w23, #0
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh6:
	adrp	x25, l_.str.3@PAGE
Lloh7:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh8:
	adrp	x26, l_.str.4@PAGE
Lloh9:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh10:
	adrp	x27, l_.str.5@PAGE
Lloh11:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh12:
	adrp	x28, l_.str.6@PAGE
Lloh13:
	add	x28, x28, l_.str.6@PAGEOFF
Lloh14:
	adrp	x20, l_.str.7@PAGE
Lloh15:
	add	x20, x20, l_.str.7@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	___get_panel
	mov	x19, x0
	mov	x0, x21
	bl	_pj_o
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x24
	bl	_pj_ks
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x25
	bl	_pj_ks
	ldr	x8, [x19]
	ldr	w2, [x8, #12]
	mov	x0, x21
	mov	x1, x26
	bl	_pj_kn
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	x0, x21
	mov	x1, x27
	bl	_pj_kn
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x28
	bl	_pj_kn
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_pj_kn
	mov	x0, x21
	bl	_pj_end
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lt	LBB0_6
LBB0_7:
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x22
	bl	_r_sandbox_fopen
	cbz	x0, LBB0_9
; %bb.8:
	mov	x20, x0
	mov	x0, x21
	bl	_pj_drain
	mov	x19, x0
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fprintf
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_fclose
Lloh20:
	adrp	x8, ___init_menu_saved_layout@GOTPAGE
Lloh21:
	ldr	x8, [x8, ___init_menu_saved_layout@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x0, x19
	bl	___update_menu
Lloh25:
	adrp	x1, l_.str.10@PAGE
Lloh26:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	___show_status
LBB0_9:
	mov	x0, x22
	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
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Name for the layout: "

l_.str.1:                               ; @.str.1
	.asciz	"Name can't be empty!"

l_.str.2:                               ; @.str.2
	.asciz	"Title"

l_.str.3:                               ; @.str.3
	.asciz	"Cmd"

l_.str.4:                               ; @.str.4
	.asciz	"x"

l_.str.5:                               ; @.str.5
	.asciz	"y"

l_.str.6:                               ; @.str.6
	.asciz	"w"

l_.str.7:                               ; @.str.7
	.asciz	"h"

l_.str.8:                               ; @.str.8
	.asciz	"%s\n"

l_.str.9:                               ; @.str.9
	.asciz	"File.Load Layout.Saved"

	.comm	___init_menu_saved_layout,4,2   ; @__init_menu_saved_layout
l_.str.10:                              ; @.str.10
	.asciz	"Panels layout saved!"

.subsections_via_symbols
