	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_account
_create_account:                        ## @create_account
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_MAX_ACCOUNT_TYPE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	%eax, (%rcx)
	jb	LBB0_2
## %bb.1:
	movq	_AccTypes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rcx,%rax,8)
	setne	%dil
LBB0_2:
	callq	_assert
	movq	(%r15), %rdi
	movl	44(%r15), %esi
	callq	_get_account
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	_AccTypes@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	(%rdx,%rax,8), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rcx
	sete	%dil
	callq	_assert
	movl	$48, %edi
	callq	_zmalloc0
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, 8(%rbx)
	movups	32(%r15), %xmm0
	movups	%xmm0, 32(%rbx)
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:
	movl	28(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 24(%rbx)
	movl	16(%r15), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	cmpl	$4097, %eax                     ## imm = 0x1001
	setb	%dil
	callq	_assert
	movl	16(%r15), %edi
	incl	%edi
	callq	_zmalloc
	movq	%rax, 16(%rbx)
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	incl	%edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	16(%rbx), %rax
	movslq	(%rbx), %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx,4)
	sete	%dil
	callq	_assert
LBB0_5:
	movq	%rbx, %rdi
	callq	_add_account
	movq	_tot_accounts@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	8(%rbx), %rax
	testb	$4, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	_special_accounts@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_7:
	movq	_currency_accounts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	_MIN_CURRENCY_ID@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	incl	(%rax,%rcx,4)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ACCOUNT_TYPE,4,2           ## @MAX_ACCOUNT_TYPE
	.comm	_AccTypes,8,3                   ## @AccTypes
	.comm	_tot_accounts,4,2               ## @tot_accounts
	.comm	_special_accounts,4,2           ## @special_accounts
	.comm	_currency_accounts,8,3          ## @currency_accounts
	.comm	_MIN_CURRENCY_ID,8,3            ## @MIN_CURRENCY_ID
	.no_dead_strip	_create_account
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_account
_create_account:                        ; @create_account
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_ACCOUNT_TYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_ACCOUNT_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _AccTypes@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AccTypes@GOTPAGEOFF]
	cmp	w9, w8
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x9, [x22]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, #0
	cset	w0, ne
LBB0_3:
	bl	_assert
	ldr	x0, [x19]
	ldr	w1, [x19, #44]
	bl	_get_account
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	ldp	x10, x9, [x19]
	ldr	x8, [x8, x10, lsl #3]
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, eq
	bl	_assert
	mov	w0, #48
	bl	_zmalloc0
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x0, #8]
	ldr	q0, [x19, #32]
	str	q0, [x0, #32]
	cbz	w20, LBB0_6
; %bb.4:
	ldr	d0, [x19, #24]
	str	d0, [x21, #24]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.5:
	str	w8, [x21]
	cmp	w8, #1, lsl #12                 ; =4096
	cset	w0, ls
	bl	_assert
	ldr	w8, [x19, #16]
	add	w0, w8, #1
	bl	_zmalloc
	str	x0, [x21, #16]
	ldp	w8, w1, [x19, #16]
	add	w2, w8, #1
	bl	_memcpy
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
LBB0_6:
	mov	x0, x21
	bl	_add_account
Lloh5:
	adrp	x8, _tot_accounts@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tot_accounts@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x21, #8]
	ldrb	w8, [x8, #8]
	tbz	w8, #2, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _special_accounts@GOTPAGE
Lloh8:
	ldr	x8, [x8, _special_accounts@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_8:
Lloh9:
	adrp	x8, _currency_accounts@GOTPAGE
Lloh10:
	ldr	x8, [x8, _currency_accounts@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
Lloh12:
	adrp	x10, _MIN_CURRENCY_ID@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MIN_CURRENCY_ID@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	sub	x9, x9, x10
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ACCOUNT_TYPE,4,2           ; @MAX_ACCOUNT_TYPE
	.comm	_AccTypes,8,3                   ; @AccTypes
	.comm	_tot_accounts,4,2               ; @tot_accounts
	.comm	_special_accounts,4,2           ; @special_accounts
	.comm	_currency_accounts,8,3          ; @currency_accounts
	.comm	_MIN_CURRENCY_ID,8,3            ; @MIN_CURRENCY_ID
	.no_dead_strip	_create_account
.subsections_via_symbols
