	.file	"extr_ncsi-rsp.c_ncsi_rsp_handler_gp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ncsi_rsp_handler_gp, @function
ncsi_rsp_handler_gp:
.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, 40
	.cfi_def_cfa_offset 96
	mov	r12, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	skb_network_header@PLT
	xor	edx, edx
	lea	rcx, 16[rsp]
	mov	rdi, r12
	mov	esi, DWORD PTR 40[rax]
	mov	rbp, rax
	call	ncsi_find_package_and_channel@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	cmp	QWORD PTR 16[rsp], 0
	je	.L1
	mov	edi, DWORD PTR 32[rbp]
	call	ntohl@PLT
	test	al, 1
	jne	.L33
	mov	edi, DWORD PTR 32[rbp]
	call	ntohl@PLT
	test	al, 2
	je	.L5
.L37:
	mov	rax, QWORD PTR NCSI_MODE_ENABLE[rip]
	mov	rdx, QWORD PTR 16[rsp]
	sal	rax, 4
	add	rax, QWORD PTR 40[rdx]
	mov	DWORD PTR [rax], 1
.L5:
	mov	edi, DWORD PTR 32[rbp]
	call	ntohl@PLT
	test	al, 4
	je	.L6
	mov	rax, QWORD PTR NCSI_MODE_TX_ENABLE[rip]
	mov	rdx, QWORD PTR 16[rsp]
	sal	rax, 4
	add	rax, QWORD PTR 40[rdx]
	mov	DWORD PTR [rax], 1
.L6:
	mov	edi, DWORD PTR 32[rbp]
	call	ntohl@PLT
	test	al, 8
	mov	rax, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 40[rax]
	jne	.L7
.L8:
	mov	rdx, QWORD PTR NCSI_MODE_LINK[rip]
	mov	edi, DWORD PTR 28[rbp]
	lea	r12, 48[rbp]
	sal	rdx, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rbx, QWORD PTR 8[rax]
	call	ntohl@PLT
	mov	rdx, QWORD PTR NCSI_MODE_VLAN[rip]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 16[rsp]
	sal	rdx, 4
	mov	ecx, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rdx, rax
	mov	DWORD PTR [rdx], 1
	mov	rdx, QWORD PTR 8[rdx]
	mov	DWORD PTR [rdx], ecx
	mov	rdx, QWORD PTR NCSI_MODE_FC[rip]
	mov	ecx, DWORD PTR 4[rbp]
	sal	rdx, 4
	add	rdx, rax
	mov	DWORD PTR [rdx], 1
	mov	rdx, QWORD PTR 8[rdx]
	mov	DWORD PTR [rdx], ecx
	mov	rdx, QWORD PTR NCSI_MODE_AEN[rip]
	mov	edi, DWORD PTR 24[rbp]
	sal	rdx, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rbx, QWORD PTR 8[rax]
	call	ntohl@PLT
	mov	r13, QWORD PTR 16[rsp]
	xor	esi, esi
	movzx	r14d, WORD PTR 8[rbp]
	mov	DWORD PTR [rbx], eax
	mov	rdi, r13
	lea	r15, 32[r13]
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR 12[rbp]
	test	edx, edx
	jle	.L9
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L34:
	call	clear_bit@PLT
.L11:
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rcx, QWORD PTR 24[r13]
	mov	rsi, r12
	add	r12, 6
	mov	eax, edx
	imul	eax, ebx
	add	ebx, 1
	cdqe
	lea	rdi, [rcx+rax*4]
	call	memcpy@PLT
	cmp	DWORD PTR 12[rbp], ebx
	jle	.L9
.L12:
	bt	r14d, ebx
	mov	rsi, r15
	mov	edi, ebx
	jnc	.L34
	call	set_bit@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 16[rsp]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L35
	add	rsp, 40
	.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
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsp]
	xor	esi, esi
	xor	ebx, ebx
	mov	QWORD PTR 8[rsp], rsi
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR 20[rbp]
	call	ntohs@PLT
	mov	r14, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	r13, rax
	mov	rdi, r14
	lea	r15, 16[r14]
	call	spin_lock_irqsave@PLT
	movzx	eax, r13w
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	jg	.L16
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L36:
	call	clear_bit@PLT
