	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_balance                    ## -- Begin function get_balance
	.p2align	4, 0x90
_get_balance:                           ## @get_balance
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_fprintf
LBB0_2:
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_get_account
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	cmpq	%r12, %rcx
	je	LBB0_7
## %bb.6:
	movq	_ERROR_BALANCE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_BALANCE_NO_ACCOUNT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	24(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
	movq	8(%rax), %rcx
	movq	%rcx, (%r14)
	addq	$16, %rax
LBB0_8:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in get_balance(%d,%lld)\n"

	.comm	_BALANCE_NO_ACCOUNT,8,3         ## @BALANCE_NO_ACCOUNT
	.comm	_ERROR_BALANCE,8,3              ## @ERROR_BALANCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_balance                    ; -- Begin function get_balance
	.p2align	2
_get_balance:                           ; @get_balance
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_fprintf
LBB0_2:
	mov	x0, x23
	mov	x1, x22
	bl	_get_account
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
	cmp	x8, #0
	ccmp	x8, x21, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x0, #8]
	str	x8, [x19]
	add	x8, x0, #16
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _BALANCE_NO_ACCOUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BALANCE_NO_ACCOUNT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ERROR_BALANCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR_BALANCE@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in get_balance(%d,%lld)\n"

	.comm	_BALANCE_NO_ACCOUNT,8,3         ; @BALANCE_NO_ACCOUNT
	.comm	_ERROR_BALANCE,8,3              ; @ERROR_BALANCE
.subsections_via_symbols
