	.file	"extr_money-data.c_create_account_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	create_account_type, @function
create_account_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR [rdi]
	xor	edi, edi
	test	r12d, r12d
	jle	.L2
	xor	edi, edi
	cmp	DWORD PTR MAX_ACCOUNT_TYPE[rip], r12d
	setge	dil
.L2:
	call	assert@PLT
	mov	rax, QWORD PTR 8[rbp]
	xor	edi, edi
	cmp	rax, QWORD PTR MIN_CURRENCY_ID[rip]
	jl	.L3
	xor	edi, edi
	cmp	rax, QWORD PTR MAX_CURRENCY_ID[rip]
	setle	dil
.L3:
	call	assert@PLT
	mov	rax, QWORD PTR AccTypes[rip]
	movsx	r13, r12d
	mov	rbx, QWORD PTR [rax+r13*8]
	test	rbx, rbx
	je	.L14
	mov	rax, QWORD PTR 8[rbp]
	xor	edi, edi
	cmp	QWORD PTR [rbx], rax
	je	.L15
.L6:
	call	assert@PLT
	mov	eax, DWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 40[rbx]
	lea	esi, 1[rax]
	call	zfree@PLT
.L5:
	mov	eax, DWORD PTR 60[rbp]
	xor	edi, edi
	mov	DWORD PTR 68[rbx], eax
	mov	eax, DWORD PTR 56[rbp]
	mov	DWORD PTR 64[rbx], eax
	mov	eax, DWORD PTR 52[rbp]
	mov	DWORD PTR 60[rbx], eax
	mov	eax, DWORD PTR 48[rbp]
	mov	DWORD PTR 56[rbx], eax
	mov	eax, DWORD PTR 44[rbp]
	mov	DWORD PTR 52[rbx], eax
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 32[rbx], eax
	cmp	eax, 4096
	setbe	dil
	call	assert@PLT
	mov	eax, DWORD PTR 32[rbp]
	lea	edi, 1[rax]
	call	zmalloc@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	mov	eax, DWORD PTR 32[rbx]
	lea	edx, 1[rax]
	call	memcpy@PLT
	movsx	rdx, DWORD PTR 32[rbx]
	mov	rax, QWORD PTR 40[rbx]
	xor	edi, edi
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	sete	dil
	call	assert@PLT
	add	DWORD PTR tot_account_types[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 24[rbx], rax
	jne	.L6
	xor	edi, edi
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 16[rbx], rax
	sete	dil
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, 80
	call	zmalloc0@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR AccTypes[rip]
	mov	QWORD PTR [rax+r13*8], rbx
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 8[rbx], r12d
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR 64[rbp]
	mov	DWORD PTR 72[rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	create_account_type, .-create_account_type
	.comm	tot_account_types,4,4
	.comm	MIN_CURRENCY_ID,8,8
	.comm	MAX_CURRENCY_ID,8,8
	.comm	MAX_ACCOUNT_TYPE,4,4
	.comm	AccTypes,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_money-data.c_create_account_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_account_type, %function
create_account_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	mov	r5, r0
	cmp	r6, #0
	movle	r0, #0
	ble	.L2
	ldr	r3, .L15
	ldr	r0, [r3]
	cmp	r0, r6
	movlt	r0, #0
	movge	r0, #1
.L2:
	bl	assert
	ldr	r3, .L15+4
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	cmp	r0, r3
	movlt	r0, #0
	blt	.L3
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
.L3:
	ldr	r7, .L15+12
	bl	assert
	ldr	r3, [r7]
	ldr	r4, [r3, r6, lsl #2]
	cmp	r4, #0
	beq	.L13
	ldr	r2, [r4]
	ldr	r3, [r5, #4]
	cmp	r2, r3
	beq	.L14
.L10:
	mov	r0, #0
.L6:
	bl	assert
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #20]
	add	r1, r1, #1
	bl	zfree
.L5:
	ldr	r2, [r5, #44]
	ldr	r3, [r5, #40]
	ldr	r0, [r5, #36]
	ldr	r1, [r5, #32]
	str	r2, [r4, #44]
	ldr	r2, [r5, #28]
	str	r3, [r4, #40]
	ldr	r3, [r5, #24]
	str	r0, [r4, #36]
	ldr	r0, [r5, #16]
	str	r3, [r4, #24]
	cmp	r0, #4096
	str	r1, [r4, #32]
	str	r2, [r4, #28]
	str	r0, [r4, #16]
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	ldr	r0, [r5, #16]
	add	r0, r0, #1
	bl	zmalloc
	ldr	r2, [r4, #16]
	ldr	r1, [r5, #20]
	add	r2, r2, #1
	str	r0, [r4, #20]
	bl	memcpy
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #20]
	ldr	r0, [r3, r2, lsl #2]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r2, .L15+16
	mov	r0, #0
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r2, [r4, #12]
	ldr	r3, [r5, #12]
	cmp	r2, r3
	bne	.L10
	ldr	r0, [r4, #8]
	ldr	r3, [r5, #8]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L6
.L13:
	mov	r0, #52
	bl	zmalloc0
	ldr	r3, [r5, #4]
	ldr	r2, [r7]
	ldr	r1, [r5, #8]
	str	r0, [r2, r6, lsl #2]
	ldr	r2, [r5, #12]
	str	r3, [r0]
	ldr	r3, [r5, #48]
	mov	r4, r0
	str	r6, [r0, #4]
	str	r1, [r0, #8]
	str	r2, [r0, #12]
	str	r3, [r0, #48]
	b	.L5
.L16:
	.align	2
.L15:
	.word	MAX_ACCOUNT_TYPE
	.word	MIN_CURRENCY_ID
	.word	MAX_CURRENCY_ID
	.word	AccTypes
	.word	tot_account_types
	.size	create_account_type, .-create_account_type
	.comm	tot_account_types,4,4
	.comm	MIN_CURRENCY_ID,4,4
	.comm	MAX_CURRENCY_ID,4,4
	.comm	MAX_ACCOUNT_TYPE,4,4
	.comm	AccTypes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
