	.file	"extr_ultracam.c_ultracam_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ultracam_probe\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"IBM Ultra camera found (rev. 0x%04x)\n"
	.align 8
.LC2:
	.string	"Number of alternate settings=%d.\n"
	.align 8
.LC3:
	.string	"Too few alternate settings for this camera!"
	.align 8
.LC4:
	.string	"Interface %d. has %u. endpoints!"
	.align 8
.LC5:
	.string	"Alternate settings have different endpoint addresses!"
	.align 8
.LC6:
	.string	"Interface %d. has non-ISO endpoint!"
	.align 8
.LC7:
	.string	"Interface %d. has ISO OUT endpoint!"
	.align 8
.LC8:
	.string	"More than one inactive alt. setting!"
	.section	.rodata.str1.1
.LC9:
	.string	"Active setting=%d. maxPS=%d.\n"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"Even better ctive setting=%d. maxPS=%d.\n"
	.align 8
.LC11:
	.string	"Failed to recognize the camera!"
	.align 8
.LC12:
	.string	"usbvideo_RegisterVideoDevice() failed."
	.text
	.p2align 4
	.type	ultracam_probe, @function
ultracam_probe:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	call	interface_to_usbdev@PLT
	mov	r11d, DWORD PTR debug[rip]
	mov	QWORD PTR 24[rsp], rax
	test	r11d, r11d
	jle	.L2
	lea	rdi, 16[rbp]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_info@PLT
.L2:
	mov	rax, QWORD PTR 24[rsp]
	cmp	DWORD PTR [rax], 1
	je	.L3
.L29:
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR 4[rax]
	call	le16_to_cpu@PLT
	lea	rsi, .LC1[rip]
	mov	edx, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR 40[rsp], rax
	mov	rdi, rax
	mov	r15, rax
	xor	eax, eax
	call	dev_info@PLT
	mov	r10d, DWORD PTR debug[rip]
	mov	ebx, DWORD PTR 0[rbp]
	test	r10d, r10d
	jg	.L31
.L5:
	cmp	ebx, 7
	jle	.L32
	lea	eax, -1[rbx]
	xor	r12d, r12d
	xor	ebx, ebx
	mov	DWORD PTR 36[rsp], 0
	lea	rax, 3[rax+rax*2]
	mov	DWORD PTR 12[rsp], -1
	sal	rax, 3
	mov	DWORD PTR 32[rsp], -1
	mov	QWORD PTR 16[rsp], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L38:
	movzx	r12d, BYTE PTR [r15]
.L9:
	mov	rdi, r15
	call	usb_endpoint_xfer_isoc@PLT
	test	eax, eax
	je	.L33
	mov	rdi, r15
	call	usb_endpoint_dir_out@PLT
	test	rax, rax
	jne	.L34
	mov	edi, DWORD PTR 4[r15]
	call	le16_to_cpu@PLT
	test	eax, eax
	jne	.L12
	mov	r9d, DWORD PTR 12[rsp]
	test	r9d, r9d
	jns	.L35
	mov	DWORD PTR 12[rsp], r13d
.L13:
	add	rbx, 24
	cmp	rbx, QWORD PTR 16[rsp]
	je	.L36
.L15:
	mov	r14, QWORD PTR 8[rbp]
	add	r14, rbx
	mov	edx, DWORD PTR 4[r14]
	mov	r13d, DWORD PTR [r14]
	cmp	edx, 1
	jne	.L37
	mov	r15, QWORD PTR 16[r14]
	test	r12b, r12b
	je	.L38
	cmp	BYTE PTR [r15], r12b
	je	.L9
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r8d, DWORD PTR 32[rsp]
	mov	edi, DWORD PTR 4[r15]
	test	r8d, r8d
	js	.L39
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR 36[rsp]
	jle	.L13
	mov	edi, DWORD PTR 4[r15]
	call	le16_to_cpu@PLT
	mov	ecx, DWORD PTR debug[rip]
	mov	DWORD PTR 32[rsp], r13d
	mov	DWORD PTR 36[rsp], eax
	test	ecx, ecx
	jle	.L13
	mov	rdi, QWORD PTR 40[rsp]
	mov	ecx, eax
	xor	eax, eax
	mov	edx, r13d
	lea	rsi, .LC10[rip]
	call	dev_info@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L39:
	call	le16_to_cpu@PLT
	mov	esi, DWORD PTR debug[rip]
	mov	DWORD PTR 32[rsp], r13d
	mov	DWORD PTR 36[rsp], eax
	test	esi, esi
	jle	.L13
	mov	rdi, QWORD PTR 40[rsp]
	mov	ecx, eax
	xor	eax, eax
	mov	edx, r13d
	lea	rsi, .LC9[rip]
	call	dev_info@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, ebx
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dev_info@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edx, DWORD PTR 36[rsp]
	mov	eax, DWORD PTR 32[rsp]
	test	edx, edx
	setle	dl
	shr	eax, 31
	or	dl, al
	jne	.L23
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	js	.L23
	mov	edi, DWORD PTR cams[rip]
	call	usbvideo_AllocateDevice@PLT
	mov	r13, rax
	test	rax, rax
	je	.L18
	mov	eax, DWORD PTR flags[rip]
	mov	esi, 480
	mov	edi, 640
	mov	rcx, QWORD PTR VIDEO_PALETTE_RGB24[rip]
	mov	DWORD PTR 64[r13], eax
	mov	eax, DWORD PTR debug[rip]
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 56[r13], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	QWORD PTR 32[r13], rcx
	mov	BYTE PTR 12[r13], r12b
	mov	DWORD PTR 48[r13], eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 4[r13], eax
	mov	eax, DWORD PTR 32[rsp]
	mov	DWORD PTR 8[r13], eax
	mov	eax, DWORD PTR 36[rsp]
	mov	DWORD PTR 16[r13], eax
	mov	eax, 1
	sal	rax, cl
	mov	QWORD PTR 24[r13], rax
	call	VIDEOSIZE@PLT
	mov	rdi, r13
	mov	DWORD PTR 40[r13], eax
	mov	DWORD PTR 44[r13], eax
	call	ULTRACAM_T@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	assert@PLT
	mov	rdi, r13
	call	ULTRACAM_T@PLT
	mov	rdi, r13
	mov	QWORD PTR 8[rax], 0
	call	ULTRACAM_T@PLT
	mov	rdi, r13
	mov	QWORD PTR [rax], 0
	call	ultracam_configure_video@PLT
	mov	rdi, r13
	call	usbvideo_RegisterVideoDevice@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L40
	mov	rsi, r13
	mov	rdi, rbp
	call	usb_set_intfdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	esi, DWORD PTR 8[r14]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	esi, DWORD PTR 8[r14]
	lea	rdi, .LC6[rip]
	call	err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	esi, DWORD PTR 8[r14]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	err@PLT
	jmp	.L29
