	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_board_cpld_dboard_type     ## -- Begin function nlm_board_cpld_dboard_type
	.p2align	4, 0x90
_nlm_board_cpld_dboard_type:            ## @nlm_board_cpld_dboard_type
	.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
	decl	%esi
	xorl	%ebx, %ebx
	cmpl	$2, %esi
	ja	LBB0_2
## %bb.1:
	movslq	%esi, %rax
	leaq	l_switch.table.nlm_board_cpld_dboard_type(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_2:
	movq	_CPLD_CTRL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nlm_cpld_read
	movl	%ebx, %ecx
	sarl	%cl, %eax
	andl	$3, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPLD_CTRL_STATUS,4,2           ## @CPLD_CTRL_STATUS
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.nlm_board_cpld_dboard_type
l_switch.table.nlm_board_cpld_dboard_type:
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	6                               ## 0x6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nlm_board_cpld_dboard_type     ; -- Begin function nlm_board_cpld_dboard_type
	.p2align	2
_nlm_board_cpld_dboard_type:            ; @nlm_board_cpld_dboard_type
	.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
	sub	w8, w1, #1
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.nlm_board_cpld_dboard_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.nlm_board_cpld_dboard_type@PAGEOFF
	ldr	w19, [x9, w8, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
Lloh2:
	adrp	x8, _CPLD_CTRL_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPLD_CTRL_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_nlm_cpld_read
	asr	w8, w0, w19
	and	w0, w8, #0x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CPLD_CTRL_STATUS,4,2           ; @CPLD_CTRL_STATUS
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.nlm_board_cpld_dboard_type
l_switch.table.nlm_board_cpld_dboard_type:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	6                               ; 0x6

.subsections_via_symbols
