	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flctl_select_chip
_flctl_select_chip:                     ## @flctl_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_mtd_to_flctl
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FLCMNCR
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_CE0_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_4
LBB0_3:
	movq	_CE0_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_4:
	movq	%r14, %rdi
	callq	_FLCMNCR
	movl	%r15d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CE0_ENABLE,4,2                 ## @CE0_ENABLE
	.no_dead_strip	_flctl_select_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flctl_select_chip
_flctl_select_chip:                     ; @flctl_select_chip
	.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	x20, x1
	bl	_mtd_to_flctl
	mov	x19, x0
	bl	_FLCMNCR
	bl	_readl
	cbz	w20, LBB0_3
; %bb.1:
	cmn	w20, #1
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _CE0_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CE0_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w20, w0, w8
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _CE0_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CE0_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w0
LBB0_4:
	mov	x0, x19
	bl	_FLCMNCR
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CE0_ENABLE,4,2                 ; @CE0_ENABLE
	.no_dead_strip	_flctl_select_chip
.subsections_via_symbols
