	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_parse
_fw_parse:                              ## @fw_parse
	.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
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_le16_to_cpup
	movl	%eax, (%r14)
	leaq	8(%rbx), %rdi
	callq	_le32_to_cpup
	movl	%eax, (%r13)
	leaq	24(%rbx), %rdi
	callq	_le16_to_cpup
	movl	%eax, (%r15)
	leaq	32(%rbx), %rcx
	movq	%rcx, (%r12)
	movslq	%eax, %r14
	leaq	(%rbx,%r14,4), %r12
	addq	$32, %r12
	movq	%r12, %rdi
	callq	_le16_to_cpup
	xorl	%edx, %edx
	cmpl	$-7, %r14d
	jl	LBB0_12
## %bb.1:
	addq	$8, %r14
	leaq	(%rbx,%r14,4), %rcx
	leaq	4(%rbx), %rdx
	cmpq	%rdx, %rcx
	cmovaq	%rcx, %rdx
	movq	%rbx, %rcx
	notq	%rcx
	addq	%rdx, %rcx
	xorl	%edx, %edx
	cmpq	$28, %rcx
	jb	LBB0_11
## %bb.2:
	shrq	$2, %rcx
	incq	%rcx
	movq	%rcx, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$24, %rdi
	jae	LBB0_4
## %bb.3:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_6
LBB0_4:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rdi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rbx,%rdi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rbx,%rdi,4), %xmm1
	movdqu	48(%rbx,%rdi,4), %xmm3
	movdqu	64(%rbx,%rdi,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rbx,%rdi,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rbx,%rdi,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rbx,%rdi,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_5
LBB0_6:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.7:
	leaq	(%rbx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_8
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%r8, %rcx
	je	LBB0_12
## %bb.10:
	leaq	(%rbx,%r8,4), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rbx), %edx
	addq	$4, %rbx
	cmpq	%r12, %rbx
	jb	LBB0_11
LBB0_12:
	cmpl	%edx, %eax
	jne	LBB0_13
## %bb.14:
	movslq	(%r15), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	leaq	(%rcx,%rax,4), %rax
	addq	$40, %rax
	movq	%rax, (%rdx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	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
	.no_dead_strip	_fw_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_parse
_fw_parse:                              ; @fw_parse
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_le16_to_cpup
	str	w0, [x24]
	add	x0, x22, #8
	bl	_le32_to_cpup
	str	w0, [x23]
	add	x0, x22, #24
	bl	_le16_to_cpup
	mov	x23, x0
	str	w0, [x20]
	add	x8, x22, #32
	str	x8, [x21]
	add	w24, w0, #8
	add	x21, x22, w24, sxtw #2
	mov	x0, x21
	bl	_le16_to_cpup
	cmn	w23, #7
	b.lt	LBB0_3
; %bb.1:
	sxtw	x8, w24
	add	x8, x22, x8, lsl #2
	add	x9, x22, #4
	cmp	x8, x9
	csel	x8, x8, x9, hi
	mvn	x9, x22
	add	x8, x8, x9
	cmp	x8, #60
	b.hs	LBB0_4
; %bb.2:
	mov	w11, #0
	mov	x8, x22
	b	LBB0_7
LBB0_3:
	mov	w11, #0
	b	LBB0_8
LBB0_4:
	lsr	x8, x8, #2
	add	x9, x8, #1
	and	x10, x9, #0x7ffffffffffffff0
	add	x8, x22, x10, lsl #2
	add	x11, x22, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w11, s0
	cmp	x9, x10
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #4
	add	w11, w9, w11
	cmp	x8, x21
	b.lo	LBB0_7
LBB0_8:
	cmp	w0, w11
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ldrsw	x8, [x20]
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #2
	add	x8, x8, #40
	str	x8, [x19]
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_fw_parse
.subsections_via_symbols
