	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_manage_existing_windows        ## -- Begin function manage_existing_windows
	.p2align	4, 0x90
_manage_existing_windows:               ## @manage_existing_windows
	.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	%edi, %esi
	movq	_conn@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	%ebx, %edi
	callq	_xcb_query_tree
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_xcb_query_tree_reply
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_xcb_query_tree_children_length
	movl	%eax, %r12d
	leal	(,%r12,4), %edi
	callq	_smalloc
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_xcb_query_tree_children
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	(%r14,%rbx,4), %esi
	callq	_xcb_get_window_attributes
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	movl	(%r15,%rbx,4), %esi
	movl	$1, %edx
	callq	_manage_window
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conn,4,2                       ## @conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_manage_existing_windows        ; -- Begin function manage_existing_windows
	.p2align	2
_manage_existing_windows:               ; @manage_existing_windows
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x1, x0
Lloh0:
	adrp	x23, _conn@GOTPAGE
Lloh1:
	ldr	x23, [x23, _conn@GOTPAGEOFF]
	ldr	w19, [x23]
	mov	x0, x19
	bl	_xcb_query_tree
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_xcb_query_tree_reply
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_xcb_query_tree_children_length
	mov	x22, x0
	lsl	w0, w0, #2
	bl	_smalloc
	mov	x20, x0
	mov	x0, x19
	bl	_xcb_query_tree_children
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, x0
	mov	w22, w22
	mov	x24, x22
	mov	x25, x0
	mov	x26, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x25], #4
	bl	_xcb_get_window_attributes
	str	w0, [x26], #4
	subs	x24, x24, #1
	b.ne	LBB0_3
; %bb.4:
	mov	x23, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #4
	ldr	w1, [x23], #4
	mov	w2, #1
	bl	_manage_window
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_conn,4,2                       ; @conn
.subsections_via_symbols
