	.file	"extr_libata-core.c_ata_id_c_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ata_id_c_string
	.type	ata_id_c_string, @function
ata_id_c_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	ebp, -1[rcx]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ecx, ebp
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	ata_id_string@PLT
	mov	esi, ebp
	mov	rdi, rbx
	call	strnlen@PLT
	cdqe
	add	rax, rbx
	cmp	rbx, rax
	jb	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	sub	rax, 1
	cmp	rbx, rax
	je	.L3
.L2:
	cmp	BYTE PTR -1[rax], 32
	je	.L4
.L3:
	mov	BYTE PTR [rax], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ata_id_c_string, .-ata_id_c_string
	.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_c_string.c"
	.text
	.align	2
	.global	ata_id_c_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_id_c_string, %function
ata_id_c_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	sub	r5, r3, #1
	mov	r3, r5
	bl	ata_id_string
	mov	r1, r5
	mov	r0, r4
	bl	strnlen
	add	r0, r4, r0
	cmp	r4, r0
	bcs	.L2
	mov	r3, r0
	b	.L3
.L4:
	cmp	r3, r4
	beq	.L5
.L3:
	ldrb	r2, [r3, #-1]	@ zero_extendqisi2
	mov	r0, r3
	cmp	r2, #32
	sub	r3, r3, #1
	beq	.L4
.L2:
	mov	r3, #0
	strb	r3, [r0]
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r3
	b	.L2
	.size	ata_id_c_string, .-ata_id_c_string
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
