	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_discard                     ## -- Begin function cl_discard
	.p2align	4, 0x90
_cl_discard:                            ## @cl_discard
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	callq	_CLP
	movq	_CL_LAYOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_F_SET
	movq	%rbx, %rdi
	callq	_CLSP
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_CLSP
	movq	%rax, %rdi
	callq	_delwin
	movq	$0, 16(%rbx)
LBB0_3:
	testq	%r14, %r14
	je	LBB0_9
## %bb.4:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	addq	$8, %r14
	movq	_CL_LAYOUT@GOTPCREL(%rip), %r15
	movq	_stdscr@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	callq	_subwin
	movq	%rax, 16(%rbx)
	movq	(%r14), %rbx
	addq	$8, %r14
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_CLP
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_F_SET
	movq	%rbx, %rdi
	callq	_CLSP
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_CLSP
	movq	%rax, %rdi
	callq	_delwin
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_LAYOUT,4,2                  ## @CL_LAYOUT
	.comm	_stdscr,4,2                     ## @stdscr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_discard                     ; -- Begin function cl_discard
	.p2align	2
_cl_discard:                            ; @cl_discard
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
Lloh0:
	adrp	x21, _CL_LAYOUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CL_LAYOUT@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_CLP
	ldr	w1, [x21]
	bl	_F_SET
	mov	x0, x19
	bl	_CLSP
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_CLSP
	bl	_delwin
	str	xzr, [x19, #16]
LBB0_3:
	cbz	x20, LBB0_9
; %bb.4:
	ldr	x19, [x20]
	cbz	x19, LBB0_9
; %bb.5:
	add	x20, x20, #8
Lloh2:
	adrp	x22, _stdscr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _stdscr@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22]
	ldp	w2, w1, [x19, #8]
	ldp	w4, w3, [x19]
	bl	_subwin
	str	x0, [x19, #16]
	ldr	x19, [x20], #8
	cbz	x19, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_CLP
	ldr	w1, [x21]
	bl	_F_SET
	mov	x0, x19
	bl	_CLSP
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_CLSP
	bl	_delwin
	b	LBB0_6
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_LAYOUT,4,2                  ; @CL_LAYOUT
	.comm	_stdscr,4,2                     ; @stdscr
.subsections_via_symbols
