	.file	"extr_cycx_x25.c_cycx_netdevice_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cycx_netdevice_init, @function
cycx_netdevice_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	mov	edx, DWORD PTR 4[rax]
	mov	rbx, QWORD PTR 8[rax]
	test	edx, edx
	je	.L5
.L2:
	mov	eax, DWORD PTR 16[rbx]
	movsx	rdx, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR WAN_DISCONNECTED[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR 12[rbx]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	QWORD PTR 0[rbp], rdx
	mov	DWORD PTR 24[rbp], eax
	mov	rax, rdx
	add	eax, DWORD PTR 4[rbx]
	sub	eax, 1
	mov	DWORD PTR 16[rbp], 10
	cdqe
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR IFF_NOARP[rip]
	or	DWORD PTR 20[rbp], eax
	call	cycx_x25_set_chan_state@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR [rax]
	mov	r12, QWORD PTR 40[rbp]
	call	htons@PLT
	mov	DWORD PTR [r12], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	cycx_netdevice_init, .-cycx_netdevice_init
	.comm	WAN_DISCONNECTED,4,4
	.comm	IFF_NOARP,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_cycx_x25.c_cycx_netdevice_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cycx_netdevice_init, %function
cycx_netdevice_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	netdev_priv
	ldmib	r0, {r3, r5}
	cmp	r3, #0
	beq	.L5
.L2:
	ldm	r5, {r1, r3}
	mov	r0, #10
	ldr	r2, .L6
	ldr	lr, [r5, #8]
	ldr	ip, [r2]
	ldr	r2, [r4, #12]
	add	r3, r1, r3
	orr	r2, r2, ip
	ldr	ip, [r5, #16]
	sub	r3, r3, #1
	str	ip, [r4, #24]
	ldr	ip, [r5, #12]
	str	r1, [r4]
	str	ip, [r4, #20]
	ldr	ip, .L6+4
	str	r0, [r4, #8]
	ldr	r1, [ip]
	mov	r0, r4
	str	r2, [r4, #12]
	str	r3, [r4, #4]
	str	lr, [r4, #16]
	bl	cycx_x25_set_chan_state
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, [r0]
	ldr	r6, [r4, #28]
	bl	htons
	str	r0, [r6]
	b	.L2
.L7:
	.align	2
.L6:
	.word	IFF_NOARP
	.word	WAN_DISCONNECTED
	.size	cycx_netdevice_init, .-cycx_netdevice_init
	.comm	WAN_DISCONNECTED,4,4
	.comm	IFF_NOARP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
