	.file	"extr_t1isa.c_t1isa_add_card.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	t1isa_add_card, @function
t1isa_add_card:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_CARDS[rip]
	test	eax, eax
	jle	.L10
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	sal	rdi, 4
	add	rdi, QWORD PTR isa_dev[rip]
	mov	rax, QWORD PTR 8[rdi]
	cmp	QWORD PTR [rax], 0
	jne	.L6
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 0[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR [rdi], eax
	call	t1isa_probe@PLT
	test	rax, rax
	je	.L14
.L6:
	add	rbx, 1
	cmp	DWORD PTR MAX_CARDS[rip], ebx
	jg	.L4
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	t1isa_add_card, .-t1isa_add_card
	.comm	isa_dev,8,8
	.comm	MAX_CARDS,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_t1isa.c_t1isa_add_card.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1isa_add_card, %function
t1isa_add_card:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L14
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r5, r1
	mov	r4, #0
	ldr	r7, .L14+4
.L4:
	ldr	r3, [r7]
	add	r0, r3, r4, lsl #3
	ldr	r2, [r0, #4]
	ldr	ip, [r2]
	cmp	ip, #0
	bne	.L6
	ldr	r1, [r5, #8]
	ldr	ip, [r5, #4]
	str	r1, [r2]
	ldr	r1, [r5]
	str	ip, [r3, r4, lsl #3]
	bl	t1isa_probe
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L2:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	MAX_CARDS
	.word	isa_dev
	.word	ENODEV
	.size	t1isa_add_card, .-t1isa_add_card
	.comm	isa_dev,4,4
	.comm	MAX_CARDS,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
