	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_update_title               ## -- Begin function x11_update_title
	.p2align	4, 0x90
_x11_update_title:                      ## @x11_update_title
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	$0, -176(%rbp)
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_video_driver_get_window_title
	cmpb	$0, -176(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_g_x11_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_g_x11_win@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_XA_WM_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_XA_STRING@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movl	(%rax), %ebx
	movq	_PropModeReplace@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	$8, %r8d
	movl	%r14d, %r9d
	pushq	%rax
	leaq	-176(%rbp), %rax
	pushq	%rax
	callq	_XChangeProperty
	addq	$16, %rsp
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_dpy,4,2                  ## @g_x11_dpy
	.comm	_g_x11_win,4,2                  ## @g_x11_win
	.comm	_XA_WM_NAME,4,2                 ## @XA_WM_NAME
	.comm	_XA_STRING,4,2                  ## @XA_STRING
	.comm	_PropModeReplace,4,2            ## @PropModeReplace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_update_title               ; -- Begin function x11_update_title
	.p2align	2
_x11_update_title:                      ; @x11_update_title
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	strb	wzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #128
	bl	_video_driver_get_window_title
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _g_x11_dpy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_x11_dpy@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x8, _g_x11_win@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_x11_win@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _XA_WM_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XA_WM_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _XA_STRING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XA_STRING@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _PropModeReplace@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PropModeReplace@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
	add	x0, sp, #8
	bl	_strlen
	mov	x7, x0
	add	x6, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	w4, #8
	mov	x5, x23
	bl	_XChangeProperty
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_dpy,4,2                  ; @g_x11_dpy
	.comm	_g_x11_win,4,2                  ; @g_x11_win
	.comm	_XA_WM_NAME,4,2                 ; @XA_WM_NAME
	.comm	_XA_STRING,4,2                  ; @XA_STRING
	.comm	_PropModeReplace,4,2            ; @PropModeReplace
.subsections_via_symbols
