	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ndfc_select_chip
_ndfc_select_chip:                      ## @ndfc_select_chip
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_ndfc_ctrl@GOTPCREL(%rip), %r15
	movq	_NDFC_CCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_in_be32
	movl	%eax, %ebx
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	movq	_NDFC_CCR_BS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r14d, %edi
	addq	8(%r15), %rdi
	callq	_NDFC_CCR_BS
	movl	%eax, %esi
	orl	%ebx, %esi
	jmp	LBB0_3
LBB0_2:
	movq	_NDFC_CCR_RESET_CE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
LBB0_3:
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_out_be32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ndfc_ctrl,16,3                 ## @ndfc_ctrl
	.comm	_NDFC_CCR,8,3                   ## @NDFC_CCR
	.comm	_NDFC_CCR_BS_MASK,4,2           ## @NDFC_CCR_BS_MASK
	.comm	_NDFC_CCR_RESET_CE,4,2          ## @NDFC_CCR_RESET_CE
	.no_dead_strip	_ndfc_select_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ndfc_select_chip
_ndfc_select_chip:                      ; @ndfc_select_chip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x20, _ndfc_ctrl@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ndfc_ctrl@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _NDFC_CCR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NDFC_CCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_in_be32
	tbnz	w19, #31, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _NDFC_CCR_BS_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NDFC_CCR_BS_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w22, w0, w8
	ldr	x8, [x20, #8]
	add	x0, x8, w19, uxtw
	bl	_NDFC_CCR_BS
	orr	w1, w0, w22
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _NDFC_CCR_RESET_CE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NDFC_CCR_RESET_CE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w1, w8, w0
LBB0_3:
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_out_be32
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ndfc_ctrl,16,3                 ; @ndfc_ctrl
	.comm	_NDFC_CCR,8,3                   ; @NDFC_CCR
	.comm	_NDFC_CCR_BS_MASK,4,2           ; @NDFC_CCR_BS_MASK
	.comm	_NDFC_CCR_RESET_CE,4,2          ; @NDFC_CCR_RESET_CE
	.no_dead_strip	_ndfc_select_chip
.subsections_via_symbols
