	.file	"extr_tearing.c_key_callback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	key_callback, @function
key_callback:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR GLFW_PRESS[rip], ecx
	jne	.L11
	add	esi, -128
	cmp	esi, 4
	ja	.L11
	lea	rdx, .L4[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	rax, DWORD PTR [rdx+rsi*4]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L5-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L11:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	esi, 1
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	glfwSetWindowShouldClose@PLT
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR swap_tear[rip]
	mov	esi, DWORD PTR swap_interval[rip]
	test	edi, edi
	jne	.L15
	test	esi, esi
	jle	.L1
.L15:
	sub	esi, 1
	jmp	.L14
.L7:
	mov	eax, DWORD PTR swap_interval[rip]
	lea	esi, 1[rax]
.L14:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	set_swap_interval@PLT
.L5:
	.cfi_restore_state
	cmp	DWORD PTR GLFW_MOD_ALT[rip], r8d
	je	.L17
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	call	glfwGetWindowMonitor@PLT
	test	eax, eax
	je	.L9
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, DWORD PTR y.1968[rip]
	xor	esi, esi
	mov	rdi, rbp
	mov	r9d, DWORD PTR height.1970[rip]
	mov	r8d, DWORD PTR width.1969[rip]
	push	0
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR x.1967[rip]
	call	glfwSetWindowMonitor@PLT
	pop	rcx
	.cfi_def_cfa_offset 40
	pop	rsi
	.cfi_def_cfa_offset 32
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	glfwGetPrimaryMonitor@PLT
	mov	rdi, rax
	mov	r12, rax
	call	glfwGetVideoMode@PLT
	lea	rdx, y.1968[rip]
	lea	rsi, x.1967[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	glfwGetWindowPos@PLT
	lea	rdx, height.1970[rip]
	lea	rsi, width.1969[rip]
	mov	rdi, rbp
	call	glfwGetWindowSize@PLT
	mov	eax, DWORD PTR 8[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, DWORD PTR 4[rbx]
	xor	edx, edx
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR [rbx]
	call	glfwSetWindowMonitor@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	key_callback, .-key_callback
	.local	x.1967
	.comm	x.1967,4,4
	.local	y.1968
	.comm	y.1968,4,4
	.local	width.1969
	.comm	width.1969,4,4
	.local	height.1970
	.comm	height.1970,4,4
	.comm	swap_tear,4,4
	.comm	swap_interval,4,4
	.comm	GLFW_PRESS,4,4
	.comm	GLFW_MOD_ALT,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_tearing.c_key_callback.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	key_callback, %function
key_callback:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L14
	sub	sp, sp, #20
	ldr	r2, [r2]
	cmp	r2, r3
	ldr	r3, [sp, #40]
	bne	.L1
	sub	r1, r1, #128
	mov	r4, r0
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L1
.L4:
	.word	.L7
	.word	.L5
	.word	.L6
	.word	.L5
	.word	.L3
.L5:
	ldr	r2, .L14+4
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L1
	bl	glfwGetWindowMonitor
	subs	r5, r0, #0
	beq	.L9
	mov	r1, #0
	ldr	r2, .L14+8
	mov	r0, r4
	ldr	r3, [r2, #12]
	ldr	ip, [r2, #8]
	stm	sp, {r3, ip}
	ldr	r3, [r2]
	ldr	r2, [r2, #4]
	str	r1, [sp, #8]
	bl	glfwSetWindowMonitor
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	ldr	r3, [r3]
	ldr	r1, [r2]
	cmp	r3, #0
	bne	.L12
	cmp	r1, #0
	ble	.L1
.L12:
	mov	r0, r4
	sub	r1, r1, #1
	b	.L11
.L7:
	ldr	r3, .L14+16
	ldr	r1, [r3]
	add	r1, r1, #1
.L11:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	set_swap_interval
.L6:
	mov	r1, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	glfwSetWindowShouldClose
.L9:
	bl	glfwGetPrimaryMonitor
	mov	r7, r0
	bl	glfwGetVideoMode
	mov	r6, r0
	ldr	r2, .L14+8
	mov	r0, r4
	add	r1, r2, #4
	bl	glfwGetWindowPos
	ldr	r2, .L14+20
	mov	r0, r4
	add	r1, r2, #4
	bl	glfwGetWindowSize
	ldr	r3, [r6, #8]
	mov	r1, r7
	str	r3, [sp, #8]
	ldr	r3, [r6, #4]
	mov	r0, r4
	str	r3, [sp, #4]
	ldr	r2, [r6]
	mov	r3, r5
	str	r2, [sp]
	mov	r2, r5
	bl	glfwSetWindowMonitor
	b	.L1
.L15:
	.align	2
.L14:
	.word	GLFW_PRESS
	.word	GLFW_MOD_ALT
	.word	.LANCHOR0
	.word	swap_tear
	.word	swap_interval
	.word	.LANCHOR0+8
	.size	key_callback, .-key_callback
	.comm	swap_tear,4,4
	.comm	swap_interval,4,4
	.comm	GLFW_PRESS,4,4
	.comm	GLFW_MOD_ALT,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	y.4252, %object
	.size	y.4252, 4
y.4252:
	.space	4
	.type	x.4251, %object
	.size	x.4251, 4
x.4251:
	.space	4
	.type	height.4254, %object
	.size	height.4254, 4
height.4254:
	.space	4
	.type	width.4253, %object
	.size	width.4253, 4
width.4253:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
