	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx23_check_transcription_stamp
_mx23_check_transcription_stamp:        ## @mx23_check_transcription_stamp
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_nand_get_data_buf
	movq	%rax, %r15
	movl	16(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nand_select_target
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$1, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	incl	%r12d
	testl	%eax, %eax
	jne	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %r13d
	imull	20(%r14), %r13d
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_fingerprint@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$12, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_nand_read_page_op
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r13
	movq	_fingerprint@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r13, %rbx
	movl	%eax, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %r15d
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_6
LBB0_5:
	xorl	%r15d, %r15d
	leaq	L_.str.3(%rip), %r12
LBB0_6:
	movq	%r14, %rdi
	callq	_nand_deselect_target
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scanning for an NCB fingerprint...\n"

L_.str.1:                               ## @.str.1
	.asciz	"Looking for a fingerprint in page 0x%x\n"

	.comm	_fingerprint,4,2                ## @fingerprint
L_.str.2:                               ## @.str.2
	.asciz	"\tFound a fingerprint\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tNo fingerprint found\n"

	.no_dead_strip	_mx23_check_transcription_stamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx23_check_transcription_stamp
_mx23_check_transcription_stamp:        ; @mx23_check_transcription_stamp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0, #8]
	bl	_nand_get_data_buf
	mov	x21, x0
	ldr	w25, [x20, #16]
	mov	x0, x20
	mov	w1, #0
	bl	_nand_select_target
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w26, #1
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x28, _fingerprint@GOTPAGE
Lloh5:
	ldr	x28, [x28, _fingerprint@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x27, l_.str.3@PAGE
Lloh9:
	add	x27, x27, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w26, w25
	add	w26, w26, #1
	cbnz	w8, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w26, #1
	ldr	w9, [x20, #20]
	mul	w24, w9, w8
	str	x24, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_dev_dbg
	ldr	w0, [x28]
	bl	_strlen
	mov	x4, x0
	mov	x0, x20
	mov	x1, x24
	mov	w2, #12
	mov	x3, x21
	bl	_nand_read_page_op
	cbnz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w24, [x28]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_memcmp
	cbnz	w0, LBB0_1
; %bb.4:
	mov	w21, #1
	b	LBB0_6
LBB0_5:
	mov	w21, #0
	mov	x22, x27
LBB0_6:
	mov	x0, x20
	bl	_nand_deselect_target
	mov	x0, x19
	mov	x1, x22
	bl	_dev_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scanning for an NCB fingerprint...\n"

l_.str.1:                               ; @.str.1
	.asciz	"Looking for a fingerprint in page 0x%x\n"

	.comm	_fingerprint,4,2                ; @fingerprint
l_.str.2:                               ; @.str.2
	.asciz	"\tFound a fingerprint\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tNo fingerprint found\n"

	.no_dead_strip	_mx23_check_transcription_stamp
.subsections_via_symbols
