	.file	"extr_net.c_do_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid net attach/detach type: %s"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"overwrite"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"expected 'overwrite', got: '%s'?"
	.section	.rodata.str1.1
.LC3:
	.string	"xdp"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"interface %s attach failed: %s"
	.text
	.p2align 4
	.type	do_attach, @function
do_attach:
.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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	DWORD PTR 12[rsp], edi
	mov	edi, 5
	mov	QWORD PTR [rsp], rsi
	call	REQ_ARGS@PLT
	test	eax, eax
	jne	.L2
.L20:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR [rax]
	call	parse_attach_type@PLT
	cmp	eax, DWORD PTR net_attach_type_size[rip]
	mov	r12d, eax
	je	.L22
	xor	eax, eax
	mov	r14, rsp
	lea	r13, 12[rsp]
	call	NEXT_ARG@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	prog_parse_fd@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L20
	mov	rdi, r13
	mov	rsi, r14
	call	net_parse_dev@PLT
	mov	r13d, eax
	test	eax, eax
	jle	.L19
	mov	r15d, DWORD PTR 12[rsp]
	test	r15d, r15d
	je	.L7
	mov	rax, QWORD PTR [rsp]
	lea	rsi, .LC1[rip]
	mov	r15d, 1
	mov	rdi, QWORD PTR [rax]
	call	is_prefix@PLT
	test	rax, rax
	je	.L23
.L7:
	mov	rax, QWORD PTR attach_type_strings[rip]
	mov	r14d, r12d
	lea	rdi, .LC3[rip]
	mov	rsi, QWORD PTR [rax+r14*8]
	call	is_prefix@PLT
	test	rax, rax
	jne	.L24
.L8:
	xor	r12d, r12d
	cmp	QWORD PTR json_output[rip], 0
	je	.L1
	mov	edi, DWORD PTR json_wtr[rip]
	call	jsonw_null@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR [rsp]
	lea	rdi, .LC2[rip]
	mov	rsi, QWORD PTR [rax]
	xor	eax, eax
	call	p_err@PLT
.L19:
	mov	edi, ebp
	call	close@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR [rsp]
	lea	rdi, .LC0[rip]
	mov	rsi, QWORD PTR [rax]
	xor	eax, eax
	call	p_err@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, r12d
	mov	ecx, r15d
	mov	edx, r13d
	mov	edi, ebp
	call	do_attach_detach_xdp@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L8
	mov	edi, eax
	neg	edi
	call	strerror@PLT
	lea	rdi, .LC4[rip]
	mov	edx, eax
	mov	rax, QWORD PTR attach_type_strings[rip]
	mov	rsi, QWORD PTR [rax+r14*8]
	xor	eax, eax
	call	p_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	do_attach, .-do_attach
	.comm	net_attach_type_size,4,4
	.comm	json_wtr,4,4
	.comm	json_output,8,8
	.comm	attach_type_strings,8,8
	.comm	EINVAL,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_net.c_do_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid net attach/detach type: %s\000"
	.align	2
.LC1:
	.ascii	"overwrite\000"
	.align	2
.LC2:
	.ascii	"expected 'overwrite', got: '%s'?\000"
	.align	2
.LC3:
	.ascii	"xdp\000"
	.align	2
.LC4:
	.ascii	"interface %s attach failed: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_attach, %function
do_attach:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	str	r0, [sp, #4]
	mov	r0, #5
	str	r1, [sp]
	bl	REQ_ARGS
	cmp	r0, #0
	bne	.L2
.L22:
	ldr	r3, .L27
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [sp]
	ldr	r0, [r3]
	bl	parse_attach_type
	ldr	r3, .L27+4
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L24
	bl	NEXT_ARG
	mov	r1, sp
	add	r0, sp, #4
	bl	prog_parse_fd
	subs	r4, r0, #0
	blt	.L22
	mov	r1, sp
	add	r0, sp, #4
	bl	net_parse_dev
	subs	r6, r0, #0
	ble	.L21
	ldr	r7, [sp, #4]
	cmp	r7, #0
	beq	.L7
	ldr	r3, [sp]
	ldr	r1, .L27+8
	ldr	r0, [r3]
	bl	is_prefix
	cmp	r0, #0
	movne	r7, #1
	beq	.L25
.L7:
	ldr	r8, .L27+12
	ldr	r0, .L27+16
	ldr	r3, [r8]
	ldr	r1, [r3, r5, lsl #2]
	bl	is_prefix
	cmp	r0, #0
	bne	.L26
.L8:
	ldr	r3, .L27+20
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L1
	ldr	r3, .L27+24
	mov	r4, #0
	ldr	r0, [r3]
	bl	jsonw_null
	b	.L1
.L25:
	ldr	r3, [sp]
	ldr	r0, .L27+28
	ldr	r1, [r3]
	bl	p_err
.L21:
	mov	r0, r4
	bl	close
	b	.L22
.L24:
	ldr	r3, [sp]
	ldr	r0, .L27+32
	ldr	r1, [r3]
	bl	p_err
	b	.L22
.L26:
	mov	r0, r4
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	bl	do_attach_detach_xdp
	subs	r4, r0, #0
	bge	.L8
	ldr	r3, [r8]
	rsb	r0, r4, #0
	ldr	r5, [r3, r5, lsl #2]
	bl	strerror
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L27+36
	bl	p_err
	b	.L1
.L28:
	.align	2
.L27:
	.word	EINVAL
	.word	net_attach_type_size
	.word	.LC1
	.word	attach_type_strings
	.word	.LC3
	.word	json_output
	.word	json_wtr
	.word	.LC2
	.word	.LC0
	.word	.LC4
	.size	do_attach, .-do_attach
	.comm	net_attach_type_size,4,4
	.comm	json_wtr,4,4
	.comm	json_output,4,4
	.comm	attach_type_strings,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
