	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_free_sectors
_check_free_sectors:                    ## @check_free_sectors
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	(%rdi), %r14
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%r14), %edi
	addl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.3:
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	addl	%edx, %r13d
	addl	%edx, %r15d
	cmpl	%ebx, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	leaq	-64(%rbp), %rcx
	movq	%r12, %r8
	callq	_mtd_read
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	_SECTORSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	$255, %esi
	callq	_memcmpb
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rax
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edx
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %r8
	movq	%r12, %rdi
	movl	%r13d, %esi
	leaq	-64(%rbp), %rcx
	callq	_inftl_read_oob
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SECTORSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	movl	(%r12), %edx
	movl	$255, %esi
	callq	_memcmpb
	testq	%rax, %rax
	movq	%r14, %r12
	movq	_SECTORSIZE@GOTPCREL(%rip), %r14
	je	LBB0_11
	jmp	LBB0_13
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_5:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_9:
	movq	%r14, %r12
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTORSIZE,4,2                 ## @SECTORSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_check_free_sectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_free_sectors
_check_free_sectors:                    ; @check_free_sectors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x0]
Lloh0:
	adrp	x24, _SECTORSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SECTORSIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x23]
	add	w0, w9, w8
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w25, #0
	ldr	w2, [x24]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	add	w22, w2, w22
	add	w25, w2, w25
	cmp	w25, w21
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x4, x19
	bl	_mtd_read
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #255
	bl	_memcmpb
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w20, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x23]
	ldrsw	x8, [x24]
	add	x4, x19, x8, lsl #2
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x22
	bl	_inftl_read_oob
	tbnz	x0, #63, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x8, [x24]
	add	x0, x19, x8, lsl #2
	ldr	w2, [x23]
	mov	w1, #255
	bl	_memcmpb
	cbz	x0, LBB0_3
LBB0_9:
	mov	w20, #-1
	b	LBB0_12
LBB0_10:
	mov	w20, #-1
	b	LBB0_13
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTORSIZE,4,2                 ; @SECTORSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_check_free_sectors
.subsections_via_symbols
