	.file	"extr_pad.c_PAD_Clamp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PAD_Clamp
	.type	PAD_Clamp, @function
PAD_Clamp:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR PAD_CHANMAX[rip], 0
	je	.L7
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbp, 1
	add	rbx, 32
	cmp	QWORD PTR PAD_CHANMAX[rip], rbp
	jbe	.L11
.L4:
	mov	rax, QWORD PTR PAD_ERR_NONE[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L3
	mov	rax, QWORD PTR __pad_clampregion[rip]
	lea	rsi, 24[rbx]
	lea	rdi, 28[rbx]
	mov	ecx, DWORD PTR 16[rax]
	mov	edx, DWORD PTR 12[rax]
	mov	r8d, DWORD PTR 8[rax]
	call	__pad_clampstick@PLT
	mov	rax, QWORD PTR __pad_clampregion[rip]
	lea	rsi, 16[rbx]
	lea	rdi, 20[rbx]
	mov	ecx, DWORD PTR 28[rax]
	mov	edx, DWORD PTR 24[rax]
	mov	r8d, DWORD PTR 20[rax]
	call	__pad_clampstick@PLT
	lea	rdi, 12[rbx]
	call	__pad_clamptrigger@PLT
	lea	rdi, 8[rbx]
	call	__pad_clamptrigger@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	add	rsp, 8
	.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
.L7:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	PAD_Clamp, .-PAD_Clamp
	.comm	__pad_clampregion,8,8
	.comm	PAD_ERR_NONE,8,8
	.comm	PAD_CHANMAX,8,8
	.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_pad.c_PAD_Clamp.c"
	.text
	.align	2
	.global	PAD_Clamp
	.syntax unified
	.arm
	.fpu softvfp
	.type	PAD_Clamp, %function
PAD_Clamp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L11
	sub	sp, sp, #8
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L1
	mov	r5, #0
	ldr	r7, .L11+4
	ldr	r8, .L11+8
	add	r4, r0, #24
	b	.L4
.L3:
	ldr	r3, [r6]
	add	r4, r4, #28
	cmp	r3, r5
	bls	.L1
.L4:
	ldr	r2, [r4, #-24]
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r2, r3
	bne	.L3
	ldr	r0, [r8]
	sub	r1, r4, #4
	add	r0, r0, #8
	ldm	r0, {r0, r2, r3}
	str	r0, [sp]
	mov	r0, r4
	bl	__pad_clampstick
	ldr	r0, [r8]
	sub	r1, r4, #12
	add	r0, r0, #20
	ldm	r0, {r0, r2, r3}
	str	r0, [sp]
	sub	r0, r4, #8
	bl	__pad_clampstick
	sub	r0, r4, #16
	bl	__pad_clamptrigger
	sub	r0, r4, #20
	bl	__pad_clamptrigger
	ldr	r3, [r6]
	add	r4, r4, #28
	cmp	r3, r5
	bhi	.L4
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	PAD_CHANMAX
	.word	PAD_ERR_NONE
	.word	__pad_clampregion
	.size	PAD_Clamp, .-PAD_Clamp
	.comm	__pad_clampregion,4,4
	.comm	PAD_ERR_NONE,4,4
	.comm	PAD_CHANMAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
