	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onenand_release                ## -- Begin function onenand_release
	.p2align	4, 0x90
_onenand_release:                       ## @onenand_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_del_mtd_device
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rdi
	callq	_kfree
	movq	24(%rbx), %rdi
	callq	_kfree
LBB0_2:
	movl	(%rbx), %eax
	movq	_ONENAND_PAGEBUF_ALLOC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_kfree
	movl	(%rbx), %eax
LBB0_4:
	movq	_ONENAND_OOBBUF_ALLOC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_6:
	movq	(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ONENAND_PAGEBUF_ALLOC,4,2      ## @ONENAND_PAGEBUF_ALLOC
	.comm	_ONENAND_OOBBUF_ALLOC,4,2       ## @ONENAND_OOBBUF_ALLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onenand_release                ; -- Begin function onenand_release
	.p2align	2
_onenand_release:                       ; @onenand_release
	.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	x19, x0
	ldr	x20, [x0, #8]
	bl	_del_mtd_device
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x8]
	bl	_kfree
	ldr	x0, [x20, #24]
	bl	_kfree
LBB0_2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _ONENAND_PAGEBUF_ALLOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ONENAND_PAGEBUF_ALLOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x20, #16]
	bl	_kfree
	ldr	w8, [x20]
LBB0_4:
Lloh3:
	adrp	x9, _ONENAND_OOBBUF_ALLOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ONENAND_OOBBUF_ALLOC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x20, #8]
	bl	_kfree
LBB0_6:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ONENAND_PAGEBUF_ALLOC,4,2      ; @ONENAND_PAGEBUF_ALLOC
	.comm	_ONENAND_OOBBUF_ALLOC,4,2       ; @ONENAND_OOBBUF_ALLOC
.subsections_via_symbols
