	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _nvram_rehash
__nvram_rehash:                         ## @_nvram_rehash
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_nvram_header
	movq	%rax, %r14
	movabsq	$6365935209750755376, %rax      ## imm = 0x5858585858587830
	movq	%rax, -64(%rbp)
	movl	$5789784, -57(%rbp)             ## imm = 0x585858
	movq	%r15, %rdi
	callq	__nvram_free
	cmpb	$0, 12(%r14)
	je	LBB0_4
## %bb.1:
	leaq	12(%r14), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movb	$0, (%rax)
	leaq	1(%rax), %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_nvram_set
	movb	$61, (%rbx)
	movq	%r13, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %r12
	addq	$2, %r12
	cmpb	$0, 2(%rbx,%rax)
	jne	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvram_get
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movswl	2(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_nvram_set
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvram_get
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movzwl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_nvram_set
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvram_get
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movzwl	6(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_nvram_set
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_nvram_get
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	8(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_nvram_set
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const._nvram_rehash.buf:            ## @__const._nvram_rehash.buf
	.asciz	"0xXXXXXXXX"

L_.str:                                 ## @.str
	.asciz	"sdram_init"

L_.str.1:                               ## @.str.1
	.asciz	"0x%04X"

L_.str.2:                               ## @.str.2
	.asciz	"sdram_config"

L_.str.3:                               ## @.str.3
	.asciz	"sdram_refresh"

L_.str.4:                               ## @.str.4
	.asciz	"sdram_ncdl"

L_.str.5:                               ## @.str.5
	.asciz	"0x%08X"

	.no_dead_strip	__nvram_rehash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _nvram_rehash
__nvram_rehash:                         ; @_nvram_rehash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_nvram_header
	mov	x20, x0
Lloh3:
	adrp	x8, l___const._nvram_rehash.buf@PAGE
Lloh4:
	add	x8, x8, l___const._nvram_rehash.buf@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w8, #22616
	movk	w8, #88, lsl #16
	stur	w8, [sp, #15]
	mov	x0, x19
	bl	__nvram_free
	mov	x21, x20
	ldrb	w8, [x21, #12]!
	cbz	w8, LBB0_4
; %bb.1:
	mov	w24, #61
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	strb	wzr, [x0]
	add	x23, x0, #1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_nvram_set
	strb	w24, [x22]
	mov	x0, x23
	bl	_strlen
	add	x21, x22, w0, sxtw
	ldrb	w8, [x21, #2]!
	cbnz	w8, LBB0_2
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvram_get
	cbnz	w0, LBB0_6
; %bb.5:
	ldrsh	w2, [x20, #2]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_nvram_set
LBB0_6:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nvram_get
	cbnz	w0, LBB0_8
; %bb.7:
	ldrh	w2, [x20, #4]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_nvram_set
LBB0_8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_nvram_get
	cbnz	w0, LBB0_10
; %bb.9:
	ldrh	w2, [x20, #6]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_nvram_set
LBB0_10:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_nvram_get
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w2, [x20, #8]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_nvram_set
LBB0_12:
	ldr	x8, [sp, #24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const._nvram_rehash.buf:            ; @__const._nvram_rehash.buf
	.asciz	"0xXXXXXXXX"

l_.str:                                 ; @.str
	.asciz	"sdram_init"

l_.str.1:                               ; @.str.1
	.asciz	"0x%04X"

l_.str.2:                               ; @.str.2
	.asciz	"sdram_config"

l_.str.3:                               ; @.str.3
	.asciz	"sdram_refresh"

l_.str.4:                               ; @.str.4
	.asciz	"sdram_ncdl"

l_.str.5:                               ; @.str.5
	.asciz	"0x%08X"

	.no_dead_strip	__nvram_rehash
.subsections_via_symbols
