	.file	"extr_dhcp.c_send_DHCP_DISCOVER.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	send_DHCP_DISCOVER
	.type	send_DHCP_DISCOVER, @function
send_DHCP_DISCOVER:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	makeDHCPMSG@PLT
	mov	rsi, QWORD PTR pDHCPMSG[rip]
	mov	edx, DWORD PTR dhcpMessageType[rip]
	movabs	rdi, 4294967303
	mov	rbx, QWORD PTR HOST_NAME[rip]
	mov	rax, QWORD PTR [rsi]
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR DHCP_DISCOVER[rip]
	mov	QWORD PTR 32[rax], rdi
	mov	DWORD PTR 24[rax], edx
	mov	edx, DWORD PTR dhcpClientIdentifier[rip]
	mov	DWORD PTR 20[rax], 1
	mov	DWORD PTR 28[rax], edx
	mov	rdx, QWORD PTR DHCP_CHADDR[rip]
	mov	rcx, QWORD PTR [rdx]
	mov	r9, QWORD PTR 24[rdx]
	mov	r8, QWORD PTR 32[rdx]
	mov	rdi, QWORD PTR 40[rdx]
	mov	DWORD PTR 40[rax], ecx
	mov	rcx, QWORD PTR 8[rdx]
	mov	DWORD PTR 44[rax], ecx
	mov	rcx, QWORD PTR 16[rdx]
	mov	edx, DWORD PTR hostName[rip]
	mov	DWORD PTR 52[rax], r9d
	mov	DWORD PTR 48[rax], ecx
	mov	DWORD PTR 56[rax], r8d
	mov	DWORD PTR 60[rax], edi
	mov	DWORD PTR 64[rax], edx
	mov	DWORD PTR 68[rax], 0
	mov	r11d, DWORD PTR [rbx]
	test	r11d, r11d
	je	.L8
	xor	r10d, r10d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR 72[rax+r10*4], r11d
	lea	rdx, 19[r10]
	mov	rcx, r10
	add	r10, 1
	mov	r11d, DWORD PTR [rbx+r10*4]
	test	r11d, r11d
	jne	.L3
	sal	rdx, 2
	lea	ebx, 3[r10]
	add	rcx, 31
	mov	DWORD PTR 4[rsp], ebx
	lea	rbx, 24[rdx]
	lea	r15, 4[rdx]
	mov	QWORD PTR 8[rsp], rbx
	lea	rbx, 28[rdx]
	lea	r14, 8[rdx]
	mov	QWORD PTR 16[rsp], rbx
	lea	rbx, 32[rdx]
	lea	r13, 12[rdx]
	mov	QWORD PTR 24[rsp], rbx
	lea	r12, 16[rdx]
	lea	rbp, 20[rdx]
	lea	rbx, 36[rdx]
	lea	r11, 40[rdx]
	lea	r10, 44[rdx]
