	.file	"extr_photo-data.c_create_photo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	create_photo
	.type	create_photo, @function
create_photo:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR mode[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12d, DWORD PTR [rsi]
	sal	eax, 16
	mov	rbx, rsi
	sub	r12d, eax
	sub	r12d, DWORD PTR LEV_PHOTO_CREATE_PHOTO[rip]
	test	r12d, r12d
	jle	.L2
	xor	edi, edi
	cmp	DWORD PTR MAX_PHOTOS[rip], r12d
	setge	dil
.L2:
	call	assert@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	user_create_photo@PLT
	.cfi_endproc
.LFE0:
	.size	create_photo, .-create_photo
	.comm	mode,4,4
	.comm	MAX_PHOTOS,4,4
	.comm	LEV_PHOTO_CREATE_PHOTO,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_create_photo.c"
	.text
	.align	2
	.global	create_photo
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_photo, %function
create_photo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	ldr	r2, .L6+4
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r4, [r1]
	ldr	r2, [r2]
	sub	r4, r4, r3, lsl #16
	sub	r4, r4, r2
	cmp	r4, #0
	mov	r6, r0
	mov	r5, r1
	movle	r0, #0
	ble	.L2
	ldr	r3, .L6+8
	ldr	r0, [r3]
	cmp	r0, r4
	movlt	r0, #0
	movge	r0, #1
.L2:
	bl	assert
	mov	r2, r4
	mov	r0, r6
	ldr	r1, [r5, #4]
	pop	{r4, r5, r6, lr}
	b	user_create_photo
.L7:
	.align	2
.L6:
	.word	mode
	.word	LEV_PHOTO_CREATE_PHOTO
	.word	MAX_PHOTOS
	.size	create_photo, .-create_photo
	.comm	mode,4,4
	.comm	MAX_PHOTOS,4,4
	.comm	LEV_PHOTO_CREATE_PHOTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
