	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_account_type
_create_account_type:                   ## @create_account_type
	.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
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	setg	%al
	movq	_MAX_ACCOUNT_TYPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	8(%r14), %rax
	movq	_MIN_CURRENCY_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setge	%cl
	movq	_MAX_CURRENCY_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	_AccTypes@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%ebx, %r15
	movq	(%rax,%r15,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%r14), %rax
	jne	LBB0_5
## %bb.3:
	movq	24(%rbx), %rax
	cmpq	24(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	16(%r14), %rax
	sete	%dil
LBB0_5:
	callq	_assert
	movq	40(%rbx), %rdi
	movl	32(%rbx), %esi
	incl	%esi
	callq	_zfree
	jmp	LBB0_6
LBB0_1:
	movl	$80, %edi
	callq	_zmalloc0
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	%rbx, (%rax,%r15,8)
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	movl	%r15d, 8(%rbx)
	movups	16(%r14), %xmm0
	movups	%xmm0, 16(%rbx)
	movl	64(%r14), %eax
	movl	%eax, 72(%rbx)
LBB0_6:
	movl	60(%r14), %eax
	movl	%eax, 68(%rbx)
	movl	56(%r14), %eax
	movl	%eax, 64(%rbx)
	movups	40(%r14), %xmm0
	movups	%xmm0, 48(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 32(%rbx)
	xorl	%edi, %edi
	cmpl	$4097, %eax                     ## imm = 0x1001
	setb	%dil
	callq	_assert
	movl	32(%r14), %edi
	incl	%edi
	callq	_zmalloc
	movq	%rax, 40(%rbx)
	movl	36(%r14), %esi
	movl	32(%rbx), %edx
	incl	%edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	40(%rbx), %rax
	movslq	32(%rbx), %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx,4)
	sete	%dil
	callq	_assert
	movq	_tot_account_types@GOTPCREL(%rip), %rax
	incl	(%rax)
	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	_MIN_CURRENCY_ID,8,3            ## @MIN_CURRENCY_ID
	.comm	_MAX_CURRENCY_ID,8,3            ## @MAX_CURRENCY_ID
	.comm	_AccTypes,8,3                   ## @AccTypes
	.comm	_tot_account_types,4,2          ## @tot_account_types
	.no_dead_strip	_create_account_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_account_type
_create_account_type:                   ; @create_account_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w21, [x0]
	cmp	w21, #0
Lloh0:
	adrp	x8, _MAX_ACCOUNT_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ACCOUNT_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w21, w8, #0, gt
	cset	w0, le
	bl	_assert
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MIN_CURRENCY_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIN_CURRENCY_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh6:
	adrp	x9, _MAX_CURRENCY_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_CURRENCY_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w0, le
	bl	_assert
Lloh9:
	adrp	x22, _AccTypes@GOTPAGE
Lloh10:
	ldr	x22, [x22, _AccTypes@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x20, [x8, w21, sxtw #3]
	cbz	x20, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #24]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_assert
	ldr	x0, [x20, #40]
	ldr	w8, [x20, #32]
	add	w1, w8, #1
	bl	_zfree
	b	LBB0_7
LBB0_6:
	sxtw	x23, w21
	mov	w0, #80
	bl	_zmalloc0
	mov	x20, x0
	ldr	x8, [x22]
	str	x0, [x8, x23, lsl #3]
	ldr	x8, [x19, #8]
	str	x8, [x0]
	str	w21, [x0, #8]
	ldr	q0, [x19, #16]
	str	q0, [x0, #16]
	ldr	w8, [x19, #64]
	str	w8, [x0, #72]
LBB0_7:
	ldr	d0, [x19, #56]
	str	d0, [x20, #64]
	ldur	q0, [x19, #40]
	str	q0, [x20, #48]
	ldr	w8, [x19, #32]
	str	w8, [x20, #32]
	cmp	w8, #1, lsl #12                 ; =4096
	cset	w0, ls
	bl	_assert
	ldr	w8, [x19, #32]
	add	w0, w8, #1
	bl	_zmalloc
	str	x0, [x20, #40]
	ldr	w1, [x19, #36]
	ldr	w8, [x20, #32]
	add	w2, w8, #1
	bl	_memcpy
	ldr	x8, [x20, #40]
	ldrsw	x9, [x20, #32]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
Lloh11:
	adrp	x8, _tot_account_types@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tot_account_types@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ACCOUNT_TYPE,4,2           ; @MAX_ACCOUNT_TYPE
	.comm	_MIN_CURRENCY_ID,8,3            ; @MIN_CURRENCY_ID
	.comm	_MAX_CURRENCY_ID,8,3            ; @MAX_CURRENCY_ID
	.comm	_AccTypes,8,3                   ; @AccTypes
	.comm	_tot_account_types,4,2          ; @tot_account_types
	.no_dead_strip	_create_account_type
.subsections_via_symbols
