	.file	"260838.c"
	.intel_syntax noprefix
	.text
	.type	wl_display_get_registry, @function
wl_display_get_registry:
.LFB15:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 0
	lea	rdx, wl_registry_interface[rip]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	wl_proxy_marshal_constructor@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	wl_display_get_registry, .-wl_display_get_registry
	.type	wl_registry_add_listener, @function
wl_registry_add_listener:
.LFB16:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	wl_proxy_add_listener@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	wl_registry_add_listener, .-wl_registry_add_listener
	.type	wl_registry_bind, @function
wl_registry_bind:
.LFB21:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, QWORD PTR [rax]
	mov	edi, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	push	0
	mov	esi, DWORD PTR -32[rbp]
	push	rsi
	mov	r9, r8
	mov	r8d, edi
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	wl_proxy_marshal_constructor_versioned@PLT
	add	rsp, 16
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	wl_registry_bind, .-wl_registry_bind
	.type	wl_compositor_create_surface, @function
wl_compositor_create_surface:
.LFB31:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 0
	lea	rdx, wl_surface_interface[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	wl_proxy_marshal_constructor@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	wl_compositor_create_surface, .-wl_compositor_create_surface
	.type	wl_shell_get_shell_surface, @function
wl_shell_get_shell_surface:
.LFB84:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdx
	mov	ecx, 0
	lea	rdx, wl_shell_surface_interface[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	wl_proxy_marshal_constructor@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE84:
	.size	wl_shell_get_shell_surface, .-wl_shell_get_shell_surface
	.type	wl_shell_surface_set_toplevel, @function
wl_shell_surface_set_toplevel:
.LFB93:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	wl_proxy_marshal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE93:
	.size	wl_shell_surface_set_toplevel, .-wl_shell_surface_set_toplevel
	.globl	display
	.bss
	.align 8
	.type	display, @object
	.size	display, 8
display:
	.zero	8
	.globl	compositor
	.align 8
	.type	compositor, @object
	.size	compositor, 8
compositor:
	.zero	8
	.globl	surface
	.align 8
	.type	surface, @object
	.size	surface, 8
surface:
	.zero	8
	.globl	shell
	.align 8
	.type	shell, @object
	.size	shell, 8
shell:
	.zero	8
	.globl	shell_surface
	.align 8
	.type	shell_surface, @object
	.size	shell_surface, 8
shell_surface:
	.zero	8
	.section	.rodata
.LC0:
	.string	"wl_compositor"
.LC1:
	.string	"wl_shell"
	.text
	.type	global_registry_handler, @function
global_registry_handler:
.LFB225:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	mov	DWORD PTR -24[rbp], r8d
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	mov	esi, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 1
	lea	rdx, wl_compositor_interface[rip]
	mov	rdi, rax
	call	wl_registry_bind
	mov	QWORD PTR compositor[rip], rax
	jmp	.L15
.L13:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	esi, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 1
	lea	rdx, wl_shell_interface[rip]
	mov	rdi, rax
	call	wl_registry_bind
	mov	QWORD PTR shell[rip], rax
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE225:
	.size	global_registry_handler, .-global_registry_handler
	.section	.rodata
	.align 8
.LC2:
	.string	"Got a registry losing event for %d\n"
	.text
	.type	global_registry_remover, @function
global_registry_remover:
.LFB226:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE226:
	.size	global_registry_remover, .-global_registry_remover
	.section	.data.rel.ro.local,"aw"
	.align 16
	.type	registry_listener, @object
	.size	registry_listener, 16
registry_listener:
	.quad	global_registry_handler
	.quad	global_registry_remover
	.section	.rodata
.LC3:
	.string	"argv[%d]=%s\n"
	.align 8
.LC4:
	.string	"Can't connect to Wayland display\n"
.LC5:
	.string	"Connected to Wayland display"
	.align 8
.LC6:
	.string	"Can't find Wayland compositor\n"
.LC7:
	.string	"Found Wayland compositor\n"
.LC8:
	.string	"Can't create Wayland surface\n"
.LC9:
	.string	"Created Wayland surface\n"
	.align 8
.LC10:
	.string	"Can't create Wayland shell surface\n"
	.align 8
.LC11:
	.string	"Created Wayland shell surface\n"
	.align 8
.LC12:
	.string	"Disconnected from Wayland display"
	.text
	.globl	main
	.type	main, @function
main:
.LFB227:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L19
	mov	DWORD PTR -12[rbp], 0
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR environ[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -12[rbp], 1
.L20:
	mov	rdx, QWORD PTR environ[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L21
	mov	edi, 0
	call	wl_display_connect@PLT
	mov	QWORD PTR display[rip], rax
	mov	rax, QWORD PTR display[rip]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR display[rip]
	mov	rdi, rax
	call	wl_display_get_registry
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, registry_listener[rip]
	mov	rdi, rax
	call	wl_registry_add_listener
	mov	rax, QWORD PTR display[rip]
	mov	rdi, rax
	call	wl_display_dispatch@PLT
	mov	rax, QWORD PTR display[rip]
	mov	rdi, rax
	call	wl_display_roundtrip@PLT
	mov	rax, QWORD PTR compositor[rip]
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR compositor[rip]
	mov	rdi, rax
	call	wl_compositor_create_surface
	mov	QWORD PTR surface[rip], rax
	mov	rax, QWORD PTR surface[rip]
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR surface[rip]
	mov	rax, QWORD PTR shell[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	wl_shell_get_shell_surface
	mov	QWORD PTR shell_surface[rip], rax
	mov	rax, QWORD PTR shell_surface[rip]
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR shell_surface[rip]
	mov	rdi, rax
	call	wl_shell_surface_set_toplevel
	mov	rax, QWORD PTR display[rip]
	mov	rdi, rax
	call	wl_display_disconnect@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE227:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"260838.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl_display_get_registry, %function
wl_display_get_registry:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	ldr	r2, .L3
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	wl_proxy_marshal_constructor
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	wl_registry_interface
	.size	wl_display_get_registry, .-wl_display_get_registry
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl_registry_add_listener, %function
wl_registry_add_listener:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	wl_proxy_add_listener
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wl_registry_add_listener, .-wl_registry_add_listener
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl_registry_bind, %function
wl_registry_bind:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #12]
	ldr	r2, [fp, #-28]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	wl_proxy_marshal_constructor_versioned
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wl_registry_bind, .-wl_registry_bind
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl_compositor_create_surface, %function
wl_compositor_create_surface:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	ldr	r2, .L11
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	wl_proxy_marshal_constructor
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	wl_surface_interface
	.size	wl_compositor_create_surface, .-wl_compositor_create_surface
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl_shell_get_shell_surface, %function
wl_shell_get_shell_surface:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L15
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	wl_proxy_marshal_constructor
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	wl_shell_surface_interface
	.size	wl_shell_get_shell_surface, .-wl_shell_get_shell_surface
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl_shell_surface_set_toplevel, %function
wl_shell_surface_set_toplevel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #3
	ldr	r0, [fp, #-8]
	bl	wl_proxy_marshal
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wl_shell_surface_set_toplevel, .-wl_shell_surface_set_toplevel
	.global	display
	.bss
	.align	2
	.type	display, %object
	.size	display, 4
display:
	.space	4
	.global	compositor
	.align	2
	.type	compositor, %object
	.size	compositor, 4
compositor:
	.space	4
	.comm	surface,4,4
	.comm	shell,4,4
	.comm	shell_surface,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wl_compositor\000"
	.align	2
.LC1:
	.ascii	"wl_shell\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	global_registry_handler, %function
global_registry_handler:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r1, .L22
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	ldr	r2, .L22+4
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	wl_registry_bind
	mov	r3, r0
	ldr	r2, .L22+8
	str	r3, [r2]
	b	.L21
.L19:
	ldr	r1, .L22+12
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	mov	r3, #1
	ldr	r2, .L22+16
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	wl_registry_bind
	mov	r3, r0
	ldr	r2, .L22+20
	str	r3, [r2]
.L21:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	wl_compositor_interface
	.word	compositor
	.word	.LC1
	.word	wl_shell_interface
	.word	shell
	.size	global_registry_handler, .-global_registry_handler
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Got a registry losing event for %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	global_registry_remover, %function
global_registry_remover:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L25
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.size	global_registry_remover, .-global_registry_remover
	.section	.rodata
	.align	2
	.type	registry_listener, %object
	.size	registry_listener, 8
registry_listener:
	.word	global_registry_handler
	.word	global_registry_remover
	.align	2
.LC3:
	.ascii	"argv[%d]=%s\012\000"
	.align	2
.LC4:
	.ascii	"Can't connect to Wayland display\012\000"
	.align	2
.LC5:
	.ascii	"Connected to Wayland display\000"
	.align	2
.LC6:
	.ascii	"Can't find Wayland compositor\012\000"
	.align	2
.LC7:
	.ascii	"Found Wayland compositor\012\000"
	.align	2
.LC8:
	.ascii	"Can't create Wayland surface\012\000"
	.align	2
.LC9:
	.ascii	"Created Wayland surface\012\000"
	.align	2
.LC10:
	.ascii	"Can't create Wayland shell surface\012\000"
	.align	2
.LC11:
	.ascii	"Created Wayland shell surface\012\000"
	.align	2
.LC12:
	.ascii	"Disconnected from Wayland display\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L29:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L36
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L29
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L30
.L31:
	ldr	r3, .L36+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, .L36+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	mov	r0, #0
	bl	wl_display_connect
	mov	r3, r0
	ldr	r2, .L36+8
	str	r3, [r2]
	ldr	r3, .L36+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L36+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L32:
	ldr	r0, .L36+20
	bl	puts
	ldr	r3, .L36+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wl_display_get_registry
	str	r0, [fp, #-8]
	mov	r2, #0
	ldr	r1, .L36+24
	ldr	r0, [fp, #-8]
	bl	wl_registry_add_listener
	ldr	r3, .L36+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wl_display_dispatch
	ldr	r3, .L36+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wl_display_roundtrip
	ldr	r3, .L36+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L36+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L36+36
	bl	fwrite
	ldr	r3, .L36+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	wl_compositor_create_surface
	mov	r3, r0
	ldr	r2, .L36+40
	str	r3, [r2]
	ldr	r3, .L36+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L36+44
	bl	fwrite
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L36+48
	bl	fwrite
	ldr	r3, .L36+52
	ldr	r3, [r3]
	ldr	r2, .L36+40
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	wl_shell_get_shell_surface
	mov	r3, r0
	ldr	r2, .L36+56
	str	r3, [r2]
	ldr	r3, .L36+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L36+60
	bl	fwrite
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L36+64
	bl	fwrite
	ldr	r3, .L36+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	wl_shell_surface_set_toplevel
	ldr	r3, .L36+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	wl_display_disconnect
	ldr	r0, .L36+68
	bl	puts
	mov	r0, #0
	bl	exit
.L37:
	.align	2
.L36:
	.word	.LC3
	.word	environ
	.word	display
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	registry_listener
	.word	compositor
	.word	.LC6
	.word	.LC7
	.word	surface
	.word	.LC8
	.word	.LC9
	.word	shell
	.word	shell_surface
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
