	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ch7006_lookup_mode             ## -- Begin function ch7006_lookup_mode
	.p2align	4, 0x90
_ch7006_lookup_mode:                    ## @ch7006_lookup_mode
	.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	%rsi, %rbx
	callq	_to_ch7006_priv
	movq	%rax, %rcx
	movq	_ch7006_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.1:
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rax), %rdx
	addq	$48, %rax
	testq	%rdx, %rdx
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rax), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rax), %rcx
	cmpq	16(%rbx), %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rax), %rcx
	cmpq	24(%rbx), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	32(%rbx), %rdx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ch7006_modes,8,3               ## @ch7006_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ch7006_lookup_mode             ; -- Begin function ch7006_lookup_mode
	.p2align	2
_ch7006_lookup_mode:                    ; @ch7006_lookup_mode
	.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, x1
	bl	_to_ch7006_priv
	mov	x8, x0
Lloh0:
	adrp	x9, _ch7006_modes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ch7006_modes@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_9
; %bb.1:
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w8, w10, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x0, #56]
	add	x0, x0, #48
	cbz	x9, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0]
	tst	w8, w10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0, #16]
	ldr	x11, [x19]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0, #24]
	ldr	x11, [x19, #8]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0, #32]
	ldr	x11, [x19, #16]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0, #40]
	ldr	x11, [x19, #24]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19, #32]
	cmp	x9, x10
	b.ne	LBB0_2
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ch7006_modes,8,3               ; @ch7006_modes
.subsections_via_symbols
