	.file	"extr_icom.c_icom_init_ports.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	icom_init_ports, @function
icom_init_ports:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 24[rdi]
	mov	rcx, QWORD PTR ICOM_PORT_ACTIVE[rip]
	mov	rsi, QWORD PTR ADAPTER_V1[rip]
	cmp	QWORD PTR 8[rdi], rsi
	je	.L10
	mov	rdx, QWORD PTR [rdi]
	cmp	QWORD PTR PCI_DEVICE_ID_IBM_ICOM_FOUR_PORT_MODEL[rip], rdx
	mov	DWORD PTR 16[rdi], 4
	je	.L11
	mov	rsi, QWORD PTR ICOM_RVX[rip]
	cmp	QWORD PTR PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM[rip], rdx
	mov	DWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], rcx
	mov	rdi, rsi
	jne	.L6
	mov	rdi, QWORD PTR ICOM_IMBED_MODEM[rip]
.L6:
	mov	rdx, QWORD PTR ICOM_PORT_OFF[rip]
	mov	QWORD PTR 16[rax], rdi
	mov	DWORD PTR 48[rax], 2
	mov	QWORD PTR 32[rax], rdx
	mov	QWORD PTR 56[rax], rcx
	mov	QWORD PTR 64[rax], rsi
	mov	QWORD PTR 80[rax], rdx
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, QWORD PTR ICOM_IMBED_MODEM[rip]
	xor	edx, edx
.L5:
	mov	DWORD PTR [rax], edx
	add	edx, 1
	add	rax, 24
	mov	QWORD PTR -16[rax], rcx
	mov	QWORD PTR -8[rax], rsi
	cmp	edx, 4
	jne	.L5
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR ICOM_UNKNOWN[rip]
	mov	DWORD PTR 16[rdi], 2
	mov	DWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], rcx
	mov	QWORD PTR 16[rax], rdx
	mov	DWORD PTR 24[rax], 1
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rdx
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	icom_init_ports, .-icom_init_ports
	.comm	PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM,8,8
	.comm	PCI_DEVICE_ID_IBM_ICOM_FOUR_PORT_MODEL,8,8
	.comm	ICOM_UNKNOWN,8,8
	.comm	ICOM_RVX,8,8
	.comm	ICOM_PORT_OFF,8,8
	.comm	ICOM_PORT_ACTIVE,8,8
	.comm	ICOM_IMBED_MODEM,8,8
	.comm	ADAPTER_V1,8,8
	.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_icom.c_icom_init_ports.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icom_init_ports, %function
icom_init_ports:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r1, [r0, #4]
	ldr	r3, [r3]
	ldr	r2, .L13+4
	cmp	r1, r3
	push	{r4, lr}
	ldr	r3, [r0, #12]
	ldr	r1, [r2]
	beq	.L11
	ldr	ip, .L13+8
	ldr	r2, [r0]
	ldr	ip, [ip]
	cmp	ip, r2
	beq	.L12
	mov	r4, #4
	mov	ip, #0
	ldr	lr, .L13+12
	str	r4, [r0, #8]
	ldr	r0, .L13+16
	ldr	lr, [lr]
	ldr	r0, [r0]
	cmp	lr, r2
	movne	lr, r0
	str	ip, [r3]
	mov	ip, #2
	ldreq	r2, .L13+20
	str	r0, [r3, #32]
	ldreq	lr, [r2]
	ldr	r2, .L13+24
	mov	r0, #0
	ldr	r2, [r2]
	str	r1, [r3, #4]
	str	lr, [r3, #8]
	str	r1, [r3, #28]
	str	r2, [r3, #16]
	str	r2, [r3, #40]
	str	ip, [r3, #24]
	pop	{r4, pc}
.L12:
	mov	lr, #4
	mov	r2, #0
	ldr	ip, .L13+20
	str	lr, [r0, #8]
	ldr	r0, [ip]
.L5:
	str	r2, [r3]
	add	r2, r2, #1
	cmp	r2, #4
	str	r1, [r3, #4]
	str	r0, [r3, #8]
	add	r3, r3, #12
	bne	.L5
	mov	r0, #0
	pop	{r4, pc}
.L11:
	mov	r4, #2
	mov	lr, #0
	mov	ip, #1
	ldr	r2, .L13+28
	str	r4, [r0, #8]
	ldr	r2, [r2]
	mov	r0, #0
	str	r1, [r3, #4]
	str	r1, [r3, #16]
	str	r2, [r3, #8]
	str	r2, [r3, #20]
	str	lr, [r3]
	str	ip, [r3, #12]
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	ADAPTER_V1
	.word	ICOM_PORT_ACTIVE
	.word	PCI_DEVICE_ID_IBM_ICOM_FOUR_PORT_MODEL
	.word	PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM
	.word	ICOM_RVX
	.word	ICOM_IMBED_MODEM
	.word	ICOM_PORT_OFF
	.word	ICOM_UNKNOWN
	.size	icom_init_ports, .-icom_init_ports
	.comm	PCI_DEVICE_ID_IBM_ICOM_V2_ONE_PORT_RVX_ONE_PORT_MDM,4,4
	.comm	PCI_DEVICE_ID_IBM_ICOM_FOUR_PORT_MODEL,4,4
	.comm	ICOM_UNKNOWN,4,4
	.comm	ICOM_RVX,4,4
	.comm	ICOM_PORT_OFF,4,4
	.comm	ICOM_PORT_ACTIVE,4,4
	.comm	ICOM_IMBED_MODEM,4,4
	.comm	ADAPTER_V1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
