	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvram_set                      ## -- Begin function nvram_set
	.p2align	4, 0x90
_nvram_set:                             ## @nvram_set
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_hash
	movq	%rax, %rbx
	movq	(%r15), %rdi
	callq	_NVRAM_ARRAYSIZE
	movq	%rax, %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	(%r15), %rax
	leaq	(%rax,%rdx,8), %r14
	movq	(%rax,%rdx,8), %rbx
	testq	%rbx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	sete	%r12b
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r14
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorb	$1, %r12b
	jmp	LBB0_9
LBB0_4:
	movb	$1, %r12b
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	__nvram_realloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rcx
	xorl	%eax, %eax
	testb	$1, %r12b
	jne	LBB0_13
## %bb.12:
	cmpq	%rcx, %rbx
	je	LBB0_16
LBB0_13:
	testb	$1, %r12b
	jne	LBB0_15
## %bb.14:
	movq	(%rbx), %rdx
	movq	%rdx, (%r14)
	movq	8(%r15), %rdx
	movq	%rdx, (%rbx)
	movq	%rbx, 8(%r15)
LBB0_15:
	movq	(%r15), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdx,%rdi,8), %rsi
	movq	%rsi, (%rcx)
	movq	%rcx, (%rdx,%rdi,8)
	jmp	LBB0_16
LBB0_10:
	movl	$-12, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvram_set                      ; -- Begin function nvram_set
	.p2align	2
_nvram_set:                             ; @nvram_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_hash
	mov	x22, x0
	ldr	x0, [x19]
	bl	_NVRAM_ARRAYSIZE
	udiv	x8, x22, x0
	msub	x23, x8, x0, x22
	ldr	x8, [x19]
	add	x24, x8, x23, lsl #3
	ldr	x22, [x24]
	cbz	x22, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x22
	ldr	x22, [x22]
	cbnz	x22, LBB0_1
LBB0_3:
	eor	w25, w8, #0x1
	b	LBB0_5
LBB0_4:
	mov	w25, #1
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	__nvram_realloc
	cbz	x0, LBB0_9
; %bb.6:
	tbnz	w25, #0, LBB0_10
; %bb.7:
	cmp	x22, x0
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #0
	b	LBB0_13
LBB0_9:
	mov	w8, #-12
	b	LBB0_13
LBB0_10:
	tbnz	w25, #0, LBB0_12
; %bb.11:
	ldr	x8, [x22]
	str	x8, [x24]
	ldr	x8, [x19, #8]
	str	x8, [x22]
	str	x22, [x19, #8]
LBB0_12:
	mov	w8, #0
	ldr	x9, [x19]
	lsl	x10, x23, #3
	ldr	x11, [x9, x10]
	str	x11, [x0]
	str	x0, [x9, x10]
LBB0_13:
	mov	x0, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
