	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_tree_mtd                   ## -- Begin function get_tree_mtd
	.p2align	4, 0x90
_get_tree_mtd:                          ## @get_tree_mtd
	.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, %rbx
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%rbx), %rsi
	cmpb	$109, (%rsi)
	jne	LBB0_7
## %bb.2:
	cmpb	$116, 1(%rsi)
	jne	LBB0_7
## %bb.3:
	cmpb	$100, 2(%rsi)
	jne	LBB0_7
## %bb.4:
	movb	3(%rsi), %al
	cmpb	$58, %al
	jne	LBB0_10
## %bb.5:
	addq	$4, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_get_mtd_device_nm
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	(%rbx), %rdx
	addq	$4, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_errorf
	jmp	LBB0_7
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_invalf                         ## TAILCALL
LBB0_10:
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:
	movq	(%rbx), %rdi
	addq	$3, %rdi
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_simple_strtoul
	movl	%eax, %r15d
	movq	-32(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_12
LBB0_7:
	movq	_SB_SILENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	(%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_errorf
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtd_get_sb                     ## TAILCALL
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_mtd_get_sb_by_nr
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No source specified"

L_.str.1:                               ## @.str.1
	.asciz	"MTDSB: dev_name \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"MTDSB: mtd:%%s, name \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"MTD: MTD device with name \"%s\" not found"

L_.str.4:                               ## @.str.4
	.asciz	"MTDSB: mtd%%d, mtdnr %d\n"

	.comm	_SB_SILENT,4,2                  ## @SB_SILENT
L_.str.5:                               ## @.str.5
	.asciz	"MTD: Attempt to mount non-MTD device \"%s\""

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTD_BLOCK_MAJOR,4,2            ## @MTD_BLOCK_MAJOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_tree_mtd                   ; -- Begin function get_tree_mtd
	.p2align	2
_get_tree_mtd:                          ; @get_tree_mtd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x1
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
	ldrb	w9, [x8]
	cmp	w9, #109
	b.ne	LBB0_10
; %bb.2:
	ldrb	w9, [x8, #1]
	cmp	w9, #116
	b.ne	LBB0_10
; %bb.3:
	ldrb	w9, [x8, #2]
	cmp	w9, #100
	b.ne	LBB0_10
; %bb.4:
	ldrb	w9, [x8, #3]
	cmp	w9, #58
	b.ne	LBB0_8
; %bb.5:
	add	x8, x8, #4
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_get_mtd_device_nm
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.6:
	ldr	x8, [x19]
	add	x2, x8, #4
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_errorf
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_invalf
LBB0_8:
	sxtb	w0, w9
	bl	_isdigit
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	add	x0, x8, #3
	add	x1, sp, #8
	mov	w2, #0
	bl	_simple_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_15
LBB0_10:
	ldr	w8, [x19, #8]
Lloh8:
	adrp	x9, _SB_SILENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SB_SILENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x2, [x19]
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_errorf
LBB0_12:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_mtd_get_sb
LBB0_15:
	mov	x21, x0
	str	x21, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_mtd_get_sb_by_nr
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No source specified"

l_.str.1:                               ; @.str.1
	.asciz	"MTDSB: dev_name \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"MTDSB: mtd:%%s, name \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"MTD: MTD device with name \"%s\" not found"

l_.str.4:                               ; @.str.4
	.asciz	"MTDSB: mtd%%d, mtdnr %d\n"

	.comm	_SB_SILENT,4,2                  ; @SB_SILENT
l_.str.5:                               ; @.str.5
	.asciz	"MTD: Attempt to mount non-MTD device \"%s\""

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTD_BLOCK_MAJOR,4,2            ; @MTD_BLOCK_MAJOR
.subsections_via_symbols
