	.file	"extr_rfc1051.c_type_trans.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	type_trans, @function
type_trans:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rdi]
	mov	r12d, DWORD PTR RFC1051_HDR_SIZE[rip]
	add	r12d, DWORD PTR ARC_HDR_SIZE[rip]
	call	skb_reset_mac_header@PLT
	mov	esi, r12d
	mov	rdi, rbx
	call	skb_pull@PLT
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR PACKET_BROADCAST[rip]
	mov	DWORD PTR [rbx], eax
.L3:
	mov	eax, DWORD PTR 8[r13]
	cmp	eax, 128
	je	.L4
.L14:
	cmp	eax, 129
	je	.L5
	add	DWORD PTR 20[rbp], 1
	xor	eax, eax
	add	DWORD PTR 16[rbp], 1
	add	rsp, 8
	.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
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR IFF_PROMISC[rip], edx
	je	.L3
	mov	rdx, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR [rdx]
	je	.L3
	mov	eax, DWORD PTR PACKET_OTHERHOST[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 8[r13]
	cmp	eax, 128
	jne	.L14
.L4:
	mov	edi, DWORD PTR ETH_P_IP[rip]
	add	rsp, 8
	.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
	jmp	htons@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR ETH_P_ARP[rip]
	add	rsp, 8
	.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
	jmp	htons@PLT
	.cfi_endproc
.LFE0:
	.size	type_trans, .-type_trans
	.comm	RFC1051_HDR_SIZE,4,4
	.comm	PACKET_OTHERHOST,4,4
	.comm	PACKET_BROADCAST,4,4
	.comm	IFF_PROMISC,4,4
	.comm	ETH_P_IP,4,4
	.comm	ETH_P_ARP,4,4
	.comm	ARC_HDR_SIZE,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_rfc1051.c_type_trans.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	type_trans, %function
type_trans:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r2, .L14
	ldr	r3, .L14+4
	ldr	r6, [r2]
	ldr	r3, [r3]
	ldr	r7, [r0, #4]
	add	r6, r6, r3
	mov	r5, r1
	bl	skb_reset_mac_header
	mov	r1, r6
	mov	r0, r4
	bl	skb_pull
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L14+8
	ldr	r3, [r3]
	str	r3, [r4]
.L3:
	ldr	r3, [r7, #4]
	cmp	r3, #128
	beq	.L4
.L13:
	cmp	r3, #129
	beq	.L5
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	add	r2, r2, #1
	add	r3, r3, #1
	mov	r0, #0
	str	r2, [r5, #12]
	str	r3, [r5, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L14+12
	ldr	r1, [r5]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L3
	ldr	r2, [r5, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	ldrne	r3, .L14+16
	ldrne	r3, [r3]
	strne	r3, [r4]
	ldr	r3, [r7, #4]
	cmp	r3, #128
	bne	.L13
.L4:
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L14+20
	ldr	r0, [r3]
	b	htons
.L5:
	ldr	r3, .L14+24
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	htons
.L15:
	.align	2
.L14:
	.word	ARC_HDR_SIZE
	.word	RFC1051_HDR_SIZE
	.word	PACKET_BROADCAST
	.word	IFF_PROMISC
	.word	PACKET_OTHERHOST
	.word	ETH_P_IP
	.word	ETH_P_ARP
	.size	type_trans, .-type_trans
	.comm	RFC1051_HDR_SIZE,4,4
	.comm	PACKET_OTHERHOST,4,4
	.comm	PACKET_BROADCAST,4,4
	.comm	IFF_PROMISC,4,4
	.comm	ETH_P_IP,4,4
	.comm	ETH_P_ARP,4,4
	.comm	ARC_HDR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
