	.file	"extr_cipher.c_mbedtls_cipher_update_ad.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mbedtls_cipher_update_ad
	.type	mbedtls_cipher_update_ad, @function
mbedtls_cipher_update_ad:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR 24[rdi]
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR MBEDTLS_MODE_GCM[rip]
	xor	r8d, r8d
	cmp	QWORD PTR [rax], rcx
	je	.L13
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r8d, DWORD PTR MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA[rip]
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR 4[rdi]
	mov	r9, rdx
	mov	r8, rsi
	mov	r11d, DWORD PTR 8[rdi]
	mov	r10, QWORD PTR 16[rdi]
	mov	ecx, DWORD PTR [rdi]
	mov	edx, r12d
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	mov	esi, r11d
	mov	rdi, r10
	jmp	mbedtls_gcm_starts@PLT
	.cfi_endproc
.LFE0:
	.size	mbedtls_cipher_update_ad, .-mbedtls_cipher_update_ad
	.comm	MBEDTLS_MODE_GCM,8,8
	.comm	MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,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_cipher.c_mbedtls_cipher_update_ad.c"
	.text
	.align	2
	.global	mbedtls_cipher_update_ad
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_cipher_update_ad, %function
mbedtls_cipher_update_ad:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r0, #16]
	cmp	r3, #0
	beq	.L2
	str	lr, [sp, #-4]!
	ldr	lr, .L14
	ldr	ip, [r3]
	ldr	r3, [lr]
	sub	sp, sp, #12
	cmp	ip, r3
	movne	r0, #0
	beq	.L13
.L1:
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	bx	lr
.L13:
	stm	sp, {r1, r2}
	ldr	r3, [r0]
	ldr	r2, [r0, #4]
	ldr	r1, [r0, #8]
	ldr	r0, [r0, #12]
	bl	mbedtls_gcm_starts
	b	.L1
.L15:
	.align	2
.L14:
	.word	MBEDTLS_MODE_GCM
	.word	MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.size	mbedtls_cipher_update_ad, .-mbedtls_cipher_update_ad
	.comm	MBEDTLS_MODE_GCM,4,4
	.comm	MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