.L2:
	mov	DWORD PTR [rax+rdx], r9d
	mov	rdx, QWORD PTR dhcpParamRequest[rip]
	mov	DWORD PTR [rax+r15], r8d
	mov	DWORD PTR [rax+r14], edi
	mov	edi, DWORD PTR 4[rsp]
	mov	DWORD PTR 68[rax], edi
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax+r13], edx
	mov	DWORD PTR [rax+r12], 6
	mov	edx, DWORD PTR subnetMask[rip]
	mov	DWORD PTR [rax+rbp], edx
	mov	edx, DWORD PTR routersOnSubnet[rip]
	mov	DWORD PTR [rax+rdi], edx
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR dns[rip]
	mov	DWORD PTR [rax+rdi], edx
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR domainName[rip]
	mov	DWORD PTR [rax+rdi], edx
	mov	edx, DWORD PTR dhcpT1value[rip]
	mov	rdi, QWORD PTR OPT_SIZE[rip]
	mov	DWORD PTR [rax+rbx], edx
	mov	edx, DWORD PTR dhcpT2value[rip]
	mov	DWORD PTR [rax+r11], edx
	mov	edx, DWORD PTR endOption[rip]
	mov	DWORD PTR [rax+r10], edx
	cmp	rdi, rcx
	jbe	.L6
	lea	rdx, [rax+rcx*4]
	lea	rax, [rax+rdi*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [rdx], 0
	add	rdx, 4
	cmp	rax, rdx
	jne	.L5
.L6:
	mov	r8d, DWORD PTR DHCP_SERVER_PORT[rip]
	mov	edx, DWORD PTR RIP_MSG_SIZE[rip]
	movabs	rax, 1095216660735
	lea	rcx, 32[rsp]
	mov	edi, DWORD PTR DHCP_SOCKET[rip]
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 40[rsp], rax
	call	sendto@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	QWORD PTR 24[rsp], 104
	mov	ecx, 30
	mov	r10d, 116
	mov	r11d, 112
	mov	ebx, 108
	mov	ebp, 92
	mov	edx, 72
	mov	QWORD PTR 16[rsp], 100
	mov	QWORD PTR 8[rsp], 96
	mov	r12d, 88
	mov	r13d, 84
	mov	r14d, 80
	mov	DWORD PTR 4[rsp], 3
	mov	r15d, 76
	jmp	.L2
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_DHCP_DISCOVER, .-send_DHCP_DISCOVER
	.comm	subnetMask,4,4
	.comm	routersOnSubnet,4,4
	.comm	pDHCPMSG,8,8
	.comm	hostName,4,4
	.comm	endOption,4,4
	.comm	domainName,4,4
	.comm	dns,4,4
	.comm	dhcpT2value,4,4
	.comm	dhcpT1value,4,4
	.comm	dhcpParamRequest,8,8
	.comm	dhcpMessageType,4,4
	.comm	dhcpClientIdentifier,4,4
	.comm	RIP_MSG_SIZE,4,4
	.comm	OPT_SIZE,8,8
	.comm	HOST_NAME,8,8
	.comm	DHCP_SOCKET,4,4
	.comm	DHCP_SERVER_PORT,4,4
	.comm	DHCP_DISCOVER,4,4
	.comm	DHCP_CHADDR,8,8
	.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_dhcp.c_send_DHCP_DISCOVER.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_DHCP_DISCOVER
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_DHCP_DISCOVER, %function
send_DHCP_DISCOVER:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	sub	sp, sp, #68
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	bl	makeDHCPMSG
	mov	lr, #7
	mov	r0, #1
	mov	r5, #0
	ldr	r2, .L15+4
	ldr	r3, .L15+8
	ldr	r1, [r2]
	ldr	ip, .L15+12
	ldr	r2, [r3]
	ldr	ip, [ip]
	ldr	r3, [r1]
	ldr	r4, .L15+16
	str	ip, [r3, #28]
	ldr	r4, [r4]
	ldr	ip, [r2]
	ldr	r7, .L15+20
	str	r4, [r3, #16]
	ldr	r7, [r7]
	ldr	r4, .L15+24
	str	lr, [r3, #32]
	ldr	r6, .L15+28
	ldr	lr, [r2, #4]
	str	ip, [r3, #40]
	ldr	ip, [r2, #8]
	ldr	r6, [r6]
	str	r7, [r3, #24]
	str	lr, [r3, #44]
	ldr	r7, [r4]
	ldr	lr, [r2, #16]
	ldr	r4, [r2, #12]
	str	ip, [r3, #48]
	ldr	ip, [r2, #20]
	str	r4, [r3, #52]
	str	lr, [r3, #56]
	str	ip, [r3, #60]
	str	r6, [r3, #64]
	str	r0, [r3, #20]
	str	r0, [r3, #36]
	str	r5, [r3, #68]
	ldr	r6, [r7]
	cmp	r6, r5
	beq	.L8
	add	r8, r3, #68
.L3:
	str	r6, [r8, #4]!
	ldr	r6, [r7, #4]!
	mov	r0, r5
	cmp	r6, #0
	add	r2, r5, #19
	add	r5, r5, #1
	bne	.L3
	lsl	r2, r2, #2
	add	r5, r2, #12
	str	r5, [sp, #12]
	add	r5, r2, #16
	str	r5, [sp, #16]
	add	r5, r2, #20
	str	r5, [sp, #20]
	add	r5, r2, #24
	str	r5, [sp, #24]
	add	r5, r2, #28
	str	r5, [sp, #28]
	add	r5, r2, #32
	str	r5, [sp, #32]
	add	r5, r2, #36
	add	r9, r0, #4
	add	fp, r2, #4
	add	r10, r2, #8
	str	r5, [sp, #36]
	add	r8, r2, #40
	add	r7, r2, #44
	add	r0, r0, #31
.L2:
	mov	r5, #6
	ldr	r6, .L15+32
	str	r4, [r3, r2]
	ldr	r4, [r6]
	str	lr, [r3, fp]
	str	ip, [r3, r10]
	ldr	ip, [sp, #12]
	str	r9, [r3, #68]
	str	r4, [r3, ip]
	ldr	ip, [sp, #16]
	ldr	r2, .L15+36
	str	r5, [r3, ip]
	ldr	ip, [r2]
	ldr	lr, [sp, #20]
	ldr	r2, .L15+40
	str	ip, [r3, lr]
	ldr	ip, [r2]
	ldr	lr, [sp, #24]
	ldr	r2, .L15+44
	str	ip, [r3, lr]
	ldr	ip, [r2]
	ldr	lr, [sp, #28]
	ldr	r2, .L15+48
	str	ip, [r3, lr]
	ldr	ip, [r2]
	ldr	lr, [sp, #32]
	ldr	r2, .L15+52
	str	ip, [r3, lr]
	ldr	ip, [r2]
	ldr	lr, [sp, #36]
	ldr	r2, .L15+56
	str	ip, [r3, lr]
	ldr	lr, [r2]
	ldr	r2, .L15+60
	ldr	ip, .L15+64
	ldr	r2, [r2]
	str	lr, [r3, r8]
	ldr	ip, [ip]
	cmp	r2, r0
	str	ip, [r3, r7]
	bls	.L6
	mov	ip, #0
	add	r2, r3, r2, lsl #2
	sub	r0, r0, #-1073741823
	add	r3, r3, r0, lsl #2
	sub	r2, r2, #4
.L5:
	str	ip, [r3, #4]!
	cmp	r2, r3
	bne	.L5
.L6:
	mov	ip, #255
	ldr	r3, .L15+68
	ldr	r2, .L15+72
	ldr	r0, [r3]
	ldr	r3, .L15+76
	str	r0, [sp]
	ldr	r2, [r2]
	ldr	r0, [r3]
	add	r3, sp, #44
	str	ip, [sp, #44]
	str	ip, [sp, #48]
	str	ip, [sp, #52]
	str	ip, [sp, #56]
	bl	sendto
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r2, #108
	str	r2, [sp, #36]
	mov	r2, #104
	str	r2, [sp, #32]
	mov	r2, #100
	str	r2, [sp, #28]
	mov	r2, #96
	str	r2, [sp, #24]
	mov	r2, #92
	str	r2, [sp, #20]
	mov	r2, #88
	str	r2, [sp, #16]
	mov	r2, #84
	mov	r0, #30
	str	r2, [sp, #12]
	mov	r7, #116
	mov	r8, #112
	mov	r9, #3
	mov	r10, #80
	mov	fp, #76
	mov	r2, #72
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	pDHCPMSG
	.word	DHCP_CHADDR
	.word	dhcpClientIdentifier
	.word	dhcpMessageType
	.word	DHCP_DISCOVER
	.word	HOST_NAME
	.word	hostName
	.word	dhcpParamRequest
	.word	subnetMask
	.word	routersOnSubnet
	.word	dns
	.word	domainName
	.word	dhcpT1value
	.word	dhcpT2value
	.word	OPT_SIZE
	.word	endOption
	.word	DHCP_SERVER_PORT
	.word	RIP_MSG_SIZE
	.word	DHCP_SOCKET
	.size	send_DHCP_DISCOVER, .-send_DHCP_DISCOVER
	.comm	subnetMask,4,4
	.comm	routersOnSubnet,4,4
	.comm	pDHCPMSG,4,4
	.comm	hostName,4,4
	.comm	endOption,4,4
	.comm	domainName,4,4
	.comm	dns,4,4
	.comm	dhcpT2value,4,4
	.comm	dhcpT1value,4,4
	.comm	dhcpParamRequest,4,4
	.comm	dhcpMessageType,4,4
	.comm	dhcpClientIdentifier,4,4
	.comm	RIP_MSG_SIZE,4,4
	.comm	OPT_SIZE,4,4
	.comm	HOST_NAME,4,4
	.comm	DHCP_SOCKET,4,4
	.comm	DHCP_SERVER_PORT,4,4
	.comm	DHCP_DISCOVER,4,4
	.comm	DHCP_CHADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
