	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_update_name_legacy      ## -- Begin function window_update_name_legacy
	.p2align	4, 0x90
_window_update_name_legacy:             ## @window_update_name_legacy
	.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	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_xcb_get_property_value_length
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	cmpq	$0, 24(%r14)
	jne	LBB0_7
## %bb.3:
	movq	8(%r14), %rdi
	callq	_i3string_free
	movq	%rbx, %rdi
	callq	_xcb_get_property_value_length
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_xcb_get_property_value
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_sstrndup
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i3string_from_utf8
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	callq	_free
	movl	16(%r14), %edi
	callq	_con_by_window_id
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_con_parse_title_format
	movq	%rax, %r15
	movl	16(%r14), %r12d
	movq	%rax, %rdi
	callq	_i3string_as_utf8
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ewmh_update_visible_name
	movq	%r15, %rdi
	callq	_I3STRING_FREE
LBB0_6:
	movq	8(%r14), %rdi
	callq	_i3string_as_utf8
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_LOG
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG
	movl	$1, (%r14)
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_DLOG
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FREE                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WM_NAME not set (_NET_WM_NAME is what you want anyways).\n"

L_.str.1:                               ## @.str.1
	.asciz	"WM_NAME changed to \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"Using legacy window title. Note that in order to get Unicode window titles in i3, the application has to set _NET_WM_NAME (UTF-8)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_update_name_legacy      ; -- Begin function window_update_name_legacy
	.p2align	2
_window_update_name_legacy:             ; @window_update_name_legacy
	.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, x1
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_xcb_get_property_value_length
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_7
; %bb.3:
	ldr	x0, [x20, #8]
	bl	_i3string_free
	mov	x0, x19
	bl	_xcb_get_property_value_length
	mov	x21, x0
	mov	x0, x19
	bl	_xcb_get_property_value
	mov	x1, x21
	bl	_sstrndup
	mov	x21, x0
	bl	_i3string_from_utf8
	str	x0, [x20, #8]
	mov	x0, x21
	bl	_free
	ldr	w0, [x20, #16]
	bl	_con_by_window_id
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_con_parse_title_format
	mov	x21, x0
	ldr	w22, [x20, #16]
	bl	_i3string_as_utf8
	mov	x1, x0
	mov	x0, x22
	bl	_ewmh_update_visible_name
	mov	x0, x21
	bl	_I3STRING_FREE
LBB0_6:
	ldr	x0, [x20, #8]
	bl	_i3string_as_utf8
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x19
	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_8:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WM_NAME not set (_NET_WM_NAME is what you want anyways).\n"

l_.str.1:                               ; @.str.1
	.asciz	"WM_NAME changed to \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"Using legacy window title. Note that in order to get Unicode window titles in i3, the application has to set _NET_WM_NAME (UTF-8)\n"

.subsections_via_symbols
