	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_validate                ## -- Begin function efivar_validate
	.p2align	4, 0x90
_efivar_validate:                       ## @efivar_validate
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_ucs2_utf8size
	movq	%rax, %r15
	leaq	1(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ucs2_as_utf8
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	$0, (%rbx,%r15)
	movq	_variable_validate@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %r12
	cmpb	$0, (%r12)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	(%r13), %rax
	movq	24(%rax,%r14), %r12
	addq	$24, %r14
	cmpb	$0, (%r12)
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movl	16(%rax,%r14), %esi
	movl	%ebx, %edi
	callq	_efi_guidcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	leaq	-44(%rbp), %rcx
	callq	_variable_matches
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	%r15d, %eax
	movq	(%r13), %rcx
	leaq	(%rax,%rax,2), %rbx
	cmpq	$0, 8(%rcx,%rbx,8)
	je	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	(%r13), %rax
	movl	-44(%rbp), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	*8(%rax,%rbx,8)
	jmp	LBB0_10
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movl	$1, %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_variable_validate,8,3          ## @variable_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efivar_validate                ; -- Begin function efivar_validate
	.p2align	2
_efivar_validate:                       ; @efivar_validate
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x1
	bl	_ucs2_utf8size
	mov	x25, x0
	add	x24, x0, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	mov	x1, x21
	mov	x2, x25
	bl	_ucs2_as_utf8
	strb	wzr, [x22, x25]
Lloh3:
	adrp	x26, _variable_validate@GOTPAGE
Lloh4:
	ldr	x26, [x26, _variable_validate@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x25, [x8]
	ldrb	w9, [x25]
	cbz	w9, LBB0_8
; %bb.2:
	mov	x28, #0
	mov	x27, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldr	x8, [x26]
	add	x9, x8, x28
	ldr	x25, [x9, #24]
	ldrb	w9, [x25]
	add	x28, x28, #24
	cbz	w9, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	add	x8, x8, x28
	ldr	w1, [x8, #16]
	mov	x0, x23
	bl	_efi_guidcmp
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	bl	_variable_matches
	cbz	x0, LBB0_3
; %bb.6:
	and	x23, x27, #0xffffffff
	ldr	x8, [x26]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_kfree
	ldr	x8, [x26]
	mov	w9, #24
	madd	x8, x23, x9, x8
	ldr	x8, [x8, #8]
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_kfree
	mov	w0, #1
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_variable_validate,8,3          ; @variable_validate
.subsections_via_symbols
