	.file	"489839.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/489839.c"
.LC1:
	.string	"mac != NULL"
.LC2:
	.string	"255.255.255.255"
.LC3:
	.string	":"
	.text
	.globl	send_dhcp_discovery
	.type	send_dhcp_discovery, @function
send_dhcp_discovery:
.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, 384
	mov	QWORD PTR -376[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	lea	rdx, -288[rbp]
	mov	eax, 0
	mov	ecx, 30
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	cmp	QWORD PTR -376[rbp], 0
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 47
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rcx, QWORD PTR -376[rbp]
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -348[rbp], eax
	mov	DWORD PTR -356[rbp], 1
	lea	rdx, -356[rbp]
	mov	eax, DWORD PTR -348[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -344[rbp], eax
	mov	edi, 67
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	mov	WORD PTR -304[rbp], 2
	lea	rdi, .LC2[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	BYTE PTR -288[rbp], 1
	mov	BYTE PTR -287[rbp], 1
	mov	BYTE PTR -286[rbp], 6
	mov	BYTE PTR -285[rbp], 0
	call	random@PLT
	mov	DWORD PTR -340[rbp], eax
	mov	eax, DWORD PTR -340[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -284[rbp], eax
	mov	edi, 0
	call	htons@PLT
	mov	WORD PTR -280[rbp], ax
	mov	WORD PTR -278[rbp], 0
	mov	rax, QWORD PTR -376[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	DWORD PTR -352[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -328[rbp]
	mov	rax, QWORD PTR -320[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strtok_r@PLT
	mov	QWORD PTR -312[rbp], rax
	lea	rcx, -336[rbp]
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -340[rbp], eax
	mov	eax, DWORD PTR -340[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -352[rbp]
	cdqe
	mov	BYTE PTR -260[rbp+rax], dl
	mov	QWORD PTR -320[rbp], 0
	add	DWORD PTR -352[rbp], 1
.L3:
	cmp	DWORD PTR -352[rbp], 5
	jle	.L4
	mov	BYTE PTR -52[rbp], 99
	mov	BYTE PTR -51[rbp], -126
	mov	BYTE PTR -50[rbp], 83
	mov	BYTE PTR -49[rbp], 99
	mov	BYTE PTR -48[rbp], 53
	mov	BYTE PTR -47[rbp], 1
	mov	BYTE PTR -46[rbp], 1
	lea	rdx, -304[rbp]
	lea	rsi, -288[rbp]
	mov	eax, DWORD PTR -348[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 243
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -344[rbp], eax
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	send_dhcp_discovery, .-send_dhcp_discovery
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 20
__PRETTY_FUNCTION__.0:
	.string	"send_dhcp_discovery"
	.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	"489839.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/489839.c\000"
	.align	2
.LC1:
	.ascii	"mac != NULL\000"
	.align	2
.LC2:
	.ascii	"255.255.255.255\000"
	.align	2
.LC3:
	.ascii	":\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_dhcp_discovery
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_dhcp_discovery, %function
send_dhcp_discovery:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #336
	str	r0, [fp, #-328]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	sub	r3, fp, #284
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	sub	r3, fp, #268
	mov	r2, #243
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-328]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L7+4
	mov	r2, #47
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	bl	__assert_fail
.L2:
	sub	r3, fp, #24
	mov	r2, #16
	ldr	r1, [fp, #-328]
	mov	r0, r3
	bl	strncpy
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-300]
	mov	r3, #1
	str	r3, [fp, #-320]
	sub	r3, fp, #320
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-300]
	bl	setsockopt
	str	r0, [fp, #-296]
	mov	r0, #67
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #280
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #280
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L7+16
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-280]
	mov	r3, #1
	strb	r3, [fp, #-268]
	mov	r3, #1
	strb	r3, [fp, #-267]
	mov	r3, #6
	strb	r3, [fp, #-266]
	mov	r3, #0
	strb	r3, [fp, #-265]
	bl	random
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-264]
	mov	r0, #0
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #264
	strh	r2, [r3, #8]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #264
	mov	r2, #0
	strh	r2, [r3, #10]	@ movhi
	ldr	r3, [fp, #-328]
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L3
.L4:
	sub	r3, fp, #312
	mov	r2, r3
	ldr	r1, .L7+20
	ldr	r0, [fp, #-304]
	bl	strtok_r
	str	r0, [fp, #-288]
	sub	r3, fp, #316
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-288]
	bl	strtol
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	and	r1, r3, #255
	sub	r2, fp, #240
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L3:
	ldr	r3, [fp, #-308]
	cmp	r3, #5
	ble	.L4
	mov	r3, #99
	strb	r3, [fp, #-32]
	mvn	r3, #125
	strb	r3, [fp, #-31]
	mov	r3, #83
	strb	r3, [fp, #-30]
	mov	r3, #99
	strb	r3, [fp, #-29]
	mov	r3, #53
	strb	r3, [fp, #-28]
	mov	r3, #1
	strb	r3, [fp, #-27]
	mov	r3, #1
	strb	r3, [fp, #-26]
	sub	r1, fp, #268
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #284
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #243
	ldr	r0, [fp, #-300]
	bl	sendto
	str	r0, [fp, #-296]
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC4
	.word	__PRETTY_FUNCTION__.7016
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	send_dhcp_discovery, .-send_dhcp_discovery
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7016, %object
	.size	__PRETTY_FUNCTION__.7016, 20
__PRETTY_FUNCTION__.7016:
	.ascii	"send_dhcp_discovery\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
