	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efuse_shadow_update_chk        ## -- Begin function efuse_shadow_update_chk
	.p2align	4, 0x90
_efuse_shadow_update_chk:               ## @efuse_shadow_update_chk
	.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	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	(%rax), %rdx
	movq	_EFUSE_INIT_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdx,%rcx,8), %rcx
	movq	_EFUSE_MODIFY_MAP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rdx,%rsi,8), %rdx
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r10d
	movl	$1, %edi
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%edi, %r9d
	addq	$64, %rsi
	cmpq	$1024, %rsi                     ## imm = 0x400
	je	LBB0_14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi), %rdi
	cmpq	(%rdx,%rsi), %rdi
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rcx,%rsi), %r8
	xorl	%edi, %edi
	cmpq	8(%rdx,%rsi), %r8
	je	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r10d
	movl	$1, %edi
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rcx,%rsi), %rbx
	cmpq	16(%rdx,%rsi), %rbx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rcx,%rsi), %rbx
	cmpq	24(%rdx,%rsi), %rbx
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r10d
	movl	$1, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rcx,%rsi), %rbx
	cmpq	32(%rdx,%rsi), %rbx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%rcx,%rsi), %rbx
	cmpq	40(%rdx,%rsi), %rbx
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r10d
	movl	$1, %edi
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	48(%rcx,%rsi), %rbx
	cmpq	48(%rdx,%rsi), %rbx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	56(%rcx,%rsi), %rbx
	cmpq	56(%rdx,%rsi), %rbx
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	leal	(%r9,%r10,2), %r8d
	movl	8(%rax), %eax
	movq	_EFUSE_MAX_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	movq	(%rdx), %rdx
	movq	_EFUSE_OOB_PROTECT_BYTES_LEN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	subl	(%rdx,%rsi,4), %ecx
	leal	(%rax,%r8), %edx
	xorl	%r15d, %r15d
	cmpl	%ecx, %edx
	setl	%r15b
	movq	_COMP_EFUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%r10
	callq	_RT_TRACE
	addq	$16, %rsp
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFUSE_INIT_MAP,8,3             ## @EFUSE_INIT_MAP
	.comm	_EFUSE_MODIFY_MAP,8,3           ## @EFUSE_MODIFY_MAP
	.comm	_EFUSE_MAX_SIZE,4,2             ## @EFUSE_MAX_SIZE
	.comm	_EFUSE_OOB_PROTECT_BYTES_LEN,8,3 ## @EFUSE_OOB_PROTECT_BYTES_LEN
	.comm	_COMP_EFUSE,4,2                 ## @COMP_EFUSE
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"efuse_shadow_update_chk(): totalbytes(%#x), hdr_num(%#x), words_need(%#x), efuse_used(%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efuse_shadow_update_chk        ; -- Begin function efuse_shadow_update_chk
	.p2align	2
_efuse_shadow_update_chk:               ; @efuse_shadow_update_chk
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x8, #0
	mov	w5, #0
	mov	w6, #0
Lloh0:
	adrp	x9, _EFUSE_INIT_MAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFUSE_INIT_MAP@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x10, x9, lsl #3]
Lloh3:
	adrp	x11, _EFUSE_MODIFY_MAP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _EFUSE_MODIFY_MAP@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x10, [x10, x11, lsl #3]
	add	x9, x9, #56
	add	x10, x10, #56
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w6, w6, #1
	mov	w11, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w5, w5, w11
	add	x8, x8, #64
	cmp	x8, #1024
	b.eq	LBB0_15
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x9, x8
	ldur	x13, [x11, #-56]
	add	x12, x10, x8
	ldur	x14, [x12, #-56]
	cmp	x13, x14
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x11, [x11, #-48]
	ldur	x12, [x12, #-48]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w11, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w6, w6, #1
	mov	w11, #1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x9, x8
	ldur	x14, [x12, #-40]
	add	x13, x10, x8
	ldur	x15, [x13, #-40]
	cmp	x14, x15
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x12, [x12, #-32]
	ldur	x13, [x13, #-32]
	cmp	x12, x13
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w6, w6, #1
	mov	w11, #1
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x9, x8
	ldur	x14, [x12, #-24]
	add	x13, x10, x8
	ldur	x15, [x13, #-24]
	cmp	x14, x15
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	x12, [x12, #-16]
	ldur	x13, [x13, #-16]
	cmp	x12, x13
	b.eq	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w6, w6, #1
	mov	w11, #1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x9, x8
	ldur	x12, [x12, #-8]
	add	x13, x10, x8
	ldur	x13, [x13, #-8]
	cmp	x12, x13
	b.ne	LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x9, x8]
	ldr	x13, [x10, x8]
	cmp	x12, x13
	b.ne	LBB0_1
	b	LBB0_2
LBB0_15:
	add	w4, w5, w6, lsl #1
	ldr	w7, [x0, #8]
Lloh6:
	adrp	x8, _EFUSE_MAX_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFUSE_MAX_SIZE@GOTPAGEOFF]
	add	w9, w7, w4
Lloh8:
	ldr	w8, [x8]
	ldr	x10, [x19]
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _EFUSE_OOB_PROTECT_BYTES_LEN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _EFUSE_OOB_PROTECT_BYTES_LEN@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	sub	w8, w8, w10
	cmp	w9, w8
	cset	w20, lt
Lloh12:
	adrp	x8, _COMP_EFUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMP_EFUSE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFUSE_INIT_MAP,8,3             ; @EFUSE_INIT_MAP
	.comm	_EFUSE_MODIFY_MAP,8,3           ; @EFUSE_MODIFY_MAP
	.comm	_EFUSE_MAX_SIZE,4,2             ; @EFUSE_MAX_SIZE
	.comm	_EFUSE_OOB_PROTECT_BYTES_LEN,8,3 ; @EFUSE_OOB_PROTECT_BYTES_LEN
	.comm	_COMP_EFUSE,4,2                 ; @COMP_EFUSE
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"efuse_shadow_update_chk(): totalbytes(%#x), hdr_num(%#x), words_need(%#x), efuse_used(%d)\n"

.subsections_via_symbols