.L15:
	mov	rax, QWORD PTR 8[r14]
	mov	edi, DWORD PTR [r12+rbx*2]
	lea	r13, [rax+rbx*8]
	add	rbx, 1
	call	ntohs@PLT
	mov	QWORD PTR 0[r13], rax
	cmp	DWORD PTR 16[rbp], ebx
	jle	.L17
.L16:
	mov	eax, DWORD PTR 8[rsp]
	mov	rsi, r15
	mov	edi, ebx
	bt	eax, ebx
	jnc	.L36
	call	set_bit@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR NCSI_MODE_MC[rip]
	sal	rdx, 4
	mov	DWORD PTR [rax+rdx], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rax, QWORD PTR NCSI_MODE_BC[rip]
	mov	rdx, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 36[rbp]
	sal	rax, 4
	add	rax, QWORD PTR 40[rdx]
	mov	DWORD PTR [rax], 1
	mov	rbx, QWORD PTR 8[rax]
	call	ntohl@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, DWORD PTR 32[rbp]
	call	ntohl@PLT
	test	al, 2
	je	.L5
	jmp	.L37
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ncsi_rsp_handler_gp, .-ncsi_rsp_handler_gp
	.comm	NCSI_MODE_VLAN,8,8
	.comm	NCSI_MODE_TX_ENABLE,8,8
	.comm	NCSI_MODE_MC,8,8
	.comm	NCSI_MODE_LINK,8,8
	.comm	NCSI_MODE_FC,8,8
	.comm	NCSI_MODE_ENABLE,8,8
	.comm	NCSI_MODE_BC,8,8
	.comm	NCSI_MODE_AEN,8,8
	.comm	ETH_ALEN,4,4
	.comm	ENODEV,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_ncsi-rsp.c_ncsi_rsp_handler_gp.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ncsi_rsp_handler_gp, %function
