	.file	"extr_x509write_csr.c_mbedtls_x509write_csr_set_key_usage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mbedtls_x509write_csr_set_key_usage
	.type	mbedtls_x509write_csr_set_key_usage, @function
mbedtls_x509write_csr_set_key_usage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, 7
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	BYTE PTR 12[rsp], sil
	lea	r12, 36[rsp]
	lea	rdx, 12[rsp]
	lea	rdi, 24[rsp]
	mov	rsi, r12
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rax, 40[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	mbedtls_asn1_write_bitstring@PLT
	cmp	eax, 4
	je	.L6
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR MBEDTLS_OID_KEY_USAGE[rip]
	call	MBEDTLS_OID_SIZE@PLT
	mov	esi, DWORD PTR MBEDTLS_OID_KEY_USAGE[rip]
	mov	rcx, r12
	mov	rdi, rbp
	mov	edx, eax
	mov	r8d, 4
	call	mbedtls_x509write_csr_set_extension@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mbedtls_x509write_csr_set_key_usage, .-mbedtls_x509write_csr_set_key_usage
	.comm	MBEDTLS_OID_KEY_USAGE,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_csr.c_mbedtls_x509write_csr_set_key_usage.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mbedtls_x509write_csr_set_key_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_x509write_csr_set_key_usage, %function
mbedtls_x509write_csr_set_key_usage:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	lr, r1
	sub	sp, sp, #32
	strb	lr, [sp, #15]
	ldr	lr, .L8
	add	ip, sp, #28
	mov	r3, #7
	mov	r5, r0
	add	r1, sp, #24
	add	r2, sp, #15
	add	r0, sp, #20
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	str	ip, [sp, #20]
	bl	mbedtls_asn1_write_bitstring
	cmp	r0, #4
	mov	r4, r0
	beq	.L6
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L8+4
	ldr	r6, [r3]
	mov	r0, r6
	bl	MBEDTLS_OID_SIZE
	str	r4, [sp]
	mov	r2, r0
	mov	r1, r6
	mov	r0, r5
	add	r3, sp, #24
	bl	mbedtls_x509write_csr_set_extension
	mov	r4, r0
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	MBEDTLS_OID_KEY_USAGE
	.size	mbedtls_x509write_csr_set_key_usage, .-mbedtls_x509write_csr_set_key_usage
	.comm	MBEDTLS_OID_KEY_USAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
