	.file	"extr_wl_init.c_seatHandleCapabilities.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	seatHandleCapabilities, @function
seatHandleCapabilities:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR _glfw[rip+8]
	test	DWORD PTR WL_SEAT_CAPABILITY_POINTER[rip], edx
	je	.L2
	test	rdi, rdi
	je	.L14
.L3:
	mov	rdi, QWORD PTR _glfw[rip]
	test	DWORD PTR WL_SEAT_CAPABILITY_KEYBOARD[rip], ebx
	je	.L4
.L16:
	test	rdi, rdi
	je	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	rdi, rdi
	je	.L3
	call	wl_pointer_destroy@PLT
	mov	rdi, QWORD PTR _glfw[rip]
	mov	QWORD PTR _glfw[rip+8], 0
	test	DWORD PTR WL_SEAT_CAPABILITY_KEYBOARD[rip], ebx
	jne	.L16
.L4:
	test	rdi, rdi
	je	.L1
	call	wl_keyboard_destroy@PLT
	mov	QWORD PTR _glfw[rip], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	wl_seat_get_keyboard@PLT
	xor	edx, edx
	lea	rsi, keyboardListener[rip]
	mov	QWORD PTR _glfw[rip], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	wl_keyboard_add_listener@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rsi
	call	wl_seat_get_pointer@PLT
	xor	edx, edx
	lea	rsi, pointerListener[rip]
	mov	rdi, rax
	mov	QWORD PTR _glfw[rip+8], rax
	call	wl_pointer_add_listener@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	seatHandleCapabilities, .-seatHandleCapabilities
	.comm	pointerListener,4,4
	.comm	keyboardListener,4,4
	.comm	_glfw,16,16
	.comm	WL_SEAT_CAPABILITY_POINTER,4,4
	.comm	WL_SEAT_CAPABILITY_KEYBOARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wl_init.c_seatHandleCapabilities.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	seatHandleCapabilities, %function
seatHandleCapabilities:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r6, .L15+4
	ands	r5, r2, r3
	mov	r4, r2
	mov	r7, r1
	ldr	r8, [r6, #4]
	beq	.L2
	cmp	r8, #0
	beq	.L14
.L3:
	ldr	r3, .L15+8
	ldr	r5, [r6]
	ldr	r3, [r3]
	ands	r4, r4, r3
	beq	.L4
	cmp	r5, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r7
	bl	wl_seat_get_keyboard
	mov	r2, r5
	str	r0, [r6]
	ldr	r1, .L15+12
	pop	{r4, r5, r6, r7, r8, lr}
	b	wl_keyboard_add_listener
.L4:
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	wl_keyboard_destroy
	str	r4, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r8, #0
	beq	.L3
	mov	r0, r8
	bl	wl_pointer_destroy
	str	r5, [r6, #4]
	b	.L3
.L14:
	mov	r0, r1
	bl	wl_seat_get_pointer
	mov	r2, r8
	ldr	r1, .L15+16
	str	r0, [r6, #4]
	bl	wl_pointer_add_listener
	b	.L3
.L16:
	.align	2
.L15:
	.word	WL_SEAT_CAPABILITY_POINTER
	.word	_glfw
	.word	WL_SEAT_CAPABILITY_KEYBOARD
	.word	keyboardListener
	.word	pointerListener
	.size	seatHandleCapabilities, .-seatHandleCapabilities
	.comm	pointerListener,4,4
	.comm	keyboardListener,4,4
	.comm	_glfw,8,4
	.comm	WL_SEAT_CAPABILITY_POINTER,4,4
	.comm	WL_SEAT_CAPABILITY_KEYBOARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
