	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_load_panels_layout           ## -- Begin function r_load_panels_layout
	.p2align	4, 0x90
_r_load_panels_layout:                  ## @r_load_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdi)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	___get_panels_config_file_from_dir
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_r_file_slurp
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_free
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	___panel_all_clear
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	___set_curnode
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	___parse_panels_config
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$10, %esi
	callq	_r_str_split
	testl	%eax, %eax
	jle	LBB0_13
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	addq	%rax, %r14
	incq	%r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_R_STR_ISEMPTY
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sdb_json_get_str
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_sdb_json_get_str
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_r_str_arg_unescape
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_sdb_json_get_str
	movq	%rax, %r12
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_sdb_json_get_str
	movq	%rax, %rbx
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_sdb_json_get_str
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_sdb_json_get_str
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rsi
	callq	___get_panel
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_atoi
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_atoi
	movl	%eax, %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_atoi
	movl	%eax, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_atoi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	___set_geometry
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	___init_panel_param
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_r_str_endswith
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	leaq	L_.str.8(%rip), %rbx
	movq	%rbx, %rsi
	callq	_r_str_dup
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rcx), %rdi
	movq	%rbx, %rsi
	callq	_r_str_dup
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_r_strbuf_new
	movq	%rax, %rbx
	movq	_help_msg_panels@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_r_core_visual_append_help
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_r_strbuf_drain
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	___set_read_only
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movl	$0, %r12d
	je	LBB0_15
## %bb.14:
	movl	$1, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	xorl	%edx, %edx
	callq	___set_refresh_all
	jmp	LBB0_15
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movq	%r14, %rsi
	callq	_r_str_newf
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	___show_status
	movq	%rbx, %rdi
	callq	_free
LBB0_15:
	movl	%r12d, %eax
	addq	$72, %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
	.asciz	"No saved layout found for the name: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Layout is empty: %s"

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	"Help"

L_.str.9:                               ## @.str.9
	.asciz	"Visual Ascii Art Panels"

	.comm	_help_msg_panels,4,2            ## @help_msg_panels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_load_panels_layout           ; -- Begin function r_load_panels_layout
	.p2align	2
_r_load_panels_layout:                  ; @r_load_panels_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x21, x1
	mov	x0, x1
	bl	___get_panels_config_file_from_dir
	cbz	x0, LBB0_10
; %bb.2:
	mov	x22, x0
	mov	x1, #0
	bl	_r_file_slurp
	mov	x20, x0
	mov	x0, x22
	bl	_free
	cbz	x20, LBB0_13
; %bb.3:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x21, [x19]
	mov	x0, x21
	bl	___panel_all_clear
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	str	xzr, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	___set_curnode
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	___parse_panels_config
	mov	x22, x0
	mov	w1, #10
	bl	_r_str_split
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x23, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x8, x0, x22
	add	x22, x8, #1
	subs	w23, w23, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_R_STR_ISEMPTY
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sdb_json_get_str
	mov	x27, x0
	mov	x0, x22
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sdb_json_get_str
	mov	x28, x0
	bl	_r_str_arg_unescape
	mov	x0, x22
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sdb_json_get_str
	mov	x24, x0
	mov	x0, x22
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_sdb_json_get_str
	mov	x20, x0
	mov	x0, x22
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_sdb_json_get_str
	mov	x25, x0
	mov	x0, x22
Lloh10:
	adrp	x1, l_.str.7@PAGE
Lloh11:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_sdb_json_get_str
	mov	x19, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x1, [x0]
	bl	___get_panel
	mov	x26, x0
	ldr	x21, [x0, #8]
	mov	x0, x24
	bl	_atoi
	mov	x24, x0
	mov	x0, x20
	bl	_atoi
	mov	x20, x0
	mov	x0, x25
	bl	_atoi
	mov	x25, x0
	mov	x0, x19
	bl	_atoi
	mov	x4, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	x3, x25
	bl	___set_geometry
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	bl	___init_panel_param
	mov	x0, x28
Lloh12:
	adrp	x1, l_.str.8@PAGE
Lloh13:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_r_str_endswith
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldr	x0, [x8, #8]
Lloh14:
	adrp	x19, l_.str.8@PAGE
Lloh15:
	add	x19, x19, l_.str.8@PAGEOFF
	mov	x1, x19
	bl	_r_str_dup
	ldr	x8, [x26]
	str	x0, [x8, #8]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_r_str_dup
	ldr	x8, [x26]
	str	x0, [x8]
	mov	x0, #0
	bl	_r_strbuf_new
	mov	x27, x0
Lloh16:
	adrp	x8, _help_msg_panels@GOTPAGE
Lloh17:
	ldr	x8, [x8, _help_msg_panels@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x1, l_.str.9@PAGE
Lloh20:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_r_core_visual_append_help
	cbz	x27, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	bl	_r_strbuf_drain
	mov	x1, x0
	mov	x0, x26
	bl	___set_read_only
	b	LBB0_5
LBB0_10:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_free
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.12:
	mov	w20, #1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w1, #1
	mov	w2, #0
	bl	___set_refresh_all
	b	LBB0_16
LBB0_13:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	mov	x1, x21
	bl	_r_str_newf
	mov	x20, x0
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x20
	bl	___show_status
	mov	x0, x20
	bl	_free
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No saved layout found for the name: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Layout is empty: %s"

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	"Help"

l_.str.9:                               ; @.str.9
	.asciz	"Visual Ascii Art Panels"

	.comm	_help_msg_panels,4,2            ; @help_msg_panels
.subsections_via_symbols
