	.file	"extr_preshader.c_exec_get_arg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Wrapping register index %u, table %u, wrap_size %u, table size %u.\n"
	.text
	.p2align 4
	.type	exec_get_arg, @function
exec_get_arg:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	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, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rsi]
	mov	ebp, DWORD PTR [rsi]
	xor	esi, esi
	cmp	rax, QWORD PTR PRES_REGTAB_COUNT[rip]
	je	.L2
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, eax
	call	exec_get_reg_value@PLT
	call	lrint@PLT
	mov	esi, eax
.L2:
	mov	edi, ebp
	mov	r15d, ebp
	call	get_offset_reg@PLT
	add	r12d, DWORD PTR 4[rbx]
	mov	edi, ebp
	add	r12d, eax
	mov	esi, r12d
	call	get_reg_offset@PLT
	mov	r13d, eax
	mov	rax, QWORD PTR [r14]
	mov	r8d, DWORD PTR [rax+r15*4]
	cmp	r8d, r13d
	ja	.L3
	cmp	DWORD PTR PRES_REGTAB_CONST[rip], ebp
	mov	ebx, r8d
	je	.L14
.L4:
	mov	edx, ebp
	mov	ecx, ebx
	lea	rdi, .LC1[rip]
	mov	esi, r13d
	call	WARN@PLT
	mov	eax, r13d
	xor	edx, edx
	div	ebx
	mov	rax, QWORD PTR [r14]
	cmp	DWORD PTR [rax+r15*4], edx
	ja	.L15
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pxor	xmm0, xmm0
	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
.L15:
	.cfi_restore_state
	mov	esi, edx
	mov	edi, ebp
	call	get_offset_reg@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	get_reg_components@PLT
	xor	edx, edx
	mov	r8d, eax
	mov	eax, r12d
	div	r8d
	lea	r12d, [rbx+rdx]
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, r14
	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
	jmp	exec_get_reg_value@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	ebx, 1
	cmp	r8d, 1
	jbe	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebx, ebx
	cmp	r8d, ebx
	ja	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	exec_get_arg, .-exec_get_arg
	.comm	PRES_REGTAB_COUNT,8,8
	.comm	PRES_REGTAB_CONST,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_preshader.c_exec_get_arg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wrapping register index %u, table %u, wrap_size %u,"
	.ascii	" table size %u.\012\000"
	.global	__aeabi_uidivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_get_arg, %function
exec_get_arg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r3, .L15
	ldr	r1, [r1, #8]
	ldr	r3, [r3]
	mov	r4, r2
	cmp	r1, r3
	mov	r8, r0
	moveq	r1, #0
	ldr	r7, [r5]
	sub	sp, sp, #8
	beq	.L2
	ldr	r2, [r5, #12]
	bl	exec_get_reg_value
	bl	lrint
	mov	r1, r0
.L2:
	mov	r0, r7
	bl	get_offset_reg
	mov	r1, r0
	ldr	r2, [r5, #4]
	mov	r0, r7
	add	r4, r4, r2
	add	r4, r4, r1
	mov	r1, r4
	bl	get_reg_offset
	ldr	r3, [r8]
	mov	r6, r0
	ldr	r3, [r3, r7, lsl #2]
	cmp	r3, r0
	bhi	.L3
	ldr	r2, .L15+4
	ldr	r2, [r2]
	cmp	r2, r7
	movne	r5, r3
	beq	.L13
.L4:
	mov	r2, r7
	mov	r1, r6
	str	r3, [sp]
	ldr	r0, .L15+8
	mov	r3, r5
	bl	WARN
	mov	r1, r5
	mov	r0, r6
	bl	__aeabi_uidivmod
	ldr	r3, [r8]
	ldr	r3, [r3, r7, lsl #2]
	cmp	r3, r1
	bhi	.L14
	mov	r0, #0
	mov	r1, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r7
	bl	get_offset_reg
	mov	r5, r0
	mov	r0, r7
	bl	get_reg_components
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_uidivmod
	add	r4, r5, r1
.L3:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	exec_get_reg_value
.L13:
	cmp	r3, #1
	mov	r5, #1
	bls	.L4
.L5:
	lsl	r5, r5, #1
	cmp	r3, r5
	bhi	.L5
	b	.L4
.L16:
	.align	2
.L15:
	.word	PRES_REGTAB_COUNT
	.word	PRES_REGTAB_CONST
	.word	.LC0
	.size	exec_get_arg, .-exec_get_arg
	.comm	PRES_REGTAB_COUNT,4,4
	.comm	PRES_REGTAB_CONST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
