	.file	"extr_algapi.c_crypto_set_driver_name.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crypto_set_driver_name, @function
crypto_set_driver_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	cmp	BYTE PTR [rbx], 0
	je	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rdi]
	mov	edx, DWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	mov	rdi, rbx
	call	strlcpy@PLT
	movsx	rdi, eax
	movsx	rax, DWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	lea	rdx, 9[rdi]
	cmp	rdx, rax
	jbe	.L3
	mov	r12d, DWORD PTR ENAMETOOLONG[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rdi, rbx
	mov	edx, 9
	lea	rsi, suffix.1932[rip]
	call	memcpy@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	crypto_set_driver_name, .-crypto_set_driver_name
	.section	.rodata
	.align 8
	.type	suffix.1932, @object
	.size	suffix.1932, 9
suffix.1932:
	.string	"-generic"
	.comm	ENAMETOOLONG,4,4
	.comm	CRYPTO_MAX_ALG_NAME,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_algapi.c_crypto_set_driver_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-generic\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_set_driver_name, %function
crypto_set_driver_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	ldrb	r4, [r5]	@ zero_extendqisi2
	cmp	r4, #0
	beq	.L7
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r6, .L9
	ldr	r1, [r0, #4]
	ldr	r2, [r6]
	mov	r0, r5
	bl	strlcpy
	ldr	r3, [r6]
	add	r2, r0, #9
	cmp	r2, r3
	bhi	.L8
	mov	r2, #9
	ldr	r1, .L9+4
	add	r0, r5, r0
	bl	memcpy
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	CRYPTO_MAX_ALG_NAME
	.word	.LC0
	.word	ENAMETOOLONG
	.size	crypto_set_driver_name, .-crypto_set_driver_name
	.comm	ENAMETOOLONG,4,4
	.comm	CRYPTO_MAX_ALG_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
