	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slk_intern_refresh
_slk_intern_refresh:                    ## @slk_intern_refresh
	.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
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	8(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_NumLabels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.3:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	_FALSE@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%rbx), %r13d
	callq	_SLK_LINES
	leaq	-1(%rax), %rsi
	movq	24(%rbx), %rax
	movl	12(%rax,%r15), %edx
	movl	%r13d, %edi
	callq	_wmove
	movl	32(%rbx), %r13d
	movl	36(%rbx), %edi
	callq	_AttrOf
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_wattrset
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movl	8(%rax,%r15), %esi
	callq	_waddstr
	movl	32(%rbx), %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_StdScreen
	movl	%eax, %edi
	callq	_WINDOW_ATTRS
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_wattrset
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx,%r15)
	movl	(%rbx), %eax
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$24, %r15
	cmpq	%rcx, %r14
	jge	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	movq	24(%rbx), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rcx,%r15)
	je	LBB0_15
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%rcx,%r15)
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_SLK_STDFMT
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_num_labels@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_plab_norm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rax
	movl	8(%rax,%r15), %edx
	leal	1(%r14), %esi
	callq	_TPARM_2
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_NCURSES_PUTP2
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	$4, %edi
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%rbx), %edi
	callq	_slk_paint_info
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_16:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_17
## %bb.18:
	cmpq	$0, 8(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	_label_off@GOTPCREL(%rip), %rax
	cmoveq	_label_on@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NCURSES_PUTP2                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NumLabels,4,2                  ## @NumLabels
	.comm	_num_labels,4,2                 ## @num_labels
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plab_norm"

	.comm	_plab_norm,4,2                  ## @plab_norm
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"label_off"

	.comm	_label_off,4,2                  ## @label_off
L_.str.2:                               ## @.str.2
	.asciz	"label_on"

	.comm	_label_on,4,2                   ## @label_on
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_hwlabel,4,2                    ## @hwlabel
	.comm	_hwlabelOnOff,4,2               ## @hwlabelOnOff
	.no_dead_strip	_slk_intern_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slk_intern_refresh
_slk_intern_refresh:                    ; @slk_intern_refresh
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, _NumLabels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NumLabels@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w8, [x23]
Lloh3:
	adrp	x25, _FALSE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x26, #0
	mov	x27, #0
	ldr	w20, [x19]
Lloh5:
	adrp	x28, _num_labels@GOTPAGE
Lloh6:
	ldr	x28, [x28, _num_labels@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w22, [x23, #32]
	mov	x0, x20
	bl	_SLK_LINES
	sub	x1, x0, #1
	ldr	x8, [x23, #24]
	add	x8, x8, x26
	ldr	w2, [x8, #12]
	mov	x0, x22
	bl	_wmove
	ldp	w22, w0, [x23, #32]
	bl	_AttrOf
	mov	x1, x0
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wattrset
	ldr	w0, [x23, #32]
	ldr	x8, [x23, #24]
	add	x8, x8, x26
	ldr	w1, [x8, #8]
	bl	_waddstr
	ldr	w22, [x23, #32]
	mov	x0, x19
	bl	_StdScreen
	bl	_WINDOW_ATTRS
	mov	x1, x0
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_wattrset
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x23, #24]
	str	x8, [x9, x26]
	ldr	w8, [x23]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #1
	add	x26, x26, #24
	cmp	x27, w8, sxtw
	b.ge	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x10, x9, [x23, #16]
	cbnz	x10, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x9, x26]
	cbz	x10, LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x9, x26
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w24, #1
	b.lt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_SLK_STDFMT
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x28]
	cmp	x27, x8
	b.ge	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh9:
	adrp	x8, _plab_norm@GOTPAGE
Lloh10:
	ldr	x8, [x8, _plab_norm@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x23, #24]
	add	x8, x8, x26
	ldr	w2, [x8, #8]
	add	w1, w27, #1
	bl	_TPARM_2
	mov	x1, x0
	mov	x0, x21
	bl	_NCURSES_PUTP2
	b	LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w20, #4
	b.ne	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23, #32]
	bl	_slk_paint_info
	b	LBB0_5
LBB0_17:
	ldr	x8, [x25]
	str	x8, [x23, #16]
	cmp	w24, #1
	b.lt	LBB0_2
; %bb.18:
	ldr	x8, [x23, #8]
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
Lloh16:
	adrp	x8, _label_on@GOTPAGE
Lloh17:
	ldr	x8, [x8, _label_on@GOTPAGEOFF]
Lloh18:
	adrp	x9, _label_off@GOTPAGE
Lloh19:
	ldr	x9, [x9, _label_off@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_NCURSES_PUTP2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NumLabels,4,2                  ; @NumLabels
	.comm	_num_labels,4,2                 ; @num_labels
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plab_norm"

	.comm	_plab_norm,4,2                  ; @plab_norm
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"label_off"

	.comm	_label_off,4,2                  ; @label_off
l_.str.2:                               ; @.str.2
	.asciz	"label_on"

	.comm	_label_on,4,2                   ; @label_on
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_hwlabel,4,2                    ; @hwlabel
	.comm	_hwlabelOnOff,4,2               ; @hwlabelOnOff
	.no_dead_strip	_slk_intern_refresh
.subsections_via_symbols
