	.file	"extr_ide-disk_proc.c___idedisk_proc_show.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%04x%c"
	.text
	.p2align 4
	.type	__idedisk_proc_show, @function
__idedisk_proc_show:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, DWORD PTR SECTOR_SIZE[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	kmalloc@PLT
	test	rax, rax
	je	.L14
	mov	r14, rax
	mov	rdi, r12
	call	smart_enable@PLT
	mov	edx, r13d
	mov	rsi, r14
	mov	rdi, r12
	call	get_smart_data@PLT
	test	rax, rax
	jne	.L6
	cmp	DWORD PTR SECTOR_SIZE[rip], 1
	mov	ebx, 1
	mov	r13d, 32
	mov	r12d, 32
	jg	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, ebx
	mov	r13d, 10
	and	eax, 7
	cmp	eax, 7
	cmovne	r13d, r12d
	add	rbx, 1
.L5:
	mov	edi, DWORD PTR -4[r14+rbx*4]
	call	le16_to_cpu@PLT
	mov	ecx, r13d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	seq_printf@PLT
	mov	edx, DWORD PTR SECTOR_SIZE[rip]
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	eax, ebx
	jg	.L8
.L6:
	mov	rdi, r14
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__idedisk_proc_show, .-__idedisk_proc_show
	.comm	SECTOR_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ide-disk_proc.c___idedisk_proc_show.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%04x%c\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__idedisk_proc_show, %function
__idedisk_proc_show:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L14
	ldr	r8, .L14+4
	mov	r6, r0
	mov	r4, r1
	ldr	r0, [r8]
	ldr	r1, [r3]
	mov	r7, r2
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L13
	mov	r0, r4
	bl	smart_enable
	mov	r0, r4
	mov	r2, r7
	mov	r1, r5
	bl	get_smart_data
	subs	r4, r0, #0
	bne	.L6
	ldr	r3, [r8]
	cmp	r3, #1
	ble	.L6
	ldr	r0, [r5]
	bl	le16_to_cpu
	mov	r7, r5
	mov	r2, r0
	mov	r3, #32
	ldr	r9, .L14+8
	b	.L9
.L8:
	ldr	r0, [r7, #4]!
	bl	le16_to_cpu
	and	r3, r4, #7
	cmp	r3, #7
	mov	r2, r0
	moveq	r3, #10
	movne	r3, #32
.L9:
	mov	r1, r9
	mov	r0, r6
	bl	seq_printf
	ldr	r3, [r8]
	add	r4, r4, #1
	add	r3, r3, r3, lsr #31
	cmp	r4, r3, asr #1
	blt	.L8
.L6:
	mov	r0, r5
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	SECTOR_SIZE
	.word	.LC0
	.word	ENOMEM
	.size	__idedisk_proc_show, .-__idedisk_proc_show
	.comm	SECTOR_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
