	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validateHeaders
_validateHeaders:                       ## @validateHeaders
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	(%rdi), %r8
	movl	(%r8), %ecx
	movq	_H_TRANSFER_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_6
## %bb.1:
	movq	16(%rdi), %r9
	movq	(%r9), %r11
	xorl	%esi, %esi
	movl	$-1, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %r10
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rsi,4), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %edx
	jg	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r9), %rbx
	addl	(%rbx,%rsi,4), %edx
	cmpl	%ecx, %edx
	jle	LBB0_2
	jmp	LBB0_15
LBB0_6:
	movq	8(%r8), %rdx
	testq	%rdx, %rdx
	jle	LBB0_14
## %bb.7:
	movq	8(%rdi), %rsi
	shlq	$4, %rdx
	addq	%rsi, %rdx
	movl	$-1, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	cmpl	%ecx, %edi
	jg	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addl	4(%rsi), %edi
	cmpl	%ecx, %edi
	jg	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%rsi), %edi
	cmpl	%ecx, %edi
	jg	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	12(%rsi), %edi
	cmpl	%ecx, %edi
	jg	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rsi
	cmpq	%rdx, %rsi
	jb	LBB0_8
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ## @H_TRANSFER_ENCODING
	.no_dead_strip	_validateHeaders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validateHeaders
_validateHeaders:                       ; @validateHeaders
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
	ldr	w8, [x9]
Lloh0:
	adrp	x10, _H_TRANSFER_ENCODING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _H_TRANSFER_ENCODING@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x10]
	cmp	w13, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0, #16]
	ldr	x12, [x11]
	lsl	x13, x13, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #4
	cmp	x13, x10
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12, x10]
	cbz	w14, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, w8
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x11, #8]
	ldr	w15, [x15, x10]
	add	w14, w15, w14
	cmp	w14, w8
	b.le	LBB0_2
LBB0_6:
	mov	w0, #-1
	ret
LBB0_7:
	ldr	x10, [x9, #8]
	cmp	x10, #1
	b.lt	LBB0_14
; %bb.8:
	ldr	x9, [x0, #8]
	add	x10, x9, x10, lsl #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, w8
	b.gt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w12, [x9, #4]
	add	w11, w12, w11
	cmp	w11, w8
	b.gt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x9, #8]
	cmp	w11, w8
	b.gt	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w12, [x9, #12]
	add	w11, w12, w11
	cmp	w11, w8
	b.gt	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #16
	cmp	x9, x10
	b.lo	LBB0_9
LBB0_14:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ; @H_TRANSFER_ENCODING
	.no_dead_strip	_validateHeaders
.subsections_via_symbols
