	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parseRequest
_parseRequest:                          ## @parseRequest
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	leaq	4(%r12), %rax
	movq	%rax, -56(%rbp)
	movq	_LSAPI_ENDIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	72(%rdi), %rax
	movq	_LSAPI_ENDIAN_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	44(%rax), %r14d
	cmpl	%r14d, %r13d
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_fixEndian
	movq	72(%rbx), %rax
LBB0_2:
	movq	(%rax), %rdx
	cmpq	%rdx, 8(%rbx)
	jge	LBB0_5
## %bb.3:
	leaq	8(%rbx), %rsi
	leaq	100(%rbx), %rdi
	callq	_allocateEnvList
	cmpl	$-1, %eax
	je	LBB0_23
## %bb.4:
	movq	72(%rbx), %rax
LBB0_5:
	movq	8(%rax), %rdx
	cmpq	%rdx, 16(%rbx)
	jge	LBB0_8
## %bb.6:
	leaq	16(%rbx), %rsi
	leaq	96(%rbx), %rdi
	callq	_allocateEnvList
	cmpl	$-1, %eax
	je	LBB0_23
## %bb.7:
	movq	72(%rbx), %rax
LBB0_8:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rcx
	addq	%rcx, %r12
	movl	100(%rbx), %edi
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rcx
	callq	_parseEnv
	movl	$-1, %r15d
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.9:
	movl	96(%rbx), %edi
	movq	72(%rbx), %rax
	movq	8(%rax), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rcx
	callq	_parseEnv
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.10:
	movq	72(%rbx), %rax
	movl	16(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_20
## %bb.11:
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.12:
	movl	20(%rax), %edx
	testl	%edx, %edx
	js	LBB0_20
## %bb.13:
	cmpl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.14:
	movl	24(%rax), %edi
	testl	%edi, %edi
	js	LBB0_20
## %bb.15:
	cmpl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.16:
	movl	28(%rax), %esi
	testl	%esi, %esi
	js	LBB0_20
## %bb.17:
	cmpl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	jge	LBB0_20
## %bb.18:
	movq	(%rbx), %r8
	addq	%r8, %rcx
	movq	%rcx, 24(%rbx)
	addq	%r8, %rdx
	movq	%rdx, 32(%rbx)
	addq	%r8, %rdi
	movq	%rdi, 40(%rbx)
	addq	%r8, %rsi
	movq	%rsi, 48(%rbx)
	movq	-56(%rbp), %rcx
	subq	%r8, %rcx
	addq	$7, %rcx
	andq	$-8, %rcx
	leaq	(%r8,%rcx), %rdx
	movq	%rdx, 88(%rbx)
	addq	%r8, %rcx
	addq	$4, %rcx
	movq	%rcx, 80(%rbx)
	movslq	32(%rax), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	addq	$4, %rcx
	movq	%rcx, 56(%rbx)
	movslq	40(%rax), %rdx
	addq	%rcx, %rdx
	movq	%rdx, -56(%rbp)
	cmpq	%r12, %rdx
	je	LBB0_25
## %bb.19:
	subq	%r8, %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_lsapi_log
	jmp	LBB0_24
LBB0_23:
	movl	$-1, %r15d
	jmp	LBB0_24
LBB0_20:
	leaq	L_.str(%rip), %rdi
LBB0_21:
	xorl	%eax, %eax
	callq	_lsapi_log
LBB0_24:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	cmpl	%r14d, %r13d
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	callq	_fixHeaderIndexEndian
LBB0_27:
	movq	%rbx, %rdi
	callq	_validateHeaders
	cmpl	$-1, %eax
	je	LBB0_30
## %bb.28:
	movq	72(%rbx), %rax
	movl	36(%rax), %eax
	movl	%eax, 64(%rbx)
	xorl	%r15d, %r15d
	cmpl	$-2, %eax
	jne	LBB0_24
## %bb.29:
	movq	%rbx, %rdi
	callq	_parseContentLenFromHeader
	jmp	LBB0_24
LBB0_30:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_LSAPI_ENDIAN,4,2               ## @LSAPI_ENDIAN
	.comm	_LSAPI_ENDIAN_BIT,4,2           ## @LSAPI_ENDIAN_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad request header - ERROR#1\n"

L_.str.1:                               ## @.str.1
	.asciz	"Request header does match total size, total: %d, real: %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"Bad request header - ERROR#2\n"

	.no_dead_strip	_parseRequest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parseRequest
_parseRequest:                          ; @parseRequest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	add	x8, x21, #4
	str	x8, [sp, #24]
Lloh0:
	adrp	x8, _LSAPI_ENDIAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LSAPI_ENDIAN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x0, #72]
	ldr	w9, [x8, #44]
Lloh3:
	adrp	x10, _LSAPI_ENDIAN_BIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LSAPI_ENDIAN_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w23, w10, w9
	cmp	w22, w23
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_fixEndian
	ldr	x8, [x19, #72]
LBB0_2:
	mov	x1, x19
	ldr	x9, [x1, #8]!
	ldr	x2, [x8]
	cmp	x9, x2
	b.ge	LBB0_5
; %bb.3:
	add	x0, x19, #100
	bl	_allocateEnvList
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.4:
	ldr	x8, [x19, #72]
LBB0_5:
	mov	x1, x19
	ldr	x9, [x1, #16]!
	ldr	x2, [x8, #8]
	cmp	x9, x2
	b.ge	LBB0_8
; %bb.6:
	add	x0, x19, #96
	bl	_allocateEnvList
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.7:
	ldr	x8, [x19, #72]
LBB0_8:
	add	x21, x21, w20, sxtw
	ldr	w0, [x19, #100]
	ldr	x1, [x8]
	add	x2, sp, #24
	mov	x3, x21
	bl	_parseEnv
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.9:
	ldr	w0, [x19, #96]
	ldr	x8, [x19, #72]
	ldr	x1, [x8, #8]
	add	x2, sp, #24
	mov	x3, x21
	bl	_parseEnv
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.10:
	ldr	x8, [x19, #72]
	ldr	w9, [x8, #16]
	tbnz	w9, #31, LBB0_20
; %bb.11:
	cmp	w9, w20
	b.ge	LBB0_20
; %bb.12:
	ldr	w10, [x8, #20]
	tbnz	w10, #31, LBB0_20
; %bb.13:
	cmp	w10, w20
	b.ge	LBB0_20
; %bb.14:
	ldr	w12, [x8, #24]
	tbnz	w12, #31, LBB0_20
; %bb.15:
	cmp	w12, w20
	b.ge	LBB0_20
; %bb.16:
	ldr	w13, [x8, #28]
	tbnz	w13, #31, LBB0_20
; %bb.17:
	cmp	w13, w20
	b.ge	LBB0_20
; %bb.18:
	ldr	x11, [x19]
	add	x9, x11, x9
	add	x10, x11, x10
	stp	x9, x10, [x19, #24]
	add	x9, x11, x12
	add	x10, x11, x13
	stp	x9, x10, [x19, #40]
	ldr	x9, [sp, #24]
	sub	x9, x9, x11
	add	x9, x9, #7
	and	x9, x9, #0xfffffffffffffff8
	add	x9, x11, x9
	add	x10, x9, #4
	stp	x10, x9, [x19, #80]
	ldrsw	x9, [x8, #32]
	add	x9, x10, x9, lsl #2
	str	x9, [x19, #56]
	ldrsw	x8, [x8, #40]
	add	x8, x9, x8
	cmp	x8, x21
	str	x8, [sp, #24]
	b.eq	LBB0_23
; %bb.19:
	sub	x8, x8, x11
	stp	x20, x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_21:
	bl	_lsapi_log
	mov	w0, #-1
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	cmp	w22, w23
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_fixHeaderIndexEndian
LBB0_25:
	mov	x0, x19
	bl	_validateHeaders
	cmn	w0, #1
	b.eq	LBB0_29
; %bb.26:
	ldr	x8, [x19, #72]
	ldr	w8, [x8, #36]
	str	w8, [x19, #64]
	cmn	w8, #2
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x19
	bl	_parseContentLenFromHeader
LBB0_28:
	mov	w0, #0
	b	LBB0_22
LBB0_29:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LSAPI_ENDIAN,4,2               ; @LSAPI_ENDIAN
	.comm	_LSAPI_ENDIAN_BIT,4,2           ; @LSAPI_ENDIAN_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad request header - ERROR#1\n"

l_.str.1:                               ; @.str.1
	.asciz	"Request header does match total size, total: %d, real: %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"Bad request header - ERROR#2\n"

	.no_dead_strip	_parseRequest
.subsections_via_symbols
