	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unuse_one_window
_unuse_one_window:                      ## @unuse_one_window
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -56(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_scan_windows
LBB0_2:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %r14
	leaq	-40(%rbp), %r15
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_scan_windows
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_5:
	cmpq	$0, -48(%rbp)
	je	LBB0_6
## %bb.7:
	movq	-40(%rbp), %rax
	movl	16(%rax), %edi
	movq	8(%rax), %rsi
	callq	_munmap
	movq	-40(%rbp), %rdi
	movl	8(%rdi), %eax
	movq	_pack_mapped@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	-56(%rbp), %rax
	movl	(%rdi), %ecx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax
LBB0_9:
	movl	%ecx, (%rax)
	callq	_free
	movq	_pack_open_windows@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
LBB0_10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,8,3             ## @the_repository
	.comm	_pack_mapped,4,2                ## @pack_mapped
	.comm	_pack_open_windows,4,2          ## @pack_open_windows
	.no_dead_strip	_unuse_one_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unuse_one_window
_unuse_one_window:                      ; @unuse_one_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_scan_windows
LBB0_2:
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x19, [x8]
	cbz	x19, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_scan_windows
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_3
LBB0_4:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [sp, #16]
	ldr	w0, [x8, #16]
	ldr	x1, [x8, #8]
	bl	_munmap
	ldr	x0, [sp, #16]
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _pack_mapped@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pack_mapped@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	ldr	x8, [sp, #8]
	ldr	w9, [x0]
	ldr	x10, [sp, #24]
	cmp	x8, #0
	csel	x8, x10, x8, eq
	str	w9, [x8]
	bl	_free
Lloh5:
	adrp	x8, _pack_open_windows@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pack_open_windows@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,8,3             ; @the_repository
	.comm	_pack_mapped,4,2                ; @pack_mapped
	.comm	_pack_open_windows,4,2          ; @pack_open_windows
	.no_dead_strip	_unuse_one_window
.subsections_via_symbols
