	.file	"extr_fault-inject.c_should_fail.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	should_fail
	.type	should_fail, @function
should_fail:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	in_task@PLT
	test	rax, rax
	jne	.L36
.L2:
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L34
	cmp	QWORD PTR 24[rbp], 0
	jne	.L7
.L9:
	lea	r13, 12[rbp]
	mov	rdi, r13
	call	atomic_read@PLT
	test	eax, eax
	je	.L34
	lea	r14, 16[rbp]
	mov	rdi, r14
	call	atomic_read@PLT
	cmp	eax, r12d
	jg	.L37
	mov	ecx, DWORD PTR 4[rbp]
	cmp	ecx, 1
	jle	.L13
	mov	eax, DWORD PTR 8[rbp]
	add	eax, 1
	cdq
	mov	DWORD PTR 8[rbp], eax
	idiv	ecx
	test	edx, edx
	jne	.L34
.L13:
	xor	eax, eax
	mov	r12d, DWORD PTR 0[rbp]
	call	prandom_u32@PLT
	movsx	rdx, eax
	mov	ecx, eax
	imul	rdx, rdx, 1374389535
	sar	ecx, 31
	sar	rdx, 37
	sub	edx, ecx
	imul	edx, edx, 100
	sub	eax, edx
	cmp	r12d, eax
	jle	.L34
	mov	rdi, rbp
	call	fail_stacktrace@PLT
	test	eax, eax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L34:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, QWORD PTR current[rip]
	mov	rdi, rbp
	call	fail_task@PLT
	test	eax, eax
	jne	.L9
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rax, QWORD PTR current[rip]
	mov	edi, DWORD PTR [rax]
	call	READ_ONCE@PLT
	test	eax, eax
	je	.L2
	lea	esi, -1[rax]
	mov	rax, QWORD PTR current[rip]
	mov	edi, DWORD PTR [rax]
	call	WRITE_ONCE@PLT
	test	eax, eax
	jne	.L34
	lea	r13, 12[rbp]
.L5:
	mov	rdi, rbp
	mov	r12d, 1
	call	fail_dump@PLT
	mov	rdi, r13
	call	atomic_read@PLT
	cmp	eax, -1
	je	.L1
	mov	rdi, r13
	call	atomic_dec_not_zero@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rsi, r14
	mov	edi, r12d
	call	atomic_sub@PLT
	jmp	.L34
	.cfi_endproc
.LFE0:
	.size	should_fail, .-should_fail
	.comm	current,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_fault-inject.c_should_fail.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	should_fail
	.syntax unified
	.arm
	.fpu softvfp
	.type	should_fail, %function
should_fail:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	bl	in_task
	cmp	r0, #0
	bne	.L38
.L2:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L7
.L9:
	add	r6, r4, #12
	mov	r0, r6
	bl	atomic_read
	cmp	r0, #0
	beq	.L36
	add	r7, r4, #16
	mov	r0, r7
	bl	atomic_read
	cmp	r0, r5
	bgt	.L39
	ldr	r1, [r4, #4]
	cmp	r1, #1
	ble	.L13
	ldr	r0, [r4, #8]
	add	r0, r0, #1
	str	r0, [r4, #8]
	bl	__aeabi_idivmod
	cmp	r1, #0
	bne	.L36
.L13:
	ldr	r5, [r4]
	bl	prandom_u32
	ldr	r2, .L41
	asr	r3, r0, #31
	smull	r1, r2, r0, r2
	rsb	r3, r3, r2, asr #5
	add	r3, r3, r3, lsl #2
	add	r3, r3, r3, lsl #2
	sub	r3, r0, r3, lsl #2
	cmp	r5, r3
	ble	.L36
	mov	r0, r4
	bl	fail_stacktrace
	cmp	r0, #0
	bne	.L5
.L36:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L41+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	fail_task
	cmp	r0, #0
	bne	.L9
	b	.L36
.L38:
	ldr	r6, .L41+4
	ldr	r3, [r6]
	ldr	r0, [r3]
	bl	READ_ONCE
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r6]
	sub	r1, r0, #1
	ldr	r0, [r3]
	bl	WRITE_ONCE
	cmp	r0, #0
	bne	.L36
	add	r6, r4, #12
.L5:
	mov	r0, r4
	bl	fail_dump
	mov	r0, r6
	bl	atomic_read
	cmn	r0, #1
	bne	.L40
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L39:
	mov	r1, r7
	mov	r0, r5
	bl	atomic_sub
	b	.L36
.L40:
	mov	r0, r6
	bl	atomic_dec_not_zero
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L42:
	.align	2
.L41:
	.word	1374389535
	.word	current
	.size	should_fail, .-should_fail
	.comm	current,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