ncsi_rsp_handler_gp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L39
	sub	sp, sp, #8
	ldr	r0, [r0]
	ldr	r4, [r3, #4]
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	bl	skb_network_header
	mov	r6, r0
	mov	r3, sp
	mov	r0, r4
	mov	r2, #0
	ldr	r1, [r6, #40]
	bl	ncsi_find_package_and_channel
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L32
	ldr	r0, [r6, #32]
	bl	ntohl
	tst	r0, #1
	bne	.L33
	ldr	r0, [r6, #32]
	bl	ntohl
	tst	r0, #2
	beq	.L5
.L38:
	mov	r1, #1
	ldr	r3, [sp]
	ldr	r2, .L39+4
	ldr	r3, [r3, #20]
	ldr	r2, [r2]
	str	r1, [r3, r2, lsl #3]
.L5:
	ldr	r0, [r6, #32]
	bl	ntohl
	tst	r0, #4
	bne	.L34
.L6:
	ldr	r0, [r6, #32]
	bl	ntohl
	tst	r0, #8
	movne	r1, #1
	mov	r4, #1
	ldrne	r3, [sp]
	ldrne	r2, .L39+8
	ldrne	r3, [r3, #20]
	ldrne	r2, [r2]
	ldreq	r3, [sp]
	strne	r1, [r3, r2, lsl #3]
	ldr	r2, .L39+12
	ldreq	r3, [r3, #20]
	ldr	r2, [r2]
	ldr	r0, [r6, #28]
	add	r1, r3, r2, lsl #3
	str	r4, [r3, r2, lsl #3]
	ldr	r5, [r1, #4]
	bl	ntohl
	ldr	r3, [sp]
	ldr	r2, .L39+16
	ldr	r3, [r3, #20]
	ldr	r1, [r2]
	ldr	r2, .L39+20
	str	r0, [r5]
	add	r0, r3, r1, lsl #3
	ldr	r2, [r2]
	ldr	ip, [r6]
	ldr	r0, [r0, #4]
	str	r4, [r3, r1, lsl #3]
	str	ip, [r0]
	add	r1, r3, r2, lsl #3
	ldr	ip, .L39+24
	ldr	r0, [r6, #4]
	ldr	r1, [r1, #4]
	str	r4, [r3, r2, lsl #3]
	ldr	r2, [ip]
	str	r0, [r1]
	ldr	r0, [r6, #24]
	add	r1, r3, r2, lsl #3
	str	r4, [r3, r2, lsl #3]
	ldr	r4, [r1, #4]
	bl	ntohl
	ldr	r7, [sp]
	mov	r1, #0
	str	r0, [r4]
	mov	r0, r7
	ldrh	r8, [r6, #8]
	bl	spin_lock_irqsave
	ldr	r3, [r6, #12]
	add	r9, r7, #16
	cmp	r3, #0
	add	r5, r6, #48
	ble	.L9
	mov	r4, #0
	ldr	r10, .L39+28
	b	.L12
.L35:
	bl	clear_bit
.L11:
	ldr	r2, [r10]
	ldr	r3, [r7, #12]
	mul	r0, r4, r2
	mov	r1, r5
	add	r0, r3, r0, lsl #2
	bl	memcpy
	ldr	r3, [r6, #12]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, #6
	ble	.L9
.L12:
	asr	r3, r8, r4
	tst	r3, #1
	mov	r1, r9
	mov	r0, r4
	beq	.L35
	bl	set_bit
	b	.L11
.L9:
	mov	r4, #0
	ldr	r0, [sp]
	mov	r1, r4
	bl	spin_unlock_irqrestore
	ldr	r0, [r6, #20]
	bl	ntohs
	mov	r8, r0
	ldr	r9, [sp]
	mov	r1, r4
	mov	r0, r9
	bl	spin_lock_irqsave
	ldr	r3, [r6, #16]
	add	r10, r9, #8
	cmp	r3, r4
	lslgt	r8, r8, #16
	movgt	r4, #0
	lsrgt	r8, r8, #16
	bgt	.L16
	b	.L17
.L36:
	bl	clear_bit
.L15:
	ldr	r0, [r5], #2
	ldr	r7, [r9, #4]
	bl	ntohs
	ldr	r3, [r6, #16]
	str	r0, [r7, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L17
.L16:
	asr	r3, r8, r4
	tst	r3, #1
	mov	r1, r10
	mov	r0, r4
	beq	.L36
	bl	set_bit
	b	.L15
.L17:
	mov	r1, #0
	ldr	r0, [sp]
	bl	spin_unlock_irqrestore
	mov	r0, #0
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L34:
	mov	r1, #1
	ldr	r3, [sp]
	ldr	r2, .L39+32
	ldr	r3, [r3, #20]
	ldr	r2, [r2]
	str	r1, [r3, r2, lsl #3]
	b	.L6
.L33:
	mov	r1, #1
	ldr	r3, [sp]
	ldr	r2, .L39+36
	ldr	r3, [r3, #20]
	ldr	r2, [r2]
	ldr	r0, [r6, #36]
	str	r1, [r3, r2, lsl #3]
	add	r3, r3, r2, lsl #3
	ldr	r4, [r3, #4]
	bl	ntohl
	str	r0, [r4]
	ldr	r0, [r6, #32]
	bl	ntohl
	tst	r0, #2
	beq	.L5
	b	.L38
.L32:
	ldr	r3, .L39+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L37:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	NCSI_MODE_ENABLE
	.word	NCSI_MODE_MC
	.word	NCSI_MODE_LINK
	.word	NCSI_MODE_VLAN
	.word	NCSI_MODE_FC
	.word	NCSI_MODE_AEN
	.word	ETH_ALEN
	.word	NCSI_MODE_TX_ENABLE
	.word	NCSI_MODE_BC
	.word	ENODEV
	.size	ncsi_rsp_handler_gp, .-ncsi_rsp_handler_gp
	.comm	NCSI_MODE_VLAN,4,4
	.comm	NCSI_MODE_TX_ENABLE,4,4
	.comm	NCSI_MODE_MC,4,4
	.comm	NCSI_MODE_LINK,4,4
	.comm	NCSI_MODE_FC,4,4
	.comm	NCSI_MODE_ENABLE,4,4
	.comm	NCSI_MODE_BC,4,4
	.comm	NCSI_MODE_AEN,4,4
	.comm	ETH_ALEN,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
