	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_windowname_change
_handle_windowname_change:              ## @handle_windowname_change
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%ecx, %edi
	callq	_con_by_window_id
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.2:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	_i3string_as_utf8
	movl	%eax, %edi
	callq	_sstrdup
	movq	%rax, %r14
	movq	(%rbx), %rdi
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r15, %rsi
	callq	_window_update_name
	movq	%rbx, %rdi
	callq	_remanage_window
	movq	%rax, %rbx
	movq	_croot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_x_push_changes
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_window_name_changed
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ipc_send_window_event
LBB0_7:
	movq	%r14, %rdi
	callq	_FREE
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_croot,4,2                      ## @croot
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"title"

	.no_dead_strip	_handle_windowname_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_windowname_change
_handle_windowname_change:              ; @handle_windowname_change
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x5
	mov	x0, x3
	bl	_con_by_window_id
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x8
	bl	_i3string_as_utf8
	bl	_sstrdup
	mov	x19, x0
	ldr	x0, [x21]
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x1, x20
	bl	_window_update_name
	mov	x0, x21
	bl	_remanage_window
	mov	x20, x0
Lloh0:
	adrp	x8, _croot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _croot@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_x_push_changes
	ldr	x0, [x20]
	mov	x1, x19
	bl	_window_name_changed
	cbz	x0, LBB0_7
; %bb.6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_ipc_send_window_event
LBB0_7:
	mov	x0, x19
	bl	_FREE
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_croot,4,2                      ; @croot
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"title"

	.no_dead_strip	_handle_windowname_change
.subsections_via_symbols
