	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdsplit_parse_squashfs
_mtdsplit_parse_squashfs:               ## @mtdsplit_parse_squashfs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_mtd_get_squashfs_len
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_mtdpart_get_master
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_mtdpart_get_offset
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movq	_ROOTFS_SPLIT_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movl	%esi, 12(%r15)
	movq	-48(%rbp), %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mtd_roundup_to_eb
	subq	%r13, %rax
	movq	%rax, (%r15)
	movq	(%rbx), %rdi
	subq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_mtd_rounddown_to_eb
	movl	%eax, 8(%r15)
	movq	%r15, (%r14)
	movl	$1, %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_alert
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to allocate memory for \"%s\" partition\n"

	.comm	_ROOTFS_SPLIT_NAME,4,2          ## @ROOTFS_SPLIT_NAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mtdsplit_parse_squashfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdsplit_parse_squashfs
_mtdsplit_parse_squashfs:               ; @mtdsplit_parse_squashfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #8
	mov	w1, #0
	bl	_mtd_get_squashfs_len
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_mtdpart_get_master
	mov	x23, x0
	mov	x0, x20
	bl	_mtdpart_get_offset
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
Lloh3:
	adrp	x8, _ROOTFS_SPLIT_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROOTFS_SPLIT_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	str	w1, [x0, #12]
	ldr	x8, [sp, #8]
	add	x0, x8, x21
	mov	x1, x23
	bl	_mtd_roundup_to_eb
	ldr	x8, [x20]
	sub	x9, x0, x21
	sub	x0, x8, x9
	str	x9, [x22]
	mov	x1, x20
	bl	_mtd_rounddown_to_eb
	str	w0, [x22, #8]
	str	x22, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_alert
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to allocate memory for \"%s\" partition\n"

	.comm	_ROOTFS_SPLIT_NAME,4,2          ; @ROOTFS_SPLIT_NAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mtdsplit_parse_squashfs
.subsections_via_symbols
