	.file	"extr_photo-data.c_bind_user_metafile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bind user metafile local id = %d (%p)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"empty metafile found\n"
	.text
	.p2align 4
	.globl	bind_user_metafile
	.type	bind_user_metafile, @function
bind_user_metafile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdx, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movabs	rbp, -3689348814741910323
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	sub	rdx, QWORD PTR users[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	sar	rdx, 3
	imul	rdx, rbp
	cmp	DWORD PTR verbosity[rip], 2
	mov	esi, edx
	jg	.L15
.L2:
	mov	rdx, rbx
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	dbg@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L3
	cmp	rax, QWORD PTR EMPTY__METAFILE[rip]
	je	.L3
	movabs	rax, -3689348814741910323
	mov	rbp, rbx
	xor	edi, edi
	sub	rbp, QWORD PTR users[rip]
	sar	rbp, 3
	imul	rbp, rax
	cmp	DWORD PTR 12[rbx], 3
	setg	dil
	call	assert@PLT
	xor	edi, edi
	test	ebp, ebp
	jle	.L6
	xor	edi, edi
	cmp	DWORD PTR header[rip], ebp
	setge	dil
.L6:
	call	assert@PLT
	mov	rbp, QWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rsp]
	movsx	r13, DWORD PTR 12[rbx]
	mov	rdi, rbp
	call	READ_INT@PLT
	mov	eax, DWORD PTR 12[rbx]
	mov	ecx, 1
	mov	rdi, rbp
	lea	rdx, 4[rsp]
	lea	esi, -4[rax]
	call	crc32_check_and_repair@PLT
	mov	rdi, rbp
	mov	esi, r13d
	call	READ_INT@PLT
	mov	edx, r13d
	mov	rsi, rbp
	lea	rdi, 36[rbx]
	call	data_load@PLT
	add	rbp, r13
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	call	READ_INT@PLT
	movsx	rdx, DWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], rbp
	mov	esi, r13d
	lea	rax, 0[rbp+rdx*4]
	mov	QWORD PTR 24[rbx], rax
	movsx	rbp, DWORD PTR [rax+rdx*4]
	add	rbp, QWORD PTR [rbx]
	mov	rdi, rbp
	call	READ_INT@PLT
	lea	rdi, 32[rbx]
	mov	rsi, rbp
	mov	edx, r13d
	call	lookup_load@PLT
	add	rbp, r13
	movsx	rax, DWORD PTR 12[rbx]
	add	rax, QWORD PTR [rbx]
	xor	edi, edi
	cmp	rax, rbp
	setnb	dil
	call	assert@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	assert@PLT
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dbg@PLT
	mov	rsi, QWORD PTR EMPTY__METAFILE[rip]
	lea	rdi, 36[rbx]
	mov	edx, 4
	call	data_load@PLT
	lea	rdi, 32[rbx]
	xor	edx, edx
	xor	esi, esi
	call	lookup_load@PLT
	mov	DWORD PTR 8[rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, rdi
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	rsi, rbx
	sub	rsi, QWORD PTR users[rip]
	sar	rsi, 3
	imul	esi, ebp
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bind_user_metafile, .-bind_user_metafile
	.comm	verbosity,4,4
	.comm	users,8,8
	.comm	stderr,4,4
	.comm	header,4,4
	.comm	EMPTY__METAFILE,8,8
	.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_photo-data.c_bind_user_metafile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bind user metafile local id = %d (%p)\012\000"
	.align	2
.LC1:
	.ascii	"empty metafile found\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bind_user_metafile
	.syntax unified
	.arm
	.fpu softvfp
	.type	bind_user_metafile, %function
bind_user_metafile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L16
	ldr	r3, .L16+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	sub	r2, r0, r2
	asr	r2, r2, #2
	add	r1, r2, r2, lsl #3
	add	r1, r1, r1, lsl #6
	add	r1, r2, r1, lsl #3
	add	r1, r1, r1, lsl #15
	cmp	r3, #2
	ldr	r3, .L16+8
	sub	sp, sp, #8
	add	r2, r2, r1, lsl #3
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	rsb	r1, r2, #0
	bgt	.L14
.L2:
	mov	r2, r4
	ldr	r0, .L16+12
	bl	dbg
	ldr	r0, [r4]
	ldr	r6, .L16+16
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L3
	ldr	r0, [r4, #8]
	ldr	r5, [r5]
	cmp	r0, #3
	movle	r0, #0
	movgt	r0, #1
	sub	r5, r4, r5
	bl	assert
	cmp	r5, #0
	movle	r0, #0
	ble	.L6
	asr	r0, r5, #2
	add	r3, r0, r0, lsl #3
	add	r3, r3, r3, lsl #6
	add	r3, r0, r3, lsl #3
	ldr	r2, .L16+20
	add	r3, r3, r3, lsl #15
	add	r0, r0, r3, lsl #3
	ldr	r3, [r2]
	rsb	r0, r0, #0
	cmp	r3, r0
	movlt	r0, #0
	movge	r0, #1
.L6:
	mov	r7, r4
	bl	assert
	ldr	r5, [r4]
	ldr	r1, [sp]
	mov	r0, r5
	ldr	r6, [r4, #8]
	bl	READ_INT
	ldr	r1, [r4, #8]
	mov	r3, #1
	mov	r2, sp
	mov	r0, r5
	sub	r1, r1, #4
	bl	crc32_check_and_repair
	mov	r1, r6
	mov	r0, r5
	bl	READ_INT
	add	r8, r5, r6
	mov	r2, r6
	mov	r1, r5
	add	r0, r4, #24
	bl	data_load
	ldr	r1, [r4, #4]
	mov	r0, r8
	bl	READ_INT
	ldr	r2, [r4, #4]
	ldr	r0, [r7], #20
	add	r3, r8, r2, lsl #2
	ldr	r5, [r3, r2, lsl #2]
	mov	r1, r6
	add	r5, r0, r5
	str	r3, [r4, #16]
	mov	r0, r5
	str	r8, [r4, #12]
	bl	READ_INT
	mov	r1, r5
	mov	r2, r6
	mov	r0, r7
	bl	lookup_load
	ldr	r0, [r4]
	ldr	r3, [r4, #8]
	add	r5, r5, r6
	add	r0, r0, r3
	cmp	r0, r5
	movcc	r0, #0
	movcs	r0, #1
	bl	assert
.L1:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r0, .L16+24
	bl	dbg
	mov	r2, #4
	ldr	r1, [r6]
	add	r0, r4, #24
	bl	data_load
	mov	r2, #0
	add	r0, r4, #20
	mov	r1, r2
	bl	lookup_load
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L1
.L14:
	ldr	r3, .L16+28
	mov	r2, r1
	ldr	r0, [r3]
	ldr	r1, .L16+12
	mov	r3, r4
	bl	fprintf
	ldr	r2, [r5]
	sub	r2, r4, r2
	asr	r2, r2, #2
	add	r1, r2, r2, lsl #3
	add	r1, r1, r1, lsl #6
	add	r1, r2, r1, lsl #3
	add	r1, r1, r1, lsl #15
	add	r2, r2, r1, lsl #3
	rsb	r1, r2, #0
	b	.L2
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	users
	.word	verbosity
	.word	.LC2
	.word	.LC0
	.word	EMPTY__METAFILE
	.word	header
	.word	.LC1
	.word	stderr
	.size	bind_user_metafile, .-bind_user_metafile
	.comm	verbosity,4,4
	.comm	users,4,4
	.comm	stderr,4,4
	.comm	header,4,4
	.comm	EMPTY__METAFILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
