	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_ifc_nand_remove
_fsl_ifc_nand_remove:                   ## @fsl_ifc_nand_remove
	.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
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nand_release
	movq	%rbx, %rdi
	callq	_fsl_ifc_chip_remove
	movq	_fsl_ifc_nand_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ifc_nand_ctrl@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	decl	(%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_fsl_ifc_ctrl_dev@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rcx)
	movq	(%rax), %rdi
	callq	_kfree
LBB0_2:
	movq	_fsl_ifc_nand_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fsl_ifc_nand_mutex,4,2         ## @fsl_ifc_nand_mutex
	.comm	_ifc_nand_ctrl,8,3              ## @ifc_nand_ctrl
	.comm	_fsl_ifc_ctrl_dev,8,3           ## @fsl_ifc_ctrl_dev
	.no_dead_strip	_fsl_ifc_nand_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_ifc_nand_remove
_fsl_ifc_nand_remove:                   ; @fsl_ifc_nand_remove
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_nand_release
	mov	x0, x19
	bl	_fsl_ifc_chip_remove
Lloh0:
	adrp	x0, _fsl_ifc_nand_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _fsl_ifc_nand_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ifc_nand_ctrl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ifc_nand_ctrl@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w10, [x9]
	subs	w10, w10, #1
	str	w10, [x9]
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _fsl_ifc_ctrl_dev@GOTPAGE
Lloh5:
	ldr	x9, [x9, _fsl_ifc_ctrl_dev@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	str	xzr, [x9]
	ldr	x0, [x8]
	bl	_kfree
LBB0_2:
Lloh7:
	adrp	x0, _fsl_ifc_nand_mutex@GOTPAGE
Lloh8:
	ldr	x0, [x0, _fsl_ifc_nand_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fsl_ifc_nand_mutex,4,2         ; @fsl_ifc_nand_mutex
	.comm	_ifc_nand_ctrl,8,3              ; @ifc_nand_ctrl
	.comm	_fsl_ifc_ctrl_dev,8,3           ; @fsl_ifc_ctrl_dev
	.no_dead_strip	_fsl_ifc_nand_remove
.subsections_via_symbols