.L35:
	lea	rdi, .LC8[rip]
	call	err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
.L40:
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	err@PLT
.L18:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ultracam_probe, .-ultracam_probe
	.comm	flags,4,4
	.comm	debug,4,4
	.comm	cams,4,4
	.comm	VIDEO_PALETTE_RGB24,8,8
	.comm	ENODEV,4,4
	.comm	EIO,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_ultracam.c_ultracam_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ultracam_probe\012\000"
	.align	2
.LC1:
	.ascii	"IBM Ultra camera found (rev. 0x%04x)\012\000"
	.align	2
.LC2:
	.ascii	"Number of alternate settings=%d.\012\000"
	.align	2
.LC3:
	.ascii	"Too few alternate settings for this camera!\000"
	.align	2
.LC4:
	.ascii	"Interface %d. has %u. endpoints!\000"
	.align	2
.LC5:
	.ascii	"Alternate settings have different endpoint addresse"
	.ascii	"s!\000"
	.align	2
.LC6:
	.ascii	"Interface %d. has non-ISO endpoint!\000"
	.align	2
.LC7:
	.ascii	"Interface %d. has ISO OUT endpoint!\000"
	.align	2
.LC8:
	.ascii	"More than one inactive alt. setting!\000"
	.align	2
.LC9:
	.ascii	"Active setting=%d. maxPS=%d.\012\000"
	.align	2
.LC10:
	.ascii	"Even better ctive setting=%d. maxPS=%d.\012\000"
	.align	2
.LC11:
	.ascii	"Failed to recognize the camera!\000"
	.align	2
.LC12:
	.ascii	"usbvideo_RegisterVideoDevice() failed.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ultracam_probe, %function
