	.file	"extr_siimage.c_siimage_seldev.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	siimage_seldev, @function
siimage_seldev:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	mov	r8, QWORD PTR 8[rdi]
	add	esi, 160
	movsx	rsi, esi
	mov	ecx, eax
	mov	edx, eax
	mov	edi, DWORD PTR [r8]
	mov	eax, DWORD PTR 4[r8]
	and	ecx, 1
	and	edx, 1
	add	rsi, QWORD PTR 8[r8]
	test	DWORD PTR IDE_HFLAG_MMIO[rip], edi
	je	.L2
	sal	eax, 6
	sal	rdx, cl
	cdqe
	add	rax, rsi
	or	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	sal	eax, 4
	sal	rdx, cl
	cdqe
	add	rax, rsi
	or	rax, rdx
	ret
	.cfi_endproc
.LFE0:
	.size	siimage_seldev, .-siimage_seldev
	.comm	IDE_HFLAG_MMIO,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_siimage.c_siimage_seldev.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	siimage_seldev, %function
siimage_seldev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	ldr	r2, .L6
	str	lr, [sp, #-4]!
	ldr	ip, [r2]
	ldr	lr, [r3]
	ldr	r2, [r3, #8]
	ldr	r0, [r0]
	ldr	r3, [r3, #4]
	add	r1, r1, #160
	add	r1, r1, r2
	tst	lr, ip
	addne	r1, r1, r3, lsl #6
	addeq	r1, r1, r3, lsl #4
	and	r0, r0, #1
	orr	r0, r1, r0, lsl r0
	ldr	pc, [sp], #4
.L7:
	.align	2
.L6:
	.word	IDE_HFLAG_MMIO
	.size	siimage_seldev, .-siimage_seldev
	.comm	IDE_HFLAG_MMIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
