	.file	"extr_libata-core.c_ata_id_n_sectors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ata_id_n_sectors, @function
ata_id_n_sectors:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	ata_id_has_lba@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L2
	call	ata_id_has_lba48@PLT
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR ATA_ID_LBA_CAPACITY_2[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ata_id_u64@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	ata_id_current_chs_valid@PLT
	test	rax, rax
	je	.L4
	mov	rdx, QWORD PTR ATA_ID_CUR_HEADS[rip]
	mov	rax, QWORD PTR ATA_ID_CUR_CYLS[rip]
	mov	eax, DWORD PTR 0[rbp+rax*4]
	imul	eax, DWORD PTR 0[rbp+rdx*4]
	mov	rdx, QWORD PTR ATA_ID_CUR_SECTORS[rip]
	imul	eax, DWORD PTR 0[rbp+rdx*4]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdx, QWORD PTR ATA_ID_HEADS[rip]
	mov	rax, QWORD PTR ATA_ID_CYLS[rip]
	mov	eax, DWORD PTR 0[rbp+rax*4]
	imul	eax, DWORD PTR 0[rbp+rdx*4]
	mov	rdx, QWORD PTR ATA_ID_SECTORS[rip]
	imul	eax, DWORD PTR 0[rbp+rdx*4]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR ATA_ID_LBA_CAPACITY[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ata_id_u32@PLT
	.cfi_endproc
.LFE0:
	.size	ata_id_n_sectors, .-ata_id_n_sectors
	.comm	ATA_ID_SECTORS,8,8
	.comm	ATA_ID_LBA_CAPACITY_2,4,4
	.comm	ATA_ID_LBA_CAPACITY,4,4
	.comm	ATA_ID_HEADS,8,8
	.comm	ATA_ID_CYLS,8,8
	.comm	ATA_ID_CUR_SECTORS,8,8
	.comm	ATA_ID_CUR_HEADS,8,8
	.comm	ATA_ID_CUR_CYLS,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_libata-core.c_ata_id_n_sectors.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_id_n_sectors, %function
ata_id_n_sectors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	ata_id_has_lba
	cmp	r0, #0
	mov	r0, r4
	beq	.L2
	bl	ata_id_has_lba48
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L8
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r3]
	b	ata_id_u64
.L2:
	bl	ata_id_current_chs_valid
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L8+4
	ldr	r3, .L8+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r4, r2, lsl #2]
	ldr	r2, [r4, r3, lsl #2]
	ldr	r3, .L8+12
	mul	r0, r2, r0
	ldr	r3, [r3]
	ldr	r3, [r4, r3, lsl #2]
	mul	r0, r3, r0
	pop	{r4, pc}
.L4:
	ldr	r2, .L8+16
	ldr	r3, .L8+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r4, r2, lsl #2]
	ldr	r2, [r4, r3, lsl #2]
	ldr	r3, .L8+24
	mul	r0, r2, r0
	ldr	r3, [r3]
	ldr	r3, [r4, r3, lsl #2]
	mul	r0, r3, r0
	pop	{r4, pc}
.L3:
	ldr	r3, .L8+28
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r3]
	b	ata_id_u32
.L9:
	.align	2
.L8:
	.word	ATA_ID_LBA_CAPACITY_2
	.word	ATA_ID_CUR_CYLS
	.word	ATA_ID_CUR_HEADS
	.word	ATA_ID_CUR_SECTORS
	.word	ATA_ID_CYLS
	.word	ATA_ID_HEADS
	.word	ATA_ID_SECTORS
	.word	ATA_ID_LBA_CAPACITY
	.size	ata_id_n_sectors, .-ata_id_n_sectors
	.comm	ATA_ID_SECTORS,4,4
	.comm	ATA_ID_LBA_CAPACITY_2,4,4
	.comm	ATA_ID_LBA_CAPACITY,4,4
	.comm	ATA_ID_HEADS,4,4
	.comm	ATA_ID_CYLS,4,4
	.comm	ATA_ID_CUR_SECTORS,4,4
	.comm	ATA_ID_CUR_HEADS,4,4
	.comm	ATA_ID_CUR_CYLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
