	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___adjust_side_panels           ## -- Begin function __adjust_side_panels
	.p2align	4, 0x90
___adjust_side_panels:                  ## @__adjust_side_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rdi
	callq	_r_cons_get_size
	movq	(%rbx), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_PANEL_CONFIG_SIDEPANEL_W@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___get_panel
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rax), %ecx
	movslq	(%r15), %rdx
	cmpl	%edx, %ecx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rdx
	movq	%rdx, (%rax)
	subl	%edx, %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PANEL_CONFIG_SIDEPANEL_W,4,2   ## @PANEL_CONFIG_SIDEPANEL_W
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___adjust_side_panels           ; -- Begin function __adjust_side_panels
	.p2align	2
___adjust_side_panels:                  ; @__adjust_side_panels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #12
	bl	_r_cons_get_size
	ldr	x19, [x19]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x21, _PANEL_CONFIG_SIDEPANEL_W@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PANEL_CONFIG_SIDEPANEL_W@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	___get_panel
	ldr	x8, [x0]
	ldr	x9, [x8]
	cbnz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #8]
	ldrsw	x10, [x21]
	cmp	w9, w10
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x10, x10, #1
	str	x10, [x8]
	sub	w9, w9, w10
	str	w9, [x8, #8]
	b	LBB0_2
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PANEL_CONFIG_SIDEPANEL_W,4,2   ; @PANEL_CONFIG_SIDEPANEL_W
.subsections_via_symbols
