	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_full_id_nand
_find_full_id_nand:                     ## @find_full_id_nand
	.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, %rbx
	movq	%rdi, %r14
	callq	_nand_to_mtd
	movq	%rax, %r12
	movq	24(%r14), %r13
	leaq	8(%r14), %rdi
	callq	_nanddev_get_memorg
	movq	%rax, %r15
	movl	36(%rbx), %edx
	movl	40(%rbx), %edi
	movq	%r13, %rsi
	callq	_strncmp
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movl	%esi, (%r15)
	movl	%esi, (%r12)
	movl	4(%rbx), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%r15)
	movl	%ecx, 4(%r12)
	movl	32(%rbx), %eax
	movl	%eax, 16(%r15)
	movl	%eax, 8(%r12)
	movl	8(%r13), %edi
	callq	_nand_get_bits_per_cell
	movl	%eax, 12(%r15)
	movl	24(%rbx), %edi
	shll	$20, %edi
	movl	4(%r15), %esi
	imull	(%r15), %esi
	callq	_DIV_ROUND_DOWN_ULL
	movl	%eax, 8(%r15)
	movl	16(%rbx), %eax
	orl	%eax, 16(%r14)
	movq	%rbx, %rdi
	callq	_NAND_ECC_STRENGTH
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	callq	_NAND_ECC_STEP
	movl	%eax, 8(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	8(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kstrdup
	movl	%eax, %ecx
	movl	%eax, (%r14)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
LBB0_2:
	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
	.no_dead_strip	_find_full_id_nand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_full_id_nand
_find_full_id_nand:                     ; @find_full_id_nand
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_nand_to_mtd
	mov	x22, x0
	ldr	x23, [x19, #24]
	add	x0, x19, #8
	bl	_nanddev_get_memorg
	mov	x21, x0
	ldp	w2, w0, [x20, #36]
	mov	x1, x23
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldp	w8, w9, [x20]
	sdiv	w10, w9, w8
	stp	w8, w10, [x21]
	stp	w8, w9, [x22]
	ldr	w8, [x20, #32]
	str	w8, [x21, #16]
	str	w8, [x22, #8]
	ldr	w0, [x23, #8]
	bl	_nand_get_bits_per_cell
	str	w0, [x21, #12]
	ldr	w8, [x20, #24]
	lsl	w0, w8, #20
	ldp	w8, w9, [x21]
	mul	w1, w9, w8
	bl	_DIV_ROUND_DOWN_ULL
	str	w0, [x21, #8]
	ldr	w8, [x20, #16]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_NAND_ECC_STRENGTH
	str	w0, [x19, #12]
	mov	x0, x20
	bl	_NAND_ECC_STEP
	ldp	w8, w9, [x20, #8]
	stp	w9, w0, [x19, #4]
Lloh0:
	adrp	x9, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_kstrdup
	str	w0, [x19]
	cmp	w0, #0
	cset	w0, ne
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_find_full_id_nand
.subsections_via_symbols
