	.file	"extr_traps_64.c_generate_and_check_address.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generate_and_check_address, @function
generate_and_check_address:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r9d, edx
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sar	eax, 20
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdx, QWORD PTR [rdi]
	and	eax, 63
	mov	rbx, QWORD PTR [rdx+rax*8]
	test	r9d, r9d
	je	.L2
	movsx	rbx, ebx
.L3:
	mov	rdi, rbx
	call	address_is_sign_extended@PLT
	test	eax, eax
	je	.L7
	mov	rdi, r12
	call	user_mode@PLT
	test	rax, rax
	jne	.L13
.L6:
	mov	QWORD PTR 0[rbp], rbx
	xor	eax, eax
.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
.L2:
	.cfi_restore_state
	sar	esi, 10
	and	esi, 63
	add	rbx, QWORD PTR [rdx+rsi*8]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	QWORD PTR TASK_SIZE[rip], rbx
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	generate_and_check_address, .-generate_and_check_address
	.comm	TASK_SIZE,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_traps_64.c_generate_and_check_address.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_and_check_address, %function
generate_and_check_address:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	asr	r3, r1, #20
	push	{r4, r5, r6, lr}
	asreq	r1, r1, #10
	mov	r4, r0
	ldr	r0, [r0]
	and	r3, r3, #63
	andeq	r1, r1, #63
	ldr	r5, [r0, r3, lsl #2]
	ldreq	r3, [r0, r1, lsl #2]
	addeq	r5, r5, r3
	mov	r0, r5
	bl	address_is_sign_extended
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	user_mode
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r5
	ble	.L6
.L5:
	ldr	r3, [sp, #16]
	mov	r0, #0
	str	r5, [r3]
	pop	{r4, r5, r6, pc}
.L6:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	TASK_SIZE
	.size	generate_and_check_address, .-generate_and_check_address
	.comm	TASK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
