	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efuse_shadow_update            ## -- Begin function efuse_shadow_update
	.p2align	4, 0x90
_efuse_shadow_update:                   ## @efuse_shadow_update
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %rbx
	movq	_COMP_EFUSE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r12, %rdi
	callq	_efuse_shadow_update_chk
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_efuse_power_switch
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	addq	$32, %rsi
	cmpq	$16, %r12
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	(,%r12,8), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	(%rbx), %rcx
	movq	_EFUSE_INIT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_EFUSE_MODIFY_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	movl	$15, %r14d
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	addq	$4, %r15
	cmpq	$8, %r13
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rsi
	movl	(%rsi,%r15), %esi
	cmpl	(%rax,%r15), %esi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %edi
	shrl	%edi
	callq	_BIT
	notl	%eax
	andl	%eax, %r14d
	movq	(%rbx), %rcx
	movq	_EFUSE_MODIFY_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	movl	(%rax,%r15), %esi
	movq	_EFUSE_INIT_MAP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rdi
	movl	%esi, (%rdi,%r15)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$15, %r14d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	movq	%r15, %r13
	leaq	-80(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rcx
	leaq	-80(%rbp), %r13
	movq	%r13, %r8
	movl	$8, %r9d
	callq	_RT_PRINT_DATA
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	callq	_efuse_pg_packet_write
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_11:
	movl	$1, %r13d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_efuse_power_switch
	movq	(%rbx), %rax
	movq	_EFUSE_INIT_MAP@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r14, %rdi
	callq	_efuse_read_all_map
	movq	(%rbx), %rax
	movq	_EFUSE_MODIFY_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_EFUSE_HWSET_MAX_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	callq	_memcpy
	movq	_COMP_EFUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_12
LBB0_1:
	movq	(%rbx), %rax
	movq	_EFUSE_INIT_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r12, %rdi
	callq	_efuse_read_all_map
	movq	(%rbx), %rax
	movq	_EFUSE_MODIFY_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	_EFUSE_INIT_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_EFUSE_HWSET_MAX_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	callq	_memcpy
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	xorl	%r13d, %r13d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_EFUSE,4,2                 ## @COMP_EFUSE
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EFUSE_INIT_MAP,8,3             ## @EFUSE_INIT_MAP
	.comm	_EFUSE_MODIFY_MAP,8,3           ## @EFUSE_MODIFY_MAP
	.comm	_EFUSE_HWSET_MAX_SIZE,8,3       ## @EFUSE_HWSET_MAX_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"efuse out of capacity!!\n"

	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
L_.str.2:                               ## @.str.2
	.asciz	"U-efuse\n"

	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
	.comm	_DBG_WARNING,4,2                ## @DBG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"PG section(%#x) fail!!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efuse_shadow_update            ; -- Begin function efuse_shadow_update
	.p2align	2
_efuse_shadow_update:                   ; @efuse_shadow_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_rtl_priv
	mov	x22, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x21, x0
Lloh3:
	adrp	x23, _COMP_EFUSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _COMP_EFUSE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x24, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	bl	_RT_TRACE
	mov	x0, x20
	bl	_efuse_shadow_update_chk
	cbz	w0, LBB0_11
; %bb.1:
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_efuse_power_switch
	mov	x25, #0
	mov	x22, #0
Lloh9:
	adrp	x27, _EFUSE_INIT_MAP@GOTPAGE
Lloh10:
	ldr	x27, [x27, _EFUSE_INIT_MAP@GOTPAGEOFF]
Lloh11:
	adrp	x28, _EFUSE_MODIFY_MAP@GOTPAGE
Lloh12:
	ldr	x28, [x28, _EFUSE_MODIFY_MAP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x25, x25, #32
	cmp	x22, #16
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x23, #0
	lsl	x26, x22, #3
	ldr	x8, [x21]
	ldr	x10, [x27]
	ldr	x9, [x28]
	ldr	x9, [x8, x9, lsl #3]
	mov	w24, #15
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x23, x23, #1
	cmp	x23, #8
	b.eq	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x8, x10, lsl #3]
	add	x11, x11, x25
	lsl	x19, x23, #2
	ldr	w11, [x11, x19]
	add	x12, x9, x25
	ldr	w12, [x12, x19]
	cmp	w11, w12
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ubfx	x0, x23, #1, #31
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BIT
	bic	w24, w24, w0
	ldr	x8, [x21]
	ldr	x9, [x28]
	ldr	x9, [x8, x9, lsl #3]
	add	x10, x9, x25
	ldr	w11, [x10, x19]
	ldr	x10, [x27]
	ldr	x12, [x8, x10, lsl #3]
	add	x12, x12, x25
	str	w11, [x12, x19]
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #15
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x9, x26, lsl #2
	add	x0, sp, #24
	mov	w2, #8
	bl	_memcpy
Lloh13:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x4, sp, #24
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x19
Lloh19:
	adrp	x3, l_.str.2@PAGE
Lloh20:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w5, #8
	bl	_RT_PRINT_DATA
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_efuse_pg_packet_write
	cbnz	w0, LBB0_2
; %bb.9:
Lloh21:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _DBG_WARNING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DBG_WARNING@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	str	x22, [sp]
Lloh27:
	adrp	x3, l_.str.3@PAGE
Lloh28:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_10:
	mov	w22, #1
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_efuse_power_switch
	ldr	x8, [x21]
	ldr	x9, [x27]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_efuse_read_all_map
	ldr	x8, [x21]
	ldr	x9, [x28]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x9, [x27]
	ldr	x1, [x8, x9, lsl #3]
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _EFUSE_HWSET_MAX_SIZE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EFUSE_HWSET_MAX_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	bl	_memcpy
Lloh32:
	adrp	x8, _COMP_EFUSE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _COMP_EFUSE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x3, l_.str@PAGE
Lloh39:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	b	LBB0_12
LBB0_11:
	ldr	x8, [x21]
Lloh40:
	adrp	x19, _EFUSE_INIT_MAP@GOTPAGE
Lloh41:
	ldr	x19, [x19, _EFUSE_INIT_MAP@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_efuse_read_all_map
	ldr	x8, [x21]
Lloh42:
	adrp	x9, _EFUSE_MODIFY_MAP@GOTPAGE
Lloh43:
	ldr	x9, [x9, _EFUSE_MODIFY_MAP@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x9, [x19]
	ldr	x1, [x8, x9, lsl #3]
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh45:
	adrp	x9, _EFUSE_HWSET_MAX_SIZE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _EFUSE_HWSET_MAX_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	bl	_memcpy
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh48:
	adrp	x3, l_.str.1@PAGE
Lloh49:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_RT_TRACE
	mov	w22, #0
LBB0_12:
	ldr	x8, [sp, #56]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_EFUSE,4,2                 ; @COMP_EFUSE
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EFUSE_INIT_MAP,8,3             ; @EFUSE_INIT_MAP
	.comm	_EFUSE_MODIFY_MAP,8,3           ; @EFUSE_MODIFY_MAP
	.comm	_EFUSE_HWSET_MAX_SIZE,8,3       ; @EFUSE_HWSET_MAX_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"efuse out of capacity!!\n"

	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
l_.str.2:                               ; @.str.2
	.asciz	"U-efuse\n"

	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
	.comm	_DBG_WARNING,4,2                ; @DBG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"PG section(%#x) fail!!\n"

.subsections_via_symbols
