	.file	"extr_4272.c_open_socket.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error: open_socket: Unable to open socket.\n"
	.align 8
.LC1:
	.string	"Error: open_socket: setsockopt failed.\n"
	.text
	.p2align 4
	.globl	open_socket
	.type	open_socket, @function
open_socket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR IPPROTO_UDP[rip]
	mov	esi, DWORD PTR SOCK_RAW[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR AF_INET[rip]
	mov	DWORD PTR 4[rsp], 1
	call	socket@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L8
.L2:
	lea	r13, 4[rsp]
	mov	edx, DWORD PTR IP_HDRINCL[rip]
	mov	esi, DWORD PTR IPPROTO_IP[rip]
	mov	edi, r12d
	mov	r8d, 4
	mov	rcx, r13
	call	setsockopt@PLT
	test	rax, rax
	js	.L9
.L3:
	mov	edx, DWORD PTR SO_BROADCAST[rip]
	mov	esi, DWORD PTR IPPROTO_IP[rip]
	mov	rcx, r13
	mov	edi, r12d
	mov	r8d, 4
	call	setsockopt@PLT
	test	rax, rax
	js	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	open_socket, .-open_socket
	.comm	stderr,4,4
	.comm	SO_BROADCAST,4,4
	.comm	SOCK_RAW,4,4
	.comm	IP_HDRINCL,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	IPPROTO_IP,4,4
	.comm	EXIT_FAILURE,4,4
	.comm	AF_INET,4,4
	.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_4272.c_open_socket.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error: open_socket: Unable to open socket.\012\000"
	.align	2
.LC1:
	.ascii	"Error: open_socket: setsockopt failed.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_socket, %function
open_socket:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #1
	push	{r4, r5, lr}
	ldr	r2, .L12
	ldr	r1, .L12+4
	ldr	r0, .L12+8
	ldr	ip, .L12+12
	sub	sp, sp, #20
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	r3, [sp, #8]
	bl	socket
	subs	r4, r0, #0
	blt	.L8
.L2:
	mov	r2, #4
	ldr	r3, .L12+16
	ldr	r5, .L12+20
	str	r2, [sp]
	ldr	r2, [r3]
	mov	r0, r4
	ldr	r1, [r5]
	add	r3, sp, #8
	bl	setsockopt
	cmp	r0, #0
	blt	.L9
.L3:
	mov	r0, #4
	ldr	r2, .L12+24
	str	r0, [sp]
	ldr	r1, [r5]
	mov	r0, r4
	ldr	r2, [r2]
	add	r3, sp, #8
	bl	setsockopt
	cmp	r0, #0
	blt	.L10
.L1:
	ldr	r3, .L12+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	ldr	r3, .L12+28
	ldr	r1, .L12+32
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L12+36
	ldr	r0, [r3]
	bl	exit
	b	.L2
.L10:
	ldr	r3, .L12+28
	ldr	r1, .L12+40
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L12+36
	ldr	r0, [r3]
	bl	exit
	b	.L1
.L9:
	ldr	r3, .L12+28
	ldr	r1, .L12+40
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L12+36
	ldr	r0, [r3]
	bl	exit
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	IPPROTO_UDP
	.word	SOCK_RAW
	.word	AF_INET
	.word	.LC2
	.word	IP_HDRINCL
	.word	IPPROTO_IP
	.word	SO_BROADCAST
	.word	stderr
	.word	.LC0
	.word	EXIT_FAILURE
	.word	.LC1
	.size	open_socket, .-open_socket
	.comm	stderr,4,4
	.comm	SO_BROADCAST,4,4
	.comm	SOCK_RAW,4,4
	.comm	IP_HDRINCL,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	IPPROTO_IP,4,4
	.comm	EXIT_FAILURE,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
