	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_load_option
_validate_load_option:                  ## @validate_load_option
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_EFI_VAR_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ucs2_strnlen
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	4(%rbx), %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %r14
	movslq	%r12d, %r15
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r14,4), %eax
	cmpl	$127, %eax
	jg	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %edi
	callq	_hex_to_bin
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r15, %r14
	jl	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	$8, %r15
	jb	LBB0_8
## %bb.5:
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	jg	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %r14d
	shll	$8, %r14d
	orl	16(%rax), %r14d
	leaq	24(%rax), %rdi
	leaq	-6(%r15), %rsi
	callq	_ucs2_strsize
                                        ## kill: def $eax killed $eax def $rax
	addl	$2, %eax
	je	LBB0_8
## %bb.7:
	leal	(%r14,%rax), %ecx
	addl	$6, %ecx
	movslq	%ecx, %rcx
	cmpq	%r15, %rcx
	jbe	LBB0_9
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdx
	addq	$24, %rdx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_validate_device_path           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_VAR_NAME_LEN,4,2           ## @EFI_VAR_NAME_LEN
	.no_dead_strip	_validate_load_option
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_load_option
_validate_load_option:                  ; @validate_load_option
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EFI_VAR_NAME_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_VAR_NAME_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ucs2_strnlen
	mov	x23, x0
	add	w8, w19, #4
	sxtw	x25, w19
	sxtw	x24, w8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x25, lsl #2]
	cmp	w8, #127
	b.gt	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w0, w8, #0xff
	bl	_hex_to_bin
	tbnz	x0, #63, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x25, x25, #1
	cmp	x25, x24
	b.lt	LBB0_1
; %bb.4:
	mov	w0, #0
	cmp	x22, #8
	b.lo	LBB0_10
; %bb.5:
	cmp	w23, w24
	b.gt	LBB0_10
; %bb.6:
	ldp	w23, w24, [x21, #16]
	add	x0, x21, #24
	sub	x1, x22, #6
	bl	_ucs2_strsize
	adds	w8, w0, #2
	b.eq	LBB0_8
; %bb.7:
	orr	w3, w23, w24, lsl #8
	add	w9, w3, w8
	add	w9, w9, #6
	sxtw	x9, w9
	cmp	x9, x22
	b.ls	LBB0_11
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
LBB0_11:
	add	x8, x21, w8, sxtw #2
	add	x2, x8, #24
	mov	x0, x20
	mov	x1, x19
	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
	b	_validate_device_path
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_VAR_NAME_LEN,4,2           ; @EFI_VAR_NAME_LEN
	.no_dead_strip	_validate_load_option
.subsections_via_symbols
