	.file	"extr_photo-data.c_user_get_photos.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	user_get_photos
	.type	user_get_photos, @function
user_get_photos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	call	user_loaded@PLT
	mov	edi, eax
	call	assert@PLT
	test	ebp, ebp
	jle	.L3
	mov	ecx, DWORD PTR MAX_RESULT[rip]
	mov	rdi, r13
	mov	esi, r14d
	cmp	ecx, ebp
	mov	DWORD PTR 12[rsp], ecx
	cmovle	ebp, ecx
	call	user_get_photo_data@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L4
	test	r12d, r12d
	mov	edx, 0
	mov	ecx, DWORD PTR 12[rsp]
	mov	esi, ebp
	cmovns	edx, r12d
	cmp	ecx, edx
	cmovle	edx, ecx
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rcx, r15
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	user_get@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	user_get_photos, .-user_get_photos
	.comm	MAX_RESULT,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_photo-data.c_user_get_photos.c"
	.text
	.align	2
	.global	user_get_photos
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_get_photos, %function
user_get_photos:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	mov	r6, r1
	mov	r7, r2
	mov	r5, r0
	ldr	r8, [sp, #24]
	bl	user_loaded
	bl	assert
	cmp	r4, #0
	ble	.L3
	ldr	r3, .L7
	mov	r1, r6
	ldr	r6, [r3]
	mov	r0, r5
	cmp	r6, r4
	movlt	r4, r6
	bl	user_get_photo_data
	cmp	r0, #0
	beq	.L4
	bic	r2, r7, r7, asr #31
	cmp	r6, r2
	movlt	r2, r6
	mov	r3, r8
	mov	r1, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	user_get
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	MAX_RESULT
	.size	user_get_photos, .-user_get_photos
	.comm	MAX_RESULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
