	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_unmap_notify_event
_handle_unmap_notify_event:             ## @handle_unmap_notify_event
	.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	%rdi, %rbx
	movslq	4(%rdi), %rsi
	movl	(%rdi), %ecx
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movl	4(%rbx), %edi
	callq	_con_by_window_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r15
	movq	_conn@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_xcb_get_input_focus
	movl	%eax, %r14d
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	decq	(%r15)
	jmp	LBB0_8
LBB0_1:
	movl	4(%rbx), %edi
	callq	_con_by_frame_id
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	decq	%rax
	movq	%rax, (%r15)
LBB0_4:
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_xcb_get_input_focus
	movl	%eax, %r14d
	movq	(%r15), %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_DLOG
	jmp	LBB0_8
LBB0_7:
	movl	(%r12), %edi
	movl	4(%rbx), %esi
	movq	_A__NET_WM_DESKTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_xcb_delete_property
	movl	(%r12), %edi
	movl	4(%rbx), %esi
	movq	_A__NET_WM_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_xcb_delete_property
	movq	_DONT_KILL_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_tree_close_internal
	xorl	%eax, %eax
	callq	_tree_render
LBB0_8:
	movl	(%rbx), %edi
	movq	_XCB_ENTER_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_add_ignore_event
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_xcb_get_input_focus_reply
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LOG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UnmapNotify for 0x%08x (received from 0x%08x), serial %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not a managed window, ignoring UnmapNotify event\n"

	.comm	_conn,4,2                       ## @conn
L_.str.2:                               ## @.str.2
	.asciz	"ignore_unmap = %d for frame of container %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"ignore_unmap = %d, dec\n"

	.comm	_A__NET_WM_DESKTOP,4,2          ## @A__NET_WM_DESKTOP
	.comm	_A__NET_WM_STATE,4,2            ## @A__NET_WM_STATE
	.comm	_DONT_KILL_WINDOW,4,2           ## @DONT_KILL_WINDOW
	.comm	_XCB_ENTER_NOTIFY,4,2           ## @XCB_ENTER_NOTIFY
	.no_dead_strip	_handle_unmap_notify_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_unmap_notify_event
_handle_unmap_notify_event:             ; @handle_unmap_notify_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	w1, w8, [x0, #4]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	ldr	w9, [x0]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldr	w0, [x19, #4]
	bl	_con_by_window_id
Lloh2:
	adrp	x22, _conn@GOTPAGE
Lloh3:
	ldr	x22, [x22, _conn@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w0, [x22]
	bl	_xcb_get_input_focus
	mov	x20, x0
	ldr	x1, [x21]
	cmp	x1, #1
	b.lt	LBB0_7
; %bb.2:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DLOG
	ldr	x8, [x21]
	sub	x8, x8, #1
	str	x8, [x21]
	b	LBB0_8
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_con_by_frame_id
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	ldr	x8, [x0]
	subs	x8, x8, #1
	b.lt	LBB0_6
; %bb.5:
	str	x8, [x21]
LBB0_6:
	ldr	w0, [x22]
	bl	_xcb_get_input_focus
	mov	x20, x0
	ldr	x1, [x21]
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	b	LBB0_8
LBB0_7:
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x8, _A__NET_WM_DESKTOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _A__NET_WM_DESKTOP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_xcb_delete_property
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
Lloh11:
	adrp	x8, _A__NET_WM_STATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _A__NET_WM_STATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_xcb_delete_property
Lloh14:
	adrp	x8, _DONT_KILL_WINDOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DONT_KILL_WINDOW@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_tree_close_internal
	bl	_tree_render
LBB0_8:
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _XCB_ENTER_NOTIFY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XCB_ENTER_NOTIFY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_add_ignore_event
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, #0
	bl	_xcb_get_input_focus_reply
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_free
LBB0_9:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_LOG
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UnmapNotify for 0x%08x (received from 0x%08x), serial %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not a managed window, ignoring UnmapNotify event\n"

	.comm	_conn,4,2                       ; @conn
l_.str.2:                               ; @.str.2
	.asciz	"ignore_unmap = %d for frame of container %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"ignore_unmap = %d, dec\n"

	.comm	_A__NET_WM_DESKTOP,4,2          ; @A__NET_WM_DESKTOP
	.comm	_A__NET_WM_STATE,4,2            ; @A__NET_WM_STATE
	.comm	_DONT_KILL_WINDOW,4,2           ; @DONT_KILL_WINDOW
	.comm	_XCB_ENTER_NOTIFY,4,2           ; @XCB_ENTER_NOTIFY
	.no_dead_strip	_handle_unmap_notify_event
.subsections_via_symbols
