	.file	"extr_hash.c_av_hash_final_hex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%02x"
	.text
	.p2align 4
	.globl	av_hash_final_hex
	.type	av_hash_final_hex, @function
av_hash_final_hex:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	DWORD PTR -68[rbp], edx
	mov	QWORD PTR -80[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR AV_HASH_MAX_SIZE[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	mov	rdi, r12
	mov	r14, rsp
	lea	r15, .LC0[rip]
	xor	ebx, ebx
	call	av_hash_get_size@PLT
	mov	rdi, r12
	mov	rsi, r14
	mov	r13d, eax
	call	av_hash_final@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	r12d, eax
	shr	r12d, 31
	add	r12d, eax
	sar	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, ebx
	mov	esi, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR [r14+rax*4]
	lea	eax, [rbx+rbx]
	add	ebx, 1
	lea	rdi, [rdx+rax*4]
	sub	esi, eax
	mov	rdx, r15
	call	snprintf@PLT
.L5:
	mov	esi, r12d
	mov	edi, r13d
	call	FFMIN@PLT
	cmp	ebx, eax
	jb	.L6
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	av_hash_final_hex, .-av_hash_final_hex
	.comm	AV_HASH_MAX_SIZE,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_hash.c_av_hash_final_hex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%02x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	av_hash_final_hex
	.syntax unified
	.arm
	.fpu softvfp
	.type	av_hash_final_hex, %function
av_hash_final_hex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L8
	mov	r4, r0
	ldr	r3, [r3]
	mov	r7, r2
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L8+4
	mov	r5, r1
	mov	r6, sp
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	av_hash_get_size
	add	r8, r7, r7, lsr #31
	mov	r1, r6
	mov	r9, r0
	mov	r0, r4
	bl	av_hash_final
	mov	r4, #0
	ldr	r10, .L8+8
	sub	r6, r6, #4
	asr	r8, r8, #1
	b	.L2
.L3:
	rsb	r1, r4, r4, lsl #31
	mov	r0, r5
	mov	r2, r10
	ldr	r3, [r6, #4]!
	add	r1, r7, r1, lsl #1
	bl	snprintf
	add	r4, r4, #1
	add	r5, r5, #8
.L2:
	mov	r1, r8
	mov	r0, r9
	bl	FFMIN
	cmp	r4, r0
	bcc	.L3
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	AV_HASH_MAX_SIZE
	.word	.LC1
	.word	.LC0
	.size	av_hash_final_hex, .-av_hash_final_hex
	.comm	AV_HASH_MAX_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
