	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sharpsl_nand_read_partinfo
_sharpsl_nand_read_partinfo:            ## @sharpsl_nand_read_partinfo
	.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	%rcx, %r15
	movq	%rdi, %rbx
	callq	_sharpsl_nand_read_laddr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	8(%r15), %edi
	callq	_be32_to_cpu
	movq	_BOOT_MAGIC@GOTPCREL(%rip), %rcx
	leaq	L_.str(%rip), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movl	20(%r15), %edi
	callq	_be32_to_cpu
	movq	_FSRO_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movl	32(%r15), %edi
	callq	_be32_to_cpu
	movq	_FSRW_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, 28(%r15)
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_le32_to_cpu
	leaq	L_.str.1(%rip), %r14
	cmpq	%rax, %rbx
	jle	LBB0_9
## %bb.5:
	movl	12(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %rbx
	jl	LBB0_9
## %bb.6:
	movl	16(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	12(%r15), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %rbx
	jle	LBB0_9
## %bb.7:
	movl	24(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	16(%r15), %edi
	callq	_le32_to_cpu
	cmpq	%rax, %rbx
	jl	LBB0_9
## %bb.8:
	movl	28(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	24(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	jg	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BOOT_MAGIC,8,3                 ## @BOOT_MAGIC
	.comm	_FSRO_MAGIC,8,3                 ## @FSRO_MAGIC
	.comm	_FSRW_MAGIC,8,3                 ## @FSRW_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sharpslpart: magic values mismatch\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"sharpslpart: partition sizes mismatch\n"

	.no_dead_strip	_sharpsl_nand_read_partinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sharpsl_nand_read_partinfo
_sharpsl_nand_read_partinfo:            ; @sharpsl_nand_read_partinfo
	.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, x3
	mov	x20, x0
	bl	_sharpsl_nand_read_laddr
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_be32_to_cpu
Lloh0:
	adrp	x8, _BOOT_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BOOT_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.2:
	ldr	w0, [x19, #20]
	bl	_be32_to_cpu
Lloh3:
	adrp	x8, _FSRO_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSRO_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x19, #32]
	bl	_be32_to_cpu
Lloh6:
	adrp	x8, _FSRW_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FSRW_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [x20]
	bl	_cpu_to_le32
	str	w0, [x19, #28]
	ldr	w0, [x19, #4]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x19]
	bl	_le32_to_cpu
	cmp	x20, x0
	b.le	LBB0_13
; %bb.5:
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_le32_to_cpu
	cmp	x20, x0
	b.lt	LBB0_13
; %bb.6:
	ldr	w0, [x19, #16]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
	cmp	x20, x0
	b.le	LBB0_13
; %bb.7:
	ldr	w0, [x19, #24]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_le32_to_cpu
	cmp	x20, x0
	b.lt	LBB0_13
; %bb.8:
	ldr	w0, [x19, #28]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #24]
	bl	_le32_to_cpu
	cmp	x20, x0
	b.le	LBB0_13
; %bb.9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_pr_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BOOT_MAGIC,8,3                 ; @BOOT_MAGIC
	.comm	_FSRO_MAGIC,8,3                 ; @FSRO_MAGIC
	.comm	_FSRW_MAGIC,8,3                 ; @FSRW_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sharpslpart: magic values mismatch\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"sharpslpart: partition sizes mismatch\n"

	.no_dead_strip	_sharpsl_nand_read_partinfo
.subsections_via_symbols
