	.file	"extr_journal-authenticate.c_journal_file_append_first_tag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Calculating first tag..."
	.text
	.p2align 4
	.globl	journal_file_append_first_tag
	.type	journal_file_append_first_tag, @function
journal_file_append_first_tag:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 8[rdi]
	test	eax, eax
	jne	.L14
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	log_debug@PLT
	mov	rdi, rbp
	call	journal_file_hmac_put_header@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	le64toh@PLT
	mov	esi, DWORD PTR hash_table[rip]
	mov	edi, DWORD PTR Object[rip]
	mov	rbx, rax
	call	offsetof@PLT
	cmp	rax, rbx
	jle	.L3
.L12:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR hash_table[rip]
	mov	edi, DWORD PTR Object[rip]
	call	offsetof@PLT
	mov	rcx, rbx
	mov	esi, DWORD PTR OBJECT_FIELD_HASH_TABLE[rip]
	xor	edx, edx
	sub	rcx, rax
	mov	rdi, rbp
	call	journal_file_hmac_put_object@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	call	le64toh@PLT
	mov	esi, DWORD PTR hash_table[rip]
	mov	edi, DWORD PTR Object[rip]
	mov	rbx, rax
	call	offsetof@PLT
	cmp	rax, rbx
	jg	.L12
	mov	esi, DWORD PTR hash_table[rip]
	mov	edi, DWORD PTR Object[rip]
	call	offsetof@PLT
	mov	esi, DWORD PTR OBJECT_DATA_HASH_TABLE[rip]
	xor	edx, edx
	mov	rdi, rbp
	sub	rbx, rax
	mov	rcx, rbx
	call	journal_file_hmac_put_object@PLT
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	journal_file_append_tag@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	journal_file_append_first_tag, .-journal_file_append_first_tag
	.comm	hash_table,4,4
	.comm	Object,4,4
	.comm	OBJECT_FIELD_HASH_TABLE,4,4
	.comm	OBJECT_DATA_HASH_TABLE,4,4
	.comm	EINVAL,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_journal-authenticate.c_journal_file_append_first_tag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Calculating first tag...\000"
	.text
	.align	2
	.global	journal_file_append_first_tag
	.syntax unified
	.arm
	.fpu softvfp
	.type	journal_file_append_first_tag, %function
journal_file_append_first_tag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r0, .L11
	bl	log_debug
	mov	r0, r4
	bl	journal_file_hmac_put_header
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4]
	ldr	r7, .L11+4
	ldr	r0, [r3, #4]
	bl	le64toh
	ldr	r6, .L11+8
	mov	r5, r0
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	offsetof
	cmp	r0, r5
	ble	.L3
.L9:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	offsetof
	ldr	r2, .L11+16
	sub	r3, r5, r0
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #0
	bl	journal_file_hmac_put_object
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	le64toh
	ldr	r1, [r7]
	mov	r5, r0
	ldr	r0, [r6]
	bl	offsetof
	cmp	r0, r5
	bgt	.L9
	ldr	r1, [r7]
	ldr	r0, [r6]
	bl	offsetof
	ldr	r2, .L11+20
	sub	r3, r5, r0
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #0
	bl	journal_file_hmac_put_object
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	journal_file_append_tag
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	hash_table
	.word	Object
	.word	EINVAL
	.word	OBJECT_FIELD_HASH_TABLE
	.word	OBJECT_DATA_HASH_TABLE
	.size	journal_file_append_first_tag, .-journal_file_append_first_tag
	.comm	hash_table,4,4
	.comm	Object,4,4
	.comm	OBJECT_FIELD_HASH_TABLE,4,4
	.comm	OBJECT_DATA_HASH_TABLE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
