	.file	"extr_x509write_crt.c_mbedtls_x509write_crt_set_subject_key_identifier.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mbedtls_x509write_crt_set_subject_key_identifier
	.type	mbedtls_x509write_crt_set_subject_key_identifier, @function
mbedtls_x509write_crt_set_subject_key_identifier:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MBEDTLS_MPI_MAX_SIZE[rip]
	mov	rcx, rsp
	lea	r8d, 20[rax+rax]
	movsx	rbx, r8d
	lea	rax, 15[rbx]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L11:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L11
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L12
.L4:
	mov	edx, r8d
	lea	r14, [rsp+rbx]
	xor	esi, esi
	mov	rdi, rsp
	lea	r13, -48[rbp]
	mov	QWORD PTR -48[rbp], r14
	lea	rbx, -20[rsp+rbx]
	call	memset@PLT
	mov	edx, DWORD PTR [r12]
	mov	rsi, rsp
	mov	rdi, r13
	call	mbedtls_pk_write_pubkey@PLT
	xor	edi, edi
	mov	esi, eax
	call	MBEDTLS_ASN1_CHK_ADD@PLT
	xor	esi, esi
	mov	rdx, rbx
	mov	rdi, r14
	call	mbedtls_sha1@PLT
	mov	edx, 20
	mov	rsi, rsp
	mov	rdi, r13
	mov	QWORD PTR -48[rbp], rbx
	call	mbedtls_asn1_write_len@PLT
	mov	edi, 20
	mov	esi, eax
	call	MBEDTLS_ASN1_CHK_ADD@PLT
	mov	edx, DWORD PTR MBEDTLS_ASN1_OCTET_STRING[rip]
	mov	rsi, rsp
	mov	rdi, r13
	call	mbedtls_asn1_write_tag@PLT
	mov	edi, 20
	mov	esi, eax
	call	MBEDTLS_ASN1_CHK_ADD@PLT
	mov	edi, DWORD PTR MBEDTLS_OID_SUBJECT_KEY_IDENTIFIER[rip]
	call	MBEDTLS_OID_SIZE@PLT
	mov	esi, DWORD PTR MBEDTLS_OID_SUBJECT_KEY_IDENTIFIER[rip]
	xor	ecx, ecx
	mov	r8, rbx
	mov	edx, eax
	mov	r9d, 20
	mov	rdi, r12
	call	mbedtls_x509write_crt_set_extension@PLT
	mov	rcx, QWORD PTR -40[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mbedtls_x509write_crt_set_subject_key_identifier, .-mbedtls_x509write_crt_set_subject_key_identifier
	.comm	MBEDTLS_OID_SUBJECT_KEY_IDENTIFIER,4,4
	.comm	MBEDTLS_MPI_MAX_SIZE,4,4
	.comm	MBEDTLS_ASN1_OCTET_STRING,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_x509write_crt.c_mbedtls_x509write_crt_set_subject_key_identifier.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mbedtls_x509write_crt_set_subject_key_identifier
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_x509write_crt_set_subject_key_identifier, %function
mbedtls_x509write_crt_set_subject_key_identifier:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	mov	r6, r0
	ldr	r3, .L6
	mov	r1, #0
	ldr	r4, [r3]
	add	r4, r4, #10
	lsl	r4, r4, #1
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r5, sp, #8
	ldr	r3, .L6+4
	add	r7, r5, r4
	mov	r2, r4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	str	r7, [fp, #-28]
	bl	memset
	mov	r1, r5
	ldr	r2, [r6]
	sub	r0, fp, #28
	bl	mbedtls_pk_write_pubkey
	sub	r4, r4, #20
	add	r4, r5, r4
	mov	r1, r0
	mov	r0, #0
	bl	MBEDTLS_ASN1_CHK_ADD
	mov	r2, r4
	mov	r1, #0
	mov	r0, r7
	bl	mbedtls_sha1
	mov	r1, r5
	mov	r2, #20
	sub	r0, fp, #28
	str	r4, [fp, #-28]
	bl	mbedtls_asn1_write_len
	mov	r1, r0
	mov	r0, #20
	bl	MBEDTLS_ASN1_CHK_ADD
	ldr	r3, .L6+8
	mov	r1, r5
	ldr	r2, [r3]
	sub	r0, fp, #28
	bl	mbedtls_asn1_write_tag
	mov	r1, r0
	mov	r0, #20
	bl	MBEDTLS_ASN1_CHK_ADD
	ldr	r3, .L6+12
	ldr	r5, [r3]
	mov	r0, r5
	bl	MBEDTLS_OID_SIZE
	mov	r3, #20
	mov	r2, r0
	str	r3, [sp, #4]
	mov	r1, r5
	mov	r3, #0
	mov	r0, r6
	str	r4, [sp]
	bl	mbedtls_x509write_crt_set_extension
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	MBEDTLS_MPI_MAX_SIZE
	.word	.LC0
	.word	MBEDTLS_ASN1_OCTET_STRING
	.word	MBEDTLS_OID_SUBJECT_KEY_IDENTIFIER
	.size	mbedtls_x509write_crt_set_subject_key_identifier, .-mbedtls_x509write_crt_set_subject_key_identifier
	.comm	MBEDTLS_OID_SUBJECT_KEY_IDENTIFIER,4,4
	.comm	MBEDTLS_MPI_MAX_SIZE,4,4
	.comm	MBEDTLS_ASN1_OCTET_STRING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
