	.file	"104488.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/kmsg"
.LC1:
	.string	"<20> [%d] %s\n"
	.text
	.globl	fault_log
	.type	fault_log, @function
fault_log:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	DWORD PTR -216[rbp], eax
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	js	.L5
	mov	rcx, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -216[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L1
.L5:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fault_log, .-fault_log
	.section	.rodata
.LC2:
	.string	"inside do_fault"
	.text
	.globl	do_fault
	.type	do_fault, @function
do_fault:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC2[rip]
	call	fault_log
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	do_fault, .-do_fault
	.section	.rodata
.LC3:
	.string	"%d"
.LC4:
	.string	","
.LC5:
	.string	"...\n"
	.align 8
.LC6:
	.string	"I was minding my own business, when..."
	.text
	.globl	delay_then_fault
	.type	delay_then_fault, @function
delay_then_fault:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 1
	jle	.L9
	lea	rax, .LC4[rip]
	jmp	.L10
.L9:
	lea	rax, .LC5[rip]
.L10:
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 1
	call	sleep@PLT
	sub	DWORD PTR -4[rbp], 1
.L8:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L11
	lea	rdi, .LC6[rip]
	call	fault_log
	call	do_fault
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delay_then_fault, .-delay_then_fault
	.section	.rodata
.LC7:
	.string	"-h"
.LC8:
	.string	"--help"
.LC9:
	.string	"Usage fault-test [<delay>]"
.LC10:
	.string	"Doing a segfault in "
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 5
	cmp	DWORD PTR -20[rbp], 1
	jle	.L13
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
.L14:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
.L13:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	delay_then_fault
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"104488.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/kmsg\000"
	.align	2
.LC1:
	.ascii	"<20> [%d] %s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fault_log
	.syntax unified
	.arm
	.fpu softvfp
	.type	fault_log, %function
fault_log:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	str	r0, [fp, #-224]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	str	r0, [fp, #-216]
	mov	r1, #1
	ldr	r0, .L6+4
	bl	open
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	blt	.L5
	sub	r0, fp, #208
	ldr	r3, [fp, #-224]
	ldr	r2, [fp, #-216]
	ldr	r1, .L6+8
	bl	sprintf
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, [fp, #-212]
	bl	write
	ldr	r0, [fp, #-212]
	bl	close
	b	.L1
.L5:
	nop
.L1:
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	fault_log, .-fault_log
	.section	.rodata
	.align	2
.LC3:
	.ascii	"inside do_fault\000"
	.text
	.align	2
	.global	do_fault
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_fault, %function
do_fault:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L9
	bl	fault_log
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.size	do_fault, .-do_fault
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	",\000"
	.align	2
.LC6:
	.ascii	"...\012\000"
	.align	2
.LC7:
	.ascii	"I was minding my own business, when...\000"
	.text
	.align	2
	.global	delay_then_fault
	.syntax unified
	.arm
	.fpu softvfp
	.type	delay_then_fault, %function
delay_then_fault:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r1, [fp, #-8]
	ldr	r0, .L16
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L13
	ldr	r3, .L16+4
	b	.L14
.L13:
	ldr	r3, .L16+8
.L14:
	mov	r0, r3
	bl	printf
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L15
	ldr	r0, .L16+16
	bl	fault_log
	bl	do_fault
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stdout
	.word	.LC7
	.size	delay_then_fault, .-delay_then_fault
	.section	.rodata
	.align	2
.LC8:
	.ascii	"-h\000"
	.align	2
.LC9:
	.ascii	"--help\000"
	.align	2
.LC10:
	.ascii	"Usage fault-test [<delay>]\000"
	.align	2
.LC11:
	.ascii	"Doing a segfault in \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #5
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L19
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L23
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L23+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
.L20:
	ldr	r0, .L23+8
	bl	puts
	mov	r0, #0
	bl	exit
.L21:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
.L19:
	ldr	r0, .L23+12
	bl	printf
	ldr	r0, [fp, #-8]
	bl	delay_then_fault
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
