	.file	"extr_wl_window.c__glfwPlatformCreateCursor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Wayland: Creating a buffer file for %d B failed: %m\n"
	.align 8
.LC1:
	.string	"Wayland: Cursor mmap failed: %m\n"
	.text
	.p2align 4
	.globl	_glfwPlatformCreateCursor
	.type	_glfwPlatformCreateCursor, @function
_glfwPlatformCreateCursor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rsi]
	mov	ebp, DWORD PTR 4[rsi]
	mov	DWORD PTR 8[rsp], edx
	imul	ebp, eax
	mov	DWORD PTR 12[rsp], ecx
	mov	DWORD PTR 4[rsp], eax
	sal	ebp, 2
	mov	edi, ebp
	call	createAnonymousFile@PLT
	test	eax, eax
	js	.L10
	mov	ecx, DWORD PTR MAP_SHARED[rip]
	mov	edx, DWORD PTR PROT_READ[rip]
	xor	edi, edi
	mov	esi, ebp
	or	edx, DWORD PTR PROT_WRITE[rip]
	xor	r9d, r9d
	mov	r8d, eax
	mov	r15d, eax
	call	mmap@PLT
	cmp	QWORD PTR MAP_FAILED[rip], rax
	mov	r14, rax
	je	.L11
	mov	edi, DWORD PTR _glfw[rip]
	mov	edx, ebp
	mov	esi, r15d
	call	wl_shm_create_pool@PLT
	mov	edi, r15d
	mov	r13, rax
	call	close@PLT
	mov	r10d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	r8, QWORD PTR 8[rbx]
	mov	eax, r10d
	imul	eax, edx
	test	eax, eax
	jle	.L5
	mov	rax, r14
	xor	ecx, ecx
	sub	r8, r14
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, [r8+rax]
	add	rax, 4
	add	ecx, 1
	movzx	esi, BYTE PTR 2[rdx]
	mov	BYTE PTR -4[rax], sil
	movzx	esi, BYTE PTR 1[rdx]
	mov	BYTE PTR -3[rax], sil
	movzx	esi, BYTE PTR [rdx]
	mov	BYTE PTR -2[rax], sil
	movzx	edx, BYTE PTR 3[rdx]
	mov	BYTE PTR -1[rax], dl
	mov	edx, DWORD PTR [rbx]
	mov	r10d, DWORD PTR 4[rbx]
	mov	edi, edx
	imul	edi, r10d
	cmp	edi, ecx
	jg	.L6
.L5:
	mov	r8d, DWORD PTR 4[rsp]
	mov	ecx, r10d
	mov	rdi, r13
	xor	esi, esi
	mov	r9d, DWORD PTR WL_SHM_FORMAT_ARGB8888[rip]
	sal	r8d, 2
	call	wl_shm_pool_create_buffer@PLT
	mov	esi, ebp
	mov	rdi, r14
	mov	DWORD PTR 16[r12], eax
	call	munmap@PLT
	mov	rdi, r13
	call	wl_shm_pool_destroy@PLT
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR GL_TRUE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR GLFW_PLATFORM_ERROR[rip]
	mov	edx, ebp
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	_glfwInputError@PLT
	mov	eax, DWORD PTR GL_FALSE[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR GLFW_PLATFORM_ERROR[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	_glfwInputError@PLT
	mov	edi, r15d
	call	close@PLT
	mov	eax, DWORD PTR GL_FALSE[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_glfwPlatformCreateCursor, .-_glfwPlatformCreateCursor
	.comm	_glfw,4,4
	.comm	WL_SHM_FORMAT_ARGB8888,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_FAILED,8,8
	.comm	GL_TRUE,4,4
	.comm	GL_FALSE,4,4
	.comm	GLFW_PLATFORM_ERROR,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_window.c__glfwPlatformCreateCursor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wayland: Creating a buffer file for %d B failed: %m"
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"Wayland: Cursor mmap failed: %m\012\000"
	.text
	.align	2
	.global	_glfwPlatformCreateCursor
	.syntax unified
	.arm
	.fpu softvfp
	.type	_glfwPlatformCreateCursor, %function
_glfwPlatformCreateCursor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, [r1]
	ldr	r6, [r1, #4]
	sub	sp, sp, #20
	mul	r6, r10, r6
	lsl	r6, r6, #2
	mov	r8, r0
	mov	r0, r6
	mov	r5, r1
	mov	fp, r2
	str	r3, [sp, #12]
	bl	createAnonymousFile
	subs	r7, r0, #0
	blt	.L10
	mov	r4, #0
	ldr	r2, .L12
	ldr	r3, .L12+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L12+8
	str	r7, [sp]
	str	r4, [sp, #4]
	ldr	r3, [r3]
	orr	r2, r1, r2
	mov	r0, r4
	mov	r1, r6
	bl	mmap
	ldr	r3, .L12+12
	mov	r9, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L11
	ldr	r3, .L12+16
	mov	r1, r7
	mov	r2, r6
	ldr	r0, [r3]
	bl	wl_shm_create_pool
	mov	r3, r0
	mov	r0, r7
	mov	r7, r3
	bl	close
	ldm	r5, {r2, r3}
	mul	r1, r2, r3
	cmp	r1, #0
	ldr	r0, [r5, #8]
	ble	.L5
	sub	r0, r0, #4
	sub	r0, r0, r9
	add	r1, r9, #4
.L6:
	add	r3, r0, r1
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	add	r4, r4, #1
	strb	r2, [r1, #-4]
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	strb	r2, [r1, #-3]
	ldrb	r2, [r0, r1]	@ zero_extendqisi2
	add	r1, r1, #4
	strb	r2, [r1, #-6]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	strb	r3, [r1, #-5]
	ldm	r5, {r2, r3}
	mul	ip, r3, r2
	cmp	ip, r4
	bgt	.L6
.L5:
	ldr	r1, .L12+20
	lsl	r10, r10, #2
	ldr	r1, [r1]
	mov	r0, r7
	str	r1, [sp, #4]
	str	r10, [sp]
	mov	r1, #0
	bl	wl_shm_pool_create_buffer
	mov	r1, r6
	str	r0, [r8, #16]
	mov	r0, r9
	bl	munmap
	mov	r0, r7
	bl	wl_shm_pool_destroy
	ldm	r5, {r2, r3}
	ldr	r1, .L12+24
	ldr	r0, [r1]
	stm	r8, {r2, r3, fp}
	ldr	r3, [sp, #12]
	str	r3, [r8, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, .L12+28
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L12+32
	bl	_glfwInputError
	ldr	r3, .L12+36
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L12+28
	ldr	r1, .L12+40
	ldr	r0, [r3]
	bl	_glfwInputError
	mov	r0, r7
	bl	close
	ldr	r3, .L12+36
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	PROT_READ
	.word	PROT_WRITE
	.word	MAP_SHARED
	.word	MAP_FAILED
	.word	_glfw
	.word	WL_SHM_FORMAT_ARGB8888
	.word	GL_TRUE
	.word	GLFW_PLATFORM_ERROR
	.word	.LC0
	.word	GL_FALSE
	.word	.LC1
	.size	_glfwPlatformCreateCursor, .-_glfwPlatformCreateCursor
	.comm	_glfw,4,4
	.comm	WL_SHM_FORMAT_ARGB8888,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_FAILED,4,4
	.comm	GL_TRUE,4,4
	.comm	GL_FALSE,4,4
	.comm	GLFW_PLATFORM_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
