	.file	"374298.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Caught SIGXFSZ: soft file size limit exceeded.\n"
	.text
	.globl	xfsz_handler
	.type	xfsz_handler, @function
xfsz_handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 1
	mov	edi, 25
	call	signal@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	lea	rsi, xfsz_handler[rip]
	mov	edi, 25
	call	signal@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	xfsz_handler, .-xfsz_handler
	.section	.rodata
.LC1:
	.string	"Hello,World!\n"
.LC2:
	.string	"w"
.LC3:
	.string	"file.txt"
.LC4:
	.string	"setrlimit error"
.LC5:
	.string	"Writting to file!"
.LC6:
	.string	"write error"
.LC7:
	.string	"done..."
	.text
	.globl	test_sigxfsz
	.type	test_sigxfsz, @function
test_sigxfsz:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], 8
	mov	QWORD PTR -24[rbp], 16
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	setrlimit@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L3:
	lea	rsi, xfsz_handler[rip]
	mov	edi, 25
	call	signal@PLT
	cmp	QWORD PTR -40[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	test_sigxfsz, .-test_sigxfsz
	.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	"374298.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Caught SIGXFSZ: soft file size limit exceeded.\012\000"
	.text
	.align	2
	.global	xfsz_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfsz_handler, %function
xfsz_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #1
	mov	r0, #25
	bl	signal
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	ldr	r1, .L2+8
	mov	r0, #25
	bl	signal
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.word	xfsz_handler
	.size	xfsz_handler, .-xfsz_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Hello,World!\012\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"file.txt\000"
	.align	2
.LC4:
	.ascii	"setrlimit error\000"
	.align	2
.LC5:
	.ascii	"Writting to file!\000"
	.align	2
.LC6:
	.ascii	"write error\000"
	.align	2
.LC7:
	.ascii	"done...\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_sigxfsz
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_sigxfsz, %function
test_sigxfsz:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	str	r3, [fp, #-24]
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	fopen
	str	r0, [fp, #-20]
	mov	r3, #8
	str	r3, [fp, #-16]
	mov	r3, #16
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #1
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L9+16
	bl	perror
.L5:
	ldr	r1, .L9+20
	mov	r0, #25
	bl	signal
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r1, r0
	ldr	r3, [fp, #-20]
	mov	r2, #1
	ldr	r0, [fp, #-24]
	bl	fwrite
	ldr	r0, .L9+24
	bl	puts
	b	.L7
.L6:
	ldr	r0, .L9+28
	bl	perror
.L7:
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, .L9+32
	bl	puts
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	xfsz_handler
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	test_sigxfsz, .-test_sigxfsz
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
