	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_insn_head               ## -- Begin function lookup_insn_head
	.p2align	4, 0x90
_lookup_insn_head:                      ## @lookup_insn_head
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_tms320_f_get_cpu
	movq	_TMS320_F_CPU_C55X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	_c55x_e_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.3:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rax), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	andl	(%rbx), %ecx
	cmpl	%esi, %ecx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %ecx
	addq	$8, %rax
	testl	%ecx, %ecx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	movl	24(%rbx), %edi
	xorl	%edx, %edx
	callq	_ht_up_find
	movq	%rax, 8(%rbx)
LBB0_8:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	xorl	%edx, %edx
	callq	_ht_up_find
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	24(%rbx), %edi
	movl	$254, %esi
	andl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_ht_up_find
	movq	%rax, 8(%rbx)
LBB0_11:
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMS320_F_CPU_C55X,8,3          ## @TMS320_F_CPU_C55X
	.comm	_c55x_e_list,8,3                ## @c55x_e_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_insn_head               ; -- Begin function lookup_insn_head
	.p2align	2
_lookup_insn_head:                      ; @lookup_insn_head
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_tms320_f_get_cpu
Lloh0:
	adrp	x8, _TMS320_F_CPU_C55X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMS320_F_CPU_C55X@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _c55x_e_list@GOTPAGE
Lloh4:
	ldr	x8, [x8, _c55x_e_list@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x9
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_6
; %bb.1:
	ldr	w9, [x8]
	cbz	w9, LBB0_6
; %bb.2:
	add	x8, x8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x8, #-4]
	cbz	w1, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x19]
	and	w9, w10, w9
	cmp	w9, w1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8], #8
	cbnz	w9, LBB0_3
LBB0_6:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_10
LBB0_7:
	ldr	w0, [x19, #24]
	ldr	w1, [x19]
	mov	x2, #0
	bl	_ht_up_find
	str	x0, [x19, #8]
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x19, #24]
	ldr	w8, [x19]
	and	w1, w8, #0xfe
	mov	x2, #0
	bl	_ht_up_find
	str	x0, [x19, #8]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19, #24]
	mov	x2, #0
	bl	_ht_up_find
	str	x0, [x19, #8]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
LBB0_10:
	str	x0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TMS320_F_CPU_C55X,8,3          ; @TMS320_F_CPU_C55X
	.comm	_c55x_e_list,8,3                ; @c55x_e_list
.subsections_via_symbols
