	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rotate_panels                ## -- Begin function __rotate_panels
	.p2align	4, 0x90
___rotate_panels:                       ## @__rotate_panels
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	___get_panel
	movq	%rax, %r15
	movl	(%r13), %esi
	decl	%esi
	movq	%r13, %rdi
	callq	___get_panel
	movq	%rax, %r12
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.6:
	movq	(%r12), %rax
	movl	(%r13), %ebx
	cmpl	$2, %ebx
	jl	LBB0_10
## %bb.7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incl	%ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	movq	%r13, %rdi
	callq	___get_panel
	movq	%rax, %r12
	leal	-3(%rbx), %esi
	movq	%r13, %rdi
	callq	___get_panel
	movq	(%rax), %rax
	movq	%rax, (%r12)
	decl	%ebx
	cmpl	$2, %ebx
	ja	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	(%r15), %rax
	cmpl	$2, (%r13)
	jl	LBB0_2
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	movq	%rax, %r15
	incl	%ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	(%r13), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jl	LBB0_4
## %bb.5:
	movq	%r12, %r15
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_2:
	movq	%r12, %r15
LBB0_10:
	movq	%rax, (%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___set_refresh_all              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rotate_panels                ; -- Begin function __rotate_panels
	.p2align	2
___rotate_panels:                       ; @__rotate_panels
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x1
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #0
	bl	___get_panel
	mov	x21, x0
	ldr	w8, [x20]
	sub	w1, w8, #1
	mov	x0, x20
	bl	___get_panel
	mov	x22, x0
	cbz	w23, LBB0_4
; %bb.1:
	ldr	x24, [x22]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.2:
	add	w23, w8, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w23, #2
	mov	x0, x20
	bl	___get_panel
	mov	x22, x0
	sub	w1, w23, #3
	mov	x0, x20
	bl	___get_panel
	ldr	x8, [x0]
	str	x8, [x22]
	sub	w23, w23, #1
	cmp	w23, #2
	b.hi	LBB0_3
	b	LBB0_8
LBB0_4:
	ldr	x24, [x21]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	___get_panel
	mov	x23, x0
	add	w21, w21, #1
	mov	x0, x20
	mov	x1, x21
	bl	___get_panel
	ldr	x8, [x0]
	str	x8, [x23]
	ldr	w8, [x20]
	sub	w8, w8, #1
	cmp	w21, w8
	b.lt	LBB0_6
LBB0_7:
	mov	x21, x22
LBB0_8:
	str	x24, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	___set_refresh_all
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
