	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remanage_window                ## -- Begin function remanage_window
	.p2align	4, 0x90
_remanage_window:                       ## @remanage_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	%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
	movq	%rdi, %rbx
	movq	_croot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	callq	_con_for_window
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rdi
	cmpq	%rdi, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rcx
	cmpq	(%rdi), %rcx
	jg	LBB0_6
## %bb.8:
	movl	8(%rax), %edi
	callq	_restore_kill_placeholder
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	__remove_matches
	jmp	LBB0_11
LBB0_5:
	movq	(%rbx), %rdi
LBB0_6:
	callq	_run_assignments
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_DLOG
LBB0_11:
	movq	(%r14), %rdi
	callq	_window_free
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	__match_depth
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_x_reparent_child
	movq	%r14, %rdi
	callq	_con_get_workspace
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_con_get_workspace
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_con_merge_into
	movq	_XCB_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_13
## %bb.12:
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_xcb_destroy_window
LBB0_13:
	movq	(%r14), %rdi
	callq	_run_assignments
	cmpq	%r13, %r12
	je	LBB0_15
## %bb.14:
	movq	(%r14), %rdi
	callq	_startup_sequence_delete_by_window
	xorl	%eax, %eax
	callq	_ewmh_update_wm_desktop
LBB0_15:
	movq	%r14, %rbx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_croot,4,2                      ## @croot
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Uh?! Container without a placeholder, but with a window, has swallowed this managed window?!\n"

	.comm	_XCB_NONE,8,3                   ## @XCB_NONE
	.comm	_conn,4,2                       ## @conn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remanage_window                ; -- Begin function remanage_window
	.p2align	2
_remanage_window:                       ; @remanage_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _croot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _croot@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [x20]
	add	x2, sp, #8
	bl	_con_for_window
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x0, [x20]
	cmp	x8, x0
	b.eq	LBB0_6
; %bb.3:
	ldr	x9, [x8]
	ldr	x10, [x0]
	cmp	x9, x10
	b.gt	LBB0_7
; %bb.4:
	ldr	w0, [x8, #8]
	bl	_restore_kill_placeholder
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	__remove_matches
	b	LBB0_10
LBB0_6:
	ldr	x0, [x20]
LBB0_7:
	bl	_run_assignments
LBB0_8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
LBB0_10:
	ldr	x0, [x19]
	bl	_window_free
	ldr	x0, [x20]
	mov	x1, x19
	bl	__match_depth
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_x_reparent_child
	mov	x0, x19
	bl	_con_get_workspace
	mov	x22, x0
	mov	x0, x20
	bl	_con_get_workspace
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_con_merge_into
Lloh5:
	adrp	x8, _XCB_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XCB_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_12
; %bb.11:
Lloh8:
	adrp	x8, _conn@GOTPAGE
Lloh9:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_xcb_destroy_window
LBB0_12:
	ldr	x0, [x19]
	bl	_run_assignments
	cmp	x22, x23
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19]
	bl	_startup_sequence_delete_by_window
	bl	_ewmh_update_wm_desktop
LBB0_14:
	mov	x20, x19
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_croot,4,2                      ; @croot
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Uh?! Container without a placeholder, but with a window, has swallowed this managed window?!\n"

	.comm	_XCB_NONE,8,3                   ; @XCB_NONE
	.comm	_conn,4,2                       ; @conn
.subsections_via_symbols
