	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sa1100_destroy
_sa1100_destroy:                        ## @sa1100_destroy
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r15)
	jne	LBB0_3
## %bb.2:
	callq	_del_mtd_device
LBB0_3:
	movq	32(%r15), %rdi
	callq	_kfree
	movl	16(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:
	incq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edi
	shlq	$3, %rdi
	addq	24(%r15), %rdi
	callq	_sa1100_destroy_subdev
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sa1100_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sa1100_destroy
_sa1100_destroy:                        ; @sa1100_destroy
	.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
	mov	x20, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	bl	_del_mtd_device
LBB0_3:
	ldr	x0, [x20, #32]
	bl	_kfree
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	add	x21, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x9, [x20, #24]
	add	x0, x9, w8, uxtw #3
	bl	_sa1100_destroy_subdev
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_kfree
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	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
	br	x0
LBB0_8:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sa1100_destroy
.subsections_via_symbols
