	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wi_parse_length                ## -- Begin function wi_parse_length
	.p2align	4, 0x90
_wi_parse_length:                       ## @wi_parse_length
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movzbl	(%rsi), %eax
	shll	$24, %eax
	movzbl	1(%rsi), %ecx
	shlq	$16, %rcx
	cltq
	orq	%rcx, %rax
	movzbl	2(%rsi), %ecx
	shlq	$8, %rcx
	orq	%rax, %rcx
	movzbl	3(%rsi), %eax
	orq	%rcx, %rax
	movq	%rax, (%rdx)
	movq	_MAX_BODY_LENGTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	cmpq	%rax, %rcx
	jae	LBB0_6
## %bb.5:
	movsbl	(%rsi), %edx
	movsbl	1(%rsi), %ecx
	movsbl	2(%rsi), %r8d
	movsbl	3(%rsi), %r9d
	leal	-32(%rdx), %esi
	cmpb	$94, %sil
	movl	$46, %ebx
	movl	$46, %esi
	cmovbl	%edx, %esi
	movzbl	%sil, %r10d
	leal	-32(%rcx), %esi
	cmpb	$94, %sil
	movl	$46, %esi
	cmovbl	%ecx, %esi
	movzbl	%sil, %r11d
	leal	-32(%r8), %esi
	cmpb	$94, %sil
	movl	$46, %esi
	cmovbl	%r8d, %esi
	movzbl	%sil, %r14d
	leal	-32(%r9), %esi
	cmpb	$94, %sil
	cmovbl	%r9d, %ebx
	movzbl	%bl, %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%rbx
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	*(%rdi)
	addq	$48, %rsp
	jmp	LBB0_8
LBB0_2:
	movq	_WI_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_WI_SUCCESS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WI_ERROR,4,2                   ## @WI_ERROR
	.comm	_MAX_BODY_LENGTH,8,3            ## @MAX_BODY_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet header 0x%x%x%x%x == %c%c%c%c == %zd"

	.comm	_WI_SUCCESS,4,2                 ## @WI_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wi_parse_length                ; -- Begin function wi_parse_length
	.p2align	2
_wi_parse_length:                       ; @wi_parse_length
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_4
; %bb.1:
	cbz	x2, LBB0_4
; %bb.2:
	ldrb	w8, [x1]
	lsl	w8, w8, #24
	ldrb	w9, [x1, #1]
	sxtw	x8, w8
	bfi	x8, x9, #16, #8
	ldrb	w9, [x1, #2]
	bfi	x8, x9, #8, #8
	ldrb	w9, [x1, #3]
	orr	x8, x8, x9
	str	x8, [x2]
Lloh0:
	adrp	x9, _MAX_BODY_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_BODY_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	x9, x8, #2, ne
	b.lo	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _WI_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WI_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _WI_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WI_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	ldr	x9, [x0]
	ldrsb	w2, [x1]
	ldrsb	w3, [x1, #1]
	ldrsb	w4, [x1, #2]
	sub	w10, w2, #32
	mov	w11, #46
	cmp	w10, #94
	csel	w10, w2, w11, lo
	and	w6, w10, #0xff
	ldrsb	w5, [x1, #3]
	sub	w10, w3, #32
	cmp	w10, #94
	csel	w10, w3, w11, lo
	and	w7, w10, #0xff
	sub	w10, w4, #32
	cmp	w10, #94
	csel	w10, w4, w11, lo
	and	w10, w10, #0xff
	sub	w12, w5, #32
	cmp	w12, #94
	csel	w11, w5, w11, lo
	and	w11, w11, #0xff
	str	x8, [sp, #8]
	stp	w10, w11, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	blr	x9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WI_ERROR,4,2                   ; @WI_ERROR
	.comm	_MAX_BODY_LENGTH,8,3            ; @MAX_BODY_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet header 0x%x%x%x%x == %c%c%c%c == %zd"

	.comm	_WI_SUCCESS,4,2                 ; @WI_SUCCESS
.subsections_via_symbols
