	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vce_v1_0_load_fw               ## -- Begin function vce_v1_0_load_fw
	.p2align	4, 0x90
_vce_v1_0_load_fw:                      ## @vce_v1_0_load_fw
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	addl	$-128, %ebx
	cmpl	$5, %ebx
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	8(%rax), %r13
	movl	12(%r13), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rax
	leaq	l_switch.table.vce_v1_0_load_fw(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	movl	$20, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r14), %edi
	callq	_le32_to_cpu
	cmpl	%r12d, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	12(%r13), %edi
	callq	_le32_to_cpu
	cltq
	addq	$24, %r14
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movl	12(%r13), %edi
	callq	_le32_to_cpu
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_9:
	movq	(%r13), %rax
	movl	%ebx, %ecx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	(%rax,%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 192(%r15)
	movl	4(%rax), %ecx
	movl	%ecx, 196(%r15)
	movl	8(%rax), %ecx
	movl	%ecx, 200(%r15)
	movl	12(%rax), %eax
	movl	%eax, 204(%r15)
	movl	8(%r13), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	64(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 208(%r15)
	leaq	212(%r15), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	leaq	256(%r15), %rdi
	leaq	16(%r13), %rsi
	movq	8(%r14), %rax
	movq	(%rax), %rdx
	addq	$-16, %rdx
	callq	_memcpy
	movl	8(%r13), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	leal	64(%rax), %ecx
	addl	$67, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	cltq
	movq	(%r13), %rcx
	movq	8(%rcx,%rbx), %rdx
	movl	(%rdx), %esi
	movl	%esi, 192(%r15,%rax,4)
	movl	4(%rdx), %esi
	movl	%esi, 196(%r15,%rax,4)
	movl	8(%rdx), %esi
	movl	%esi, 200(%r15,%rax,4)
	movl	12(%rdx), %edx
	movl	%edx, 204(%r15,%rax,4)
	movl	16(%rcx,%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, 4(%r14)
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.vce_v1_0_load_fw
l_switch.table.vce_v1_0_load_fw:
	.long	16777237                        ## 0x1000015
	.long	16777236                        ## 0x1000014
	.long	16777238                        ## 0x1000016
	.long	16777238                        ## 0x1000016
	.long	16777239                        ## 0x1000017

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vce_v1_0_load_fw               ; -- Begin function vce_v1_0_load_fw
	.p2align	2
_vce_v1_0_load_fw:                      ; @vce_v1_0_load_fw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	sub	w23, w8, #128
	cmp	w23, #5
	b.hs	LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
Lloh0:
	adrp	x8, l_switch.table.vce_v1_0_load_fw@PAGE
Lloh1:
	add	x8, x8, l_switch.table.vce_v1_0_load_fw@PAGEOFF
	ldr	w23, [x8, w23, sxtw #2]
	mov	w24, #20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x24]
	bl	_le32_to_cpu
	cmp	w0, w23
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	add	x24, x24, #24
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	cmp	w22, w0
	b.ne	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	ldr	x8, [x21]
	mov	w23, #24
	umull	x9, w22, w23
	ldr	x8, [x8, x9]
	ldr	w9, [x8]
	str	w9, [x20, #192]!
	ldr	w9, [x8, #4]
	str	w9, [x20, #4]
	ldr	w9, [x8, #8]
	str	w9, [x20, #8]
	ldr	w8, [x8, #12]
	str	w8, [x20, #12]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	add	w0, w0, #64
	bl	_cpu_to_le32
	str	w0, [x20, #16]
	add	x0, x20, #20
	mov	w1, #0
	mov	w2, #44
	bl	_memset
	add	x0, x20, #64
	add	x1, x21, #16
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	sub	x2, x8, #16
	bl	_memcpy
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	add	w8, w0, #64
	add	w9, w0, #67
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	add	x8, x20, w8, sxtw #2
	ldr	x9, [x21]
	umaddl	x9, w22, w23, x9
	ldr	x10, [x9, #8]
	ldr	w11, [x10]
	str	w11, [x8]
	ldr	w11, [x10, #4]
	str	w11, [x8, #4]
	ldr	w11, [x10, #8]
	str	w11, [x8, #8]
	ldr	w10, [x10, #12]
	str	w10, [x8, #12]
	ldr	w0, [x9, #16]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.vce_v1_0_load_fw
l_switch.table.vce_v1_0_load_fw:
	.long	16777237                        ; 0x1000015
	.long	16777236                        ; 0x1000014
	.long	16777238                        ; 0x1000016
	.long	16777238                        ; 0x1000016
	.long	16777239                        ; 0x1000017

.subsections_via_symbols
