	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_wl_update_title
_gfx_ctx_wl_update_title:               ## @gfx_ctx_wl_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	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movb	$0, -144(%rbp)
	leaq	-144(%rbp), %rdi
	movl	$128, %esi
	callq	_video_driver_get_window_title
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	cmpb	$0, -144(%rbp)
	je	LBB0_10
## %bb.2:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_8
LBB0_4:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_zxdg_toplevel_decoration_v1_set_mode
	movq	8(%rbx), %rdi
LBB0_6:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	leaq	-144(%rbp), %rsi
	callq	_xdg_toplevel_set_title
	jmp	LBB0_10
LBB0_8:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	leaq	-144(%rbp), %rsi
	callq	_zxdg_toplevel_v6_set_title
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$136, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE,4,2 ## @ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE
	.no_dead_strip	_gfx_ctx_wl_update_title
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_wl_update_title
_gfx_ctx_wl_update_title:               ; @gfx_ctx_wl_update_title
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	strb	wzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #128
	bl	_video_driver_get_window_title
	cbz	x19, LBB0_10
; %bb.1:
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_10
; %bb.2:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh3:
	adrp	x9, _ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_zxdg_toplevel_decoration_v1_set_mode
	ldr	x0, [x19, #8]
LBB0_6:
	cbz	x0, LBB0_8
; %bb.7:
	add	x1, sp, #8
	bl	_xdg_toplevel_set_title
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.9:
	add	x1, sp, #8
	bl	_zxdg_toplevel_v6_set_title
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE,4,2 ; @ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE
	.no_dead_strip	_gfx_ctx_wl_update_title
.subsections_via_symbols
