	.file	"1184836.c"
	.intel_syntax noprefix
	.text
	.local	nqueue
	.comm	nqueue,4,4
	.section	.rodata
.LC0:
	.string	"signum=%d,nqueue=%d\n"
	.text
	.globl	sigio_handler
	.type	sigio_handler, @function
sigio_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 29
	jne	.L2
	mov	eax, DWORD PTR nqueue[rip]
	add	eax, 1
	mov	DWORD PTR nqueue[rip], eax
.L2:
	mov	edx, DWORD PTR nqueue[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sigio_handler, .-sigio_handler
	.local	recv_buf
	.comm	recv_buf,6000,32
	.section	.rodata
.LC1:
	.string	"use: %s ip_add port\n"
.LC2:
	.string	"Create socket failed"
.LC3:
	.string	"Bind socket failed"
.LC4:
	.string	"Fcntl F_SETOWN "
.LC5:
	.string	"Ioctl FIOASYNC"
.LC6:
	.string	"get ready"
.LC7:
	.string	"recv %d byte(s),msg is %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 464
	mov	DWORD PTR -452[rbp], edi
	mov	QWORD PTR -464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -444[rbp], 1
	cmp	DWORD PTR -452[rbp], 3
	je	.L5
	mov	rax, QWORD PTR -464[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, -432[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -432[rbp], 2
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -432[rbp]
	add	rdx, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -464[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -430[rbp], ax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], -1
	jne	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rcx, -432[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, sigio_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 29
	call	sigaction@PLT
	call	getpid@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 8
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdx, -444[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 21586
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -416[rbp]
	mov	esi, 29
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L15:
	lea	rdx, -288[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	jmp	.L11
.L12:
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
.L11:
	mov	eax, DWORD PTR nqueue[rip]
	test	eax, eax
	je	.L12
	mov	edx, 1500
	mov	esi, 0
	lea	rdi, recv_buf[rip]
	call	memset@PLT
	mov	eax, DWORD PTR -440[rbp]
	mov	ecx, 64
	mov	edx, 1500
	lea	rsi, recv_buf[rip]
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L13
	mov	DWORD PTR nqueue[rip], 0
.L13:
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	cmp	DWORD PTR -436[rbp], 0
	js	.L15
	mov	eax, DWORD PTR -436[rbp]
	lea	rdx, recv_buf[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
	.cfi_endproc
.LFE7:
	.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	"1184836.c"
	.text
	.local	nqueue
	.comm	nqueue,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"signum=%d,nqueue=%d\012\000"
	.text
	.align	2
	.global	sigio_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigio_handler, %function
sigio_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	bne	.L2
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L4+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	nqueue
	.word	.LC0
	.size	sigio_handler, .-sigio_handler
	.local	recv_buf
	.comm	recv_buf,6000,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"use: %s ip_add port\012\000"
	.align	2
.LC2:
	.ascii	"Create socket failed\000"
	.align	2
.LC3:
	.ascii	"Bind socket failed\000"
	.align	2
.LC4:
	.ascii	"Fcntl F_SETOWN \000"
	.align	2
.LC5:
	.ascii	"Ioctl FIOASYNC\000"
	.align	2
.LC6:
	.ascii	"get ready\000"
	.align	2
.LC7:
	.ascii	"recv %d byte(s),msg is %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	str	r0, [fp, #-440]
	str	r1, [fp, #-444]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-432]
	ldr	r3, [fp, #-440]
	cmp	r3, #3
	beq	.L7
	ldr	r3, [fp, #-444]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+4
	bl	printf
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #420
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #416
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-444]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #420
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	inet_aton
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-444]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-444]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #416
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L19+8
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #420
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-428]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L19+12
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L19+16
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #29
	bl	sigaction
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	mov	r1, #8
	ldr	r0, [fp, #-428]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L19+20
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #432
	mov	r2, r3
	ldr	r1, .L19+24
	ldr	r0, [fp, #-428]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L19+28
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #404
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #404
	mov	r1, #29
	mov	r0, r3
	bl	sigaddset
	ldr	r0, .L19+32
	bl	puts
.L17:
	sub	r2, fp, #276
	sub	r3, fp, #404
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	b	.L13
.L14:
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigsuspend
.L13:
	ldr	r3, .L19+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r2, .L19+40
	mov	r1, #0
	ldr	r0, .L19+44
	bl	memset
	mov	r3, #64
	ldr	r2, .L19+40
	ldr	r1, .L19+44
	ldr	r0, [fp, #-428]
	bl	recv
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmn	r3, #1
	bne	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L15
	ldr	r3, .L19+36
	mov	r2, #0
	str	r2, [r3]
.L15:
	sub	r3, fp, #276
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	blt	.L17
	ldr	r2, .L19+44
	ldr	r1, [fp, #-424]
	ldr	r0, .L19+48
	bl	printf
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	sigio_handler
	.word	.LC4
	.word	21586
	.word	.LC5
	.word	.LC6
	.word	nqueue
	.word	1500
	.word	recv_buf
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
