	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_destroy_notify
_handle_destroy_notify:                 ## @handle_destroy_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_trayclient_and_output_from_window
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	-24(%rbp), %rax
	movl	(%rax), %edi
	movq	_tailq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movl	4(%r14), %edi
	callq	_free
	movl	(%r14), %edi
	callq	_free
	movq	%r14, %rdi
	callq	_FREE
	xorl	%eax, %eax
	callq	_configure_trayclients
	xorl	%edi, %edi
	callq	_draw_bars
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DestroyNotify for window = %08x, event = %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"WARNING: Could not find corresponding tray window.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Removing tray client with window ID %08x\n"

	.comm	_tailq,4,2                      ## @tailq
	.no_dead_strip	_handle_destroy_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_destroy_notify
_handle_destroy_notify:                 ; @handle_destroy_notify
	.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
	mov	x20, x0
	ldp	w8, w9, [x0]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldr	w0, [x20]
	add	x1, sp, #24
	bl	_trayclient_and_output_from_window
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	ldr	x8, [sp, #24]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _tailq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tailq@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	w0, [x19, #4]
	bl	_free
	ldr	w0, [x19]
	bl	_free
	mov	x0, x19
	bl	_FREE
	bl	_configure_trayclients
	mov	w0, #0
	bl	_draw_bars
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DestroyNotify for window = %08x, event = %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"WARNING: Could not find corresponding tray window.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Removing tray client with window ID %08x\n"

	.comm	_tailq,4,2                      ; @tailq
	.no_dead_strip	_handle_destroy_notify
.subsections_via_symbols