ultracam_probe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r6, r0
	bl	interface_to_usbdev
	ldr	fp, .L40
	str	r0, [sp, #8]
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L2
	ldr	r1, .L40+4
	add	r0, r6, #8
	bl	dev_info
.L2:
	ldr	r3, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L3
.L27:
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [sp, #8]
	ldr	r0, [r3, #4]
	add	r3, r6, #8
	mov	r4, r3
	str	r3, [sp, #20]
	bl	le16_to_cpu
	ldr	r1, .L40+12
	mov	r2, r0
	mov	r0, r4
	bl	dev_info
	ldr	r3, [fp]
	ldr	r10, [r6]
	cmp	r3, #0
	bgt	.L29
.L5:
	cmp	r10, #7
	ble	.L30
	mov	r7, #0
	mvn	r3, #0
	mov	r4, r7
	str	r3, [sp, #4]
	str	r7, [sp, #16]
	str	r3, [sp, #12]
	b	.L6
.L36:
	ldrb	r7, [r9]	@ zero_extendqisi2
.L9:
	mov	r0, r9
	bl	usb_endpoint_xfer_isoc
	cmp	r0, #0
	beq	.L31
	mov	r0, r9
	bl	usb_endpoint_dir_out
	cmp	r0, #0
	bne	.L32
	ldr	r0, [r9, #4]
	bl	le16_to_cpu
	cmp	r0, #0
	bne	.L12
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bge	.L33
	str	r8, [sp, #4]
.L13:
	add	r4, r4, #1
	cmp	r10, r4
	beq	.L34
.L6:
	ldr	r3, [r6, #4]
	add	r5, r3, r4, lsl #4
	ldr	r2, [r5, #4]
	ldr	r8, [r3, r4, lsl #4]
	cmp	r2, #1
	bne	.L35
	cmp	r7, #0
	ldr	r9, [r5, #12]
	beq	.L36
	ldrb	r2, [r9]	@ zero_extendqisi2
	cmp	r2, r7
	beq	.L9
	ldr	r0, .L40+16
	bl	err
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L12:
	ldr	r3, [sp, #12]
	ldr	r0, [r9, #4]
	cmp	r3, #0
	blt	.L37
	bl	le16_to_cpu
	ldr	r3, [sp, #16]
	cmp	r0, r3
	ble	.L13
	ldr	r0, [r9, #4]
	bl	le16_to_cpu
	ldr	r3, [fp]
	str	r0, [sp, #16]
	cmp	r3, #0
	bgt	.L38
.L21:
	str	r8, [sp, #12]
	b	.L13
.L37:
	bl	le16_to_cpu
	ldr	r3, [fp]
	str	r0, [sp, #16]
	cmp	r3, #0
	ble	.L21
	mov	r3, r0
	mov	r2, r8
	ldr	r1, .L40+20
	ldr	r0, [sp, #20]
	str	r8, [sp, #12]
	bl	dev_info
	b	.L13
.L29:
	mov	r2, r10
	mov	r0, r4
	ldr	r1, .L40+24
	bl	dev_info
	b	.L5
.L38:
	mov	r3, r0
	mov	r2, r8
	ldr	r1, .L40+28
	ldr	r0, [sp, #20]
	str	r8, [sp, #12]
	bl	dev_info
	b	.L13
.L30:
	ldr	r0, .L40+32
	bl	err
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L34:
	ldr	r3, [sp, #12]
	lsr	r4, r3, #31
	ldr	r3, [sp, #16]
	cmp	r3, #0
	orrle	r4, r4, #1
	ldr	r3, [sp, #4]
	orrs	r4, r4, r3, lsr #31
	beq	.L15
	ldr	r0, .L40+36
	bl	err
	b	.L27
.L35:
	ldr	r1, [r5, #8]
	ldr	r0, .L40+40
	bl	err
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L31:
	ldr	r1, [r5, #8]
	ldr	r0, .L40+44
	bl	err
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L32:
	ldr	r1, [r5, #8]
	ldr	r0, .L40+48
	bl	err
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L15:
	ldr	r3, .L40+52
	ldr	r0, [r3]
	bl	usbvideo_AllocateDevice
	subs	r5, r0, #0
	beq	.L16
	mov	r3, #1
	ldr	r2, .L40+56
	ldr	r1, .L40+60
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r1, [r6, #4]
	lsl	r3, r3, r2
	ldr	r1, [r1, #8]
	str	r3, [r5, #20]
	ldr	r3, [sp, #4]
	ldr	ip, [fp]
	str	r3, [r5, #4]
	ldr	r3, [sp, #12]
	ldr	lr, [sp, #8]
	str	r3, [r5, #8]
	ldr	r3, [sp, #16]
	str	lr, [r5, #40]
	str	ip, [r5]
	str	r2, [r5, #24]
	str	r0, [r5, #44]
	str	r1, [r5, #36]
	str	r3, [r5, #16]
	mov	r1, #480
	mov	r0, #640
	strb	r7, [r5, #12]
	bl	VIDEOSIZE
	mov	r3, r0
	mov	r0, r5
	str	r3, [r5, #28]
	str	r3, [r5, #32]
	bl	ULTRACAM_T
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mov	r0, r5
	bl	ULTRACAM_T
	mov	r3, r0
	mov	r0, r5
	str	r4, [r3, #4]
	bl	ULTRACAM_T
	mov	r3, r0
	mov	r0, r5
	str	r4, [r3]
	bl	ultracam_configure_video
	mov	r0, r5
	bl	usbvideo_RegisterVideoDevice
	subs	r4, r0, #0
	bne	.L39
	mov	r1, r5
	mov	r0, r6
	bl	usb_set_intfdata
	b	.L1
.L33:
	ldr	r0, .L40+64
	bl	err
	ldr	r3, .L40+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L39:
	ldr	r0, .L40+68
	bl	err
.L16:
	ldr	r3, .L40+72
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L41:
	.align	2
.L40:
	.word	debug
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.word	.LC5
	.word	.LC9
	.word	.LC2
	.word	.LC10
	.word	.LC3
	.word	.LC11
	.word	.LC4
	.word	.LC6
	.word	.LC7
	.word	cams
	.word	VIDEO_PALETTE_RGB24
	.word	flags
	.word	.LC8
	.word	.LC12
	.word	EIO
	.size	ultracam_probe, .-ultracam_probe
	.comm	flags,4,4
	.comm	debug,4,4
	.comm	cams,4,4
	.comm	VIDEO_PALETTE_RGB24,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
