	.file	"extr_cxgbtool.c_parse_ipaddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parse_ipaddr, @function
parse_ipaddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	esi, 47
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rdx], -1
	call	strchr@PLT
	test	rax, rax
	je	.L2
	mov	BYTE PTR [rax], 0
	lea	rsi, 12[rsp]
	mov	rdi, r12
	mov	rbx, rax
	call	inet_aton@PLT
	test	eax, eax
	je	.L18
	mov	edi, DWORD PTR 12[rsp]
	lea	r12, 1[rbx]
	call	ntohl@PLT
	mov	edx, 10
	lea	rsi, 16[rsp]
	mov	rdi, r12
	mov	DWORD PTR 0[r13], eax
	call	strtoul@PLT
	mov	BYTE PTR [rbx], 47
	mov	rdx, QWORD PTR 16[rsp]
	cmp	r12, rdx
	je	.L10
	cmp	BYTE PTR [rdx], 0
	jne	.L10
	cmp	eax, 32
	ja	.L10
	mov	ecx, 32
	sub	ecx, eax
	xor	eax, eax
	sal	DWORD PTR 0[rbp], cl
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, 12[rsp]
	mov	rdi, r12
	call	inet_aton@PLT
	test	eax, eax
	je	.L5
	mov	edi, DWORD PTR 12[rsp]
	call	ntohl@PLT
	mov	DWORD PTR 0[r13], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	BYTE PTR [rbx], 47
.L5:
	mov	DWORD PTR 0[r13], 0
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, -1
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_ipaddr, .-parse_ipaddr
	.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_cxgbtool.c_parse_ipaddr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_ipaddr, %function
parse_ipaddr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mvn	r7, #0
	ldr	r3, .L20
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r1
	str	r7, [r2]
	mov	r1, #47
	mov	r5, r2
	mov	r6, r0
	bl	strchr
	subs	r4, r0, #0
	beq	.L2
	mov	r3, #0
	mov	r0, r6
	strb	r3, [r4]
	add	r1, sp, #8
	bl	inet_aton
	cmp	r0, #0
	beq	.L18
	ldr	r0, [sp, #8]
	bl	ntohl
	add	r6, r4, #1
	str	r0, [r8]
	mov	r2, #10
	mov	r0, r6
	add	r1, sp, #4
	bl	strtoul
	mov	r3, #47
	strb	r3, [r4]
	ldr	r3, [sp, #4]
	cmp	r6, r3
	beq	.L10
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r0, #32
	movls	r4, #0
	movhi	r4, #1
	cmp	r3, #0
	movne	r4, #1
	cmp	r4, #0
	bne	.L10
	ldr	r3, [r5]
	rsb	r0, r0, #32
	lsl	r3, r3, r0
	mov	r0, r4
	str	r3, [r5]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r6
	add	r1, sp, #8
	bl	inet_aton
	cmp	r0, #0
	beq	.L5
	ldr	r0, [sp, #8]
	bl	ntohl
	mov	r3, r0
	mov	r0, r4
	str	r3, [r8]
	b	.L1
.L18:
	mov	r3, #47
	strb	r3, [r4]
.L5:
	mov	r3, #0
	mvn	r0, #0
	str	r3, [r8]
	b	.L1
.L10:
	mov	r0, r7
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	parse_ipaddr, .-parse_ipaddr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
