	.file	"extr_dhclient.c_packet_to_lease.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"dhcpoffer: no memory to record lease."
	.align 8
.LC1:
	.string	"dhcpoffer: no memory for option %d"
	.align 8
.LC2:
	.string	"Invalid lease option - ignoring offer"
	.align 8
.LC3:
	.string	"dhcpoffer: no memory for server name."
	.align 8
.LC4:
	.string	"dhcpoffer: no memory for filename."
	.text
	.p2align 4
	.globl	packet_to_lease
	.type	packet_to_lease, @function
packet_to_lease:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	edi, 56
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L23
	mov	edx, 56
	xor	esi, esi
	mov	rdi, rax
	xor	ebx, ebx
	call	memset@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	rbx, 256
	je	.L24
.L6:
	mov	rax, QWORD PTR 8[r12]
	mov	rbp, rbx
	sal	rbp, 4
	mov	edi, DWORD PTR [rax+rbp]
	test	edi, edi
	je	.L4
	mov	r14, QWORD PTR 48[r13]
	add	edi, 1
	call	malloc@PLT
	add	r14, rbp
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 48[r13]
	mov	rdi, QWORD PTR [rax+rbp]
	test	rdi, rdi
	je	.L25
	mov	rax, QWORD PTR 8[r12]
	add	rax, rbp
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR 48[r13]
	mov	esi, ebx
	mov	rdi, r13
	movsx	rax, DWORD PTR [rax+rbp]
	add	rdx, rbp
	mov	QWORD PTR 8[rdx], rax
	mov	rdx, QWORD PTR [rdx]
	mov	BYTE PTR [rdx+rax], 0
	call	check_option@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC2[rip]
	call	warning@PLT
	mov	rdi, r13
	xor	r13d, r13d
	call	free_client_lease@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	esi, ebx
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	warning@PLT
	mov	rdi, r13
	xor	r13d, r13d
	call	free_client_lease@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	mov	rdi, QWORD PTR 40[r13]
	mov	rsi, QWORD PTR [r12]
	mov	edx, 4
	mov	DWORD PTR 32[r13], 4
	call	memcpy@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR 24[r13]
	mov	DWORD PTR 16[r13], 4
	mov	edx, 4
	lea	rsi, 4[rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR DHO_DHCP_OPTION_OVERLOAD[rip]
	sal	rax, 4
	add	rax, QWORD PTR 8[r12]
	mov	r8d, DWORD PTR [rax]
	test	r8d, r8d
	jne	.L26
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	jne	.L14
.L12:
	mov	rax, QWORD PTR 16[rax]
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	je	.L1
	mov	eax, DWORD PTR DHCP_FILE_LEN[rip]
	lea	edi, 1[rax]
	call	malloc@PLT
	mov	QWORD PTR 8[r13], rax
	mov	rdi, rax
	test	rax, rax
	je	.L27
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR DHCP_FILE_LEN[rip]
	mov	rsi, QWORD PTR 16[rax]
	call	memcpy@PLT
	movsx	rax, DWORD PTR DHCP_FILE_LEN[rip]
	mov	rdx, QWORD PTR 8[r13]
	mov	BYTE PTR [rdx+rax], 0
	jmp	.L1
.L26:
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	test	al, 2
	jne	.L9
	mov	rdx, QWORD PTR [r12]
	mov	rdx, QWORD PTR 8[rdx]
	mov	ecx, DWORD PTR [rdx]
	test	ecx, ecx
	jne	.L14
.L9:
	test	al, 1
	jne	.L1
.L20:
	mov	rax, QWORD PTR [r12]
	jmp	.L12
.L14:
	mov	eax, DWORD PTR DHCP_SNAME_LEN[rip]
	lea	edi, 1[rax]
	call	malloc@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rdi, rax
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR DHCP_SNAME_LEN[rip]
	mov	rsi, QWORD PTR 8[rax]
	call	memcpy@PLT
	movsx	rax, DWORD PTR DHCP_SNAME_LEN[rip]
	mov	rdx, QWORD PTR 0[r13]
	mov	BYTE PTR [rdx+rax], 0
	mov	rax, QWORD PTR DHO_DHCP_OPTION_OVERLOAD[rip]
	sal	rax, 4
	add	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [rax]
	test	edi, edi
	je	.L20
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	jmp	.L9
.L23:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	warning@PLT
	jmp	.L1
.L28:
	lea	rdi, .LC3[rip]
.L21:
	xor	eax, eax
	call	warning@PLT
	mov	rdi, r13
	xor	r13d, r13d
	call	free_client_lease@PLT
	jmp	.L1
.L27:
	lea	rdi, .LC4[rip]
	jmp	.L21
	.cfi_endproc
.LFE0:
	.size	packet_to_lease, .-packet_to_lease
	.comm	DHO_DHCP_OPTION_OVERLOAD,8,8
	.comm	DHCP_SNAME_LEN,4,4
	.comm	DHCP_FILE_LEN,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_dhclient.c_packet_to_lease.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dhcpoffer: no memory to record lease.\000"
	.align	2
.LC1:
	.ascii	"dhcpoffer: no memory for option %d\000"
	.align	2
.LC2:
	.ascii	"Invalid lease option - ignoring offer\000"
	.align	2
.LC3:
	.ascii	"dhcpoffer: no memory for server name.\000"
	.align	2
.LC4:
	.ascii	"dhcpoffer: no memory for filename.\000"
	.text
	.align	2
	.global	packet_to_lease
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_to_lease, %function
packet_to_lease:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r0
	sub	sp, sp, #12
	mov	r0, #28
	bl	malloc
	subs	r10, r0, #0
	beq	.L25
	mov	r3, #0
	mov	r4, r3
	str	r3, [r10]
	str	r3, [r10, #4]
	str	r3, [r10, #8]
	str	r3, [r10, #12]
	str	r3, [r10, #16]
	str	r3, [r10, #20]
	str	r3, [r10, #24]
	b	.L6
.L4:
	add	r4, r4, #1
	cmp	r4, #256
	beq	.L26
.L6:
	ldr	r5, [r9, #4]
	lsl	r6, r4, #3
	ldr	r2, [r5, r4, lsl #3]
	add	r1, r5, r4, lsl #3
	cmp	r2, #0
	beq	.L4
	add	r0, r2, #1
	ldr	r8, [r10, #24]
	str	r1, [sp, #4]
	str	r2, [sp]
	bl	malloc
	cmp	r0, #0
	mov	r7, r0
	ldr	r2, [sp]
	ldr	r1, [sp, #4]
	str	r0, [r8, r4, lsl #3]
	add	fp, r8, r6
	beq	.L27
	ldr	r1, [r1, #4]
	bl	memcpy
	mov	r3, #0
	ldr	r2, [r5, r6]
	ldr	r0, [r8, r6]
	mov	r1, r4
	str	r2, [fp, #4]
	strb	r3, [r0, r2]
	mov	r0, r10
	bl	check_option
	subs	r5, r0, #0
	bne	.L4
	ldr	r0, .L30
	bl	warning
	mov	r0, r10
	bl	free_client_lease
	mov	r10, r5
.L1:
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r4, #4
	ldr	r1, [r9]
	mov	r2, r4
	str	r4, [r10, #16]
	ldr	r0, [r10, #20]
	bl	memcpy
	ldr	r1, [r9]
	mov	r2, r4
	str	r4, [r10, #8]
	add	r1, r1, r4
	ldr	r0, [r10, #12]
	bl	memcpy
	ldr	r3, .L30+4
	ldr	r5, [r9, #4]
	ldr	r4, [r3]
	ldr	r3, [r5, r4, lsl #3]
	add	r6, r5, r4, lsl #3
	cmp	r3, #0
	beq	.L7
	ldr	r3, [r6, #4]
	ldr	r3, [r3]
	tst	r3, #2
	bne	.L9
	ldr	r2, [r9]
	ldr	r7, [r2, #8]
	ldr	r2, [r7]
	cmp	r2, #0
	bne	.L14
.L9:
	tst	r3, #1
	bne	.L1
.L23:
	ldr	r3, [r9]
.L12:
	ldr	r4, [r3, #12]
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L30+8
	ldr	r6, [r3]
	add	r0, r6, #1
	bl	malloc
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r10, #4]
	beq	.L28
	mov	r1, r4
	mov	r2, r6
	bl	memcpy
	mov	r3, #0
	mov	r0, r10
	strb	r3, [r5, r6]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, [r9]
	ldr	r7, [r3, #8]
	ldr	r2, [r7]
	cmp	r2, #0
	beq	.L12
.L14:
	ldr	r3, .L30+12
	ldr	fp, [r3]
	add	r0, fp, #1
	bl	malloc
	cmp	r0, #0
	mov	r8, r0
	str	r0, [r10]
	beq	.L29
	mov	r1, r7
	mov	r2, fp
	bl	memcpy
	mov	r3, #0
	strb	r3, [r8, fp]
	ldr	r3, [r5, r4, lsl #3]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [r6, #4]
	ldr	r3, [r3]
	b	.L9
.L27:
	mov	r1, r4
	ldr	r0, .L30+16
	bl	warning
	mov	r0, r10
	bl	free_client_lease
	mov	r10, r7
	b	.L1
.L25:
	ldr	r0, .L30+20
	bl	warning
	b	.L1
.L29:
	ldr	r0, .L30+24
	bl	warning
	mov	r0, r10
	bl	free_client_lease
	mov	r10, r8
	b	.L1
.L28:
	ldr	r0, .L30+28
	bl	warning
	mov	r0, r10
	bl	free_client_lease
	mov	r10, r5
	b	.L1
.L31:
	.align	2
.L30:
	.word	.LC2
	.word	DHO_DHCP_OPTION_OVERLOAD
	.word	DHCP_FILE_LEN
	.word	DHCP_SNAME_LEN
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.word	.LC4
	.size	packet_to_lease, .-packet_to_lease
	.comm	DHO_DHCP_OPTION_OVERLOAD,4,4
	.comm	DHCP_SNAME_LEN,4,4
	.comm	DHCP_FILE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
