	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_operation
_find_operation:                        ## @find_operation
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_NS_OPER_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_21
	.p2align	4, 0x90
LBB0_2:
	xorl	%r12d, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	_NS_OPER_NUM@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %r15
	shlq	$4, %r15
	movl	(%rax,%r15), %ecx
	testl	%ecx, (%r13)
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax,%r15), %rcx
	movq	8(%r13), %rax
	movq	_STATE_ADDR_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rax,4)
	jne	LBB0_8
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r13), %edi
	callq	_NS_STATE
	movq	%rax, %rbx
	movq	_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r15), %rax
	movq	8(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_NS_STATE
	cmpq	%rax, %rbx
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r14
	cmpq	%r14, 8(%r13)
	jbe	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r15), %rax
	movl	(%rax,%r14,4), %edi
	callq	_NS_STATE
	movq	%rax, %rbx
	movq	24(%r13), %rax
	movl	(%rax,%r14,4), %edi
	callq	_NS_STATE
	cmpq	%rax, %rbx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movl	(%rax,%rcx), %eax
	testl	%eax, (%r13)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	movq	_NS_OPER_NUM@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jne	LBB0_19
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	16(%r13), %edi
	callq	_get_state_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_NS_DBG
	movq	$0, 8(%r13)
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	jg	LBB0_2
	jmp	LBB0_21
LBB0_19:
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.20:
	movq	_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-48(%rbp), %r14                 ## 4-byte Folded Reload
	movq	%r14, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rax
	movq	%rax, 32(%r13)
	movl	8(%r13), %ecx
	cmpq	$1, -56(%rbp)                   ## 8-byte Folded Reload
	adcl	$-1, %ecx
	movl	%ecx, 40(%r13)
	movq	$0, 8(%r13)
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	%edi, 16(%r13)
	movl	4(%rax,%rcx,4), %eax
	movl	%eax, 44(%r13)
	callq	_get_state_name
	movl	%eax, %r15d
	movl	44(%r13), %edi
	callq	_get_state_name
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_NS_DBG
	jmp	LBB0_27
LBB0_23:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_NS_DBG
	movq	%r13, %rdi
	callq	_NS_STATUS_FAILED
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_switch_to_ready_state
	movl	$-2, %ebx
	jmp	LBB0_27
LBB0_24:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_26
## %bb.25:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_NS_DBG
	movl	$-2, %ebx
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_NS_DBG
	movl	16(%r13), %eax
	movq	24(%r13), %rcx
	movq	8(%r13), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%r13)
	movl	%eax, (%rcx,%rdx,4)
	movl	$-1, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_OPER_NUM,4,2                ## @NS_OPER_NUM
	.comm	_ops,8,3                        ## @ops
	.comm	_STATE_ADDR_MASK,4,2            ## @STATE_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"find_operation: operation found, index: %d, state: %s, nxstate %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"find_operation: no operation found, try again with state %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"find_operation: no operations found\n"

L_.str.3:                               ## @.str.3
	.asciz	"find_operation: BUG, operation must be known if address is input\n"

L_.str.4:                               ## @.str.4
	.asciz	"find_operation: there is still ambiguity\n"

	.no_dead_strip	_find_operation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_operation
_find_operation:                        ; @find_operation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _NS_OPER_NUM@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NS_OPER_NUM@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ops@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ops@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, #0
	mov	w24, #0
	mov	w27, #0
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	w8, #1
	mov	x24, x28
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w27, w27, w8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_17
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w9, [x19]
	ldr	x8, [x23]
	lsl	x10, x28, #4
	ldr	w10, [x8, x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	cbz	x21, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, x28, lsl #4
	ldr	x9, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	w9, [x9, x8, lsl #2]
Lloh4:
	adrp	x10, _STATE_ADDR_MASK@GOTPAGE
Lloh5:
	ldr	x10, [x10, _STATE_ADDR_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	cbnz	x8, LBB0_12
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x19, #16]
	bl	_NS_STATE
	mov	x22, x0
	ldr	x8, [x23]
	add	x8, x8, x28, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_NS_STATE
	cmp	x22, x0
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x20, #0
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	sxtw	x25, w24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ls	LBB0_3
LBB0_14:                                ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x23]
	add	x8, x8, x28, lsl #4
	ldr	x8, [x8, #8]
	lsl	x24, x20, #2
	ldr	w0, [x8, x24]
	bl	_NS_STATE
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x24]
	bl	_NS_STATE
	cmp	x22, x0
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	ldr	w8, [x19]
	ldr	x9, [x23]
	lsl	x10, x25, #4
	ldr	w9, [x9, x10]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	w8, #0
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w27, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19, #16]
	bl	_get_state_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_NS_DBG
	mov	x21, #0
	str	xzr, [x19, #8]
	b	LBB0_1
LBB0_20:
	cmp	w27, #1
	b.ne	LBB0_23
; %bb.21:
	ldr	x8, [x23]
	add	x8, x8, w24, sxtw #4
	ldr	x8, [x8, #8]
	str	x8, [x19, #32]
	cmp	x21, #0
	cset	w9, ne
	ldr	w10, [x19, #8]
	sub	w9, w10, w9
	str	w9, [x19, #40]
	str	xzr, [x19, #8]
	add	x8, x8, w9, sxtw #2
	ldr	w0, [x8]
	str	w0, [x19, #16]
	ldr	w8, [x8, #4]
	str	w8, [x19, #44]
	bl	_get_state_name
	mov	x20, x0
	ldr	w0, [x19, #44]
	bl	_get_state_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #8]
	mov	x26, x24
	str	x26, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NS_DBG
	mov	w0, #0
	b	LBB0_26
LBB0_22:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_NS_DBG
	mov	x0, x19
	bl	_NS_STATUS_FAILED
	mov	x1, x0
	mov	x0, x19
	bl	_switch_to_ready_state
	mov	w0, #-2
	b	LBB0_26
LBB0_23:
	cbz	x21, LBB0_25
; %bb.24:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_NS_DBG
	mov	w0, #-2
	b	LBB0_26
LBB0_25:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_NS_DBG
	ldr	w8, [x19, #16]
	ldr	x9, [x19, #24]
	ldr	x10, [x19, #8]
	add	x11, x10, #1
	str	x11, [x19, #8]
	str	w8, [x9, x10, lsl #2]
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_OPER_NUM,4,2                ; @NS_OPER_NUM
	.comm	_ops,8,3                        ; @ops
	.comm	_STATE_ADDR_MASK,4,2            ; @STATE_ADDR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"find_operation: operation found, index: %d, state: %s, nxstate %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"find_operation: no operation found, try again with state %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"find_operation: no operations found\n"

l_.str.3:                               ; @.str.3
	.asciz	"find_operation: BUG, operation must be known if address is input\n"

l_.str.4:                               ; @.str.4
	.asciz	"find_operation: there is still ambiguity\n"

	.no_dead_strip	_find_operation
.subsections_via_symbols
