	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_transaction
_check_transaction:                     ## @check_transaction
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_trs_declared_locked@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setle	%cl
	movq	_trs_long_locked@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	cmpl	$0, 4(%rbx)
	jle	LBB0_21
## %bb.1:
	movq	%rbx, %rdi
	movl	$-48, %ecx
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	4(%rdi), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	addq	$24, %rbx
	cmpq	%rax, %r15
	jge	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movq	16(%rax,%rbx), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rax,%rbx), %r14
	movq	40(%r13), %rax
	movl	(%rax), %r12d
	movq	_MAX_ACC_INCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r14, %r14
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setl	%dil
	callq	_assert
	orl	(%r13), %r12d
	testb	$2, %r12b
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	8(%r13), %r14
	movq	_MAX_BALANCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jl	LBB0_20
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	negq	%rax
	xorl	%edi, %edi
	cmpq	%rax, %r14
	setge	%dil
	callq	_assert
	movl	(%r13), %eax
	orl	%r12d, %eax
	testb	$1, %al
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	movq	_trs_long_locked@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rdx
	cmpq	%rcx, 8(%rdx,%rbx)
	jne	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %al
	jne	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rcx
	addq	%r14, %rcx
	cmpq	32(%r13), %rcx
	jge	LBB0_18
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	$4, %r12d
	jne	LBB0_18
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 24(%r13)
	jle	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rax
	addq	%r14, %rax
	setns	%al
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	8(%r13), %rax
	cmpq	32(%r13), %rax
	setge	%al
	andl	$4, %r12d
	shrl	$2, %r12d
	orb	%al, %r12b
	movzbl	%r12b, %edi
	callq	_assert
	movq	8(%r13), %rcx
	addq	%r14, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_BALANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, %rsi
	negq	%rsi
	movl	$-1, %eax
	cmpq	%rsi, %rcx
	jl	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r13), %rcx
	subq	%r14, %rcx
	cmpq	%rdx, %rcx
	jl	LBB0_20
	jmp	LBB0_25
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	$16, %eax
	jmp	LBB0_25
LBB0_3:
	addl	$16, %ecx
	movl	%ecx, %eax
	jmp	LBB0_25
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_25
LBB0_24:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_trs_declared_locked,4,2        ## @trs_declared_locked
	.comm	_trs_long_locked,4,2            ## @trs_long_locked
	.comm	_MAX_ACC_INCR,8,3               ## @MAX_ACC_INCR
	.comm	_MAX_BALANCE,8,3                ## @MAX_BALANCE
	.no_dead_strip	_check_transaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_transaction
_check_transaction:                     ; @check_transaction
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _trs_declared_locked@GOTPAGE
Lloh1:
	ldr	x9, [x9, _trs_declared_locked@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh3:
	adrp	x21, _trs_long_locked@GOTPAGE
Lloh4:
	ldr	x21, [x21, _trs_long_locked@GOTPAGEOFF]
	ldr	w9, [x21]
	ccmp	w8, w9, #4, gt
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w19, #-48
Lloh5:
	adrp	x24, _MAX_ACC_INCR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MAX_ACC_INCR@GOTPAGEOFF]
Lloh7:
	adrp	x25, _MAX_BALANCE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MAX_BALANCE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #4]
	add	w19, w19, #1
	add	x22, x22, #24
	cmp	x23, x8
	b.ge	LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x22
	ldr	x26, [x8, #16]
	cbz	x26, LBB0_21
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [x8]
	ldr	x8, [x26, #40]
	ldr	w28, [x8]
	ldr	x8, [x24]
	cmp	x27, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x27, x8
	cset	w0, lt
	bl	_assert
	ldr	w8, [x26]
	orr	w8, w8, w28
	tbnz	w8, #1, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #8]
	ldr	x9, [x25]
	add	x8, x8, x27
	cmp	x8, x9
	b.lt	LBB0_2
	b	LBB0_19
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	neg	x8, x8
	cmp	x27, x8
	cset	w0, ge
	bl	_assert
	ldr	w8, [x26]
	orr	w8, w8, w28
	tbnz	w8, #0, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26, #16]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #8]
	add	x10, x10, x22
	ldr	x10, [x10, #8]
	cmp	x10, x9
	b.ne	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w8, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #8]
	ldr	x9, [x26, #32]
	and	w10, w28, #0x4
	add	x8, x8, x27
	cmp	x8, x9
	ccmp	w10, #0, #0, lt
	b.ne	LBB0_17
	b	LBB0_22
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #24]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #32]
	add	x8, x8, x27
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_assert
	ldr	x8, [x26, #8]
	ldr	x9, [x26, #32]
	cmp	x8, x9
	cset	w8, ge
	and	w9, w28, #0x4
	orr	w0, w8, w9, lsr #2
	bl	_assert
	ldr	x8, [x26, #8]
	add	x8, x8, x27
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x25]
	neg	x10, x9
	cmp	x8, x10
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #32]
	sub	x8, x8, x27
	cmp	x8, x9
	b.lt	LBB0_2
LBB0_19:
	mov	w19, #-1
	b	LBB0_22
LBB0_20:
	mov	w19, #0
	b	LBB0_22
LBB0_21:
	add	w19, w19, #16
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_trs_declared_locked,4,2        ; @trs_declared_locked
	.comm	_trs_long_locked,4,2            ; @trs_long_locked
	.comm	_MAX_ACC_INCR,8,3               ; @MAX_ACC_INCR
	.comm	_MAX_BALANCE,8,3                ; @MAX_BALANCE
	.no_dead_strip	_check_transaction
.subsections_via_symbols
