	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxc_nand_select_chip
_mxc_nand_select_chip:                  ## @mxc_nand_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$-1, %esi
	jne	LBB0_6
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	movl	4(%rbx), %edi
	callq	_clk_disable
	movl	$0, (%rbx)
	jmp	LBB0_6
LBB0_4:
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	callq	_clk_enable
	movl	$1, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_DEBUG_LEVEL0,4,2           ## @MTD_DEBUG_LEVEL0
	.comm	_NFC_CE,4,2                     ## @NFC_CE
	.comm	_NFC_CONFIG1,8,3                ## @NFC_CONFIG1
	.no_dead_strip	_mxc_nand_select_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxc_nand_select_chip
_mxc_nand_select_chip:                  ; @mxc_nand_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
	ldr	x8, [x0]
	ldr	x19, [x8]
	cbz	w1, LBB0_4
; %bb.1:
	cmn	w1, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w0, [x19, #4]
	bl	_clk_disable
	str	wzr, [x19]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_clk_enable
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_DEBUG_LEVEL0,4,2           ; @MTD_DEBUG_LEVEL0
	.comm	_NFC_CE,4,2                     ; @NFC_CE
	.comm	_NFC_CONFIG1,8,3                ; @NFC_CONFIG1
	.no_dead_strip	_mxc_nand_select_chip
.subsections_via_symbols
