	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_http_header                ## -- Begin function get_http_header
	.p2align	4, 0x90
_get_http_header:                       ## @get_http_header
	.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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movl	%esi, %eax
	movl	$-1, %r14d
	testl	%esi, %esi
	jle	LBB0_35
## %bb.1:
	movl	%r9d, %r13d
	movq	%rdi, %rsi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r15
	addq	%rdi, %r15
	movslq	%r9d, %r12
	movq	%rdi, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%rax, %r14
	movq	%r14, %rsi
	cmpq	%r15, %r14
	jae	LBB0_34
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpq	%r15, %rsi
	jae	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14), %eax
	cmpb	$10, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$58, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	cmpq	%r15, %r14
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %r14
	je	LBB0_34
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$58, (%r14)
	jne	LBB0_29
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rax
	subq	%rsi, %rax
	cmpq	%r12, %rax
	jne	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %r14
	jae	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, (%r14)
	jne	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	jmp	LBB0_33
LBB0_34:
	movl	$-1, %r14d
LBB0_35:
	movb	$0, (%rbx)
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	1(%r14), %rsi
	cmpq	%r15, %rsi
	jb	LBB0_12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rsi
	cmpq	%r15, %rsi
	jae	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi), %eax
	cmpb	$32, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpb	$9, %al
	je	LBB0_14
LBB0_15:
	leaq	-1(%rsi), %r14
LBB0_16:
	leaq	1(%r14), %rcx
	movl	$1, %eax
	cmpq	%r15, %rcx
	jae	LBB0_27
## %bb.17:
	movq	%r15, %rcx
	subq	%r14, %rcx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rax), %edx
	cmpb	$10, %dl
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpb	$13, %dl
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	(%r14,%rax), %rdx
	incq	%rdx
	incq	%rax
	cmpq	%r15, %rdx
	jb	LBB0_18
## %bb.21:
	movq	%rcx, %rax
LBB0_22:
	cmpq	$2, %rax
	jge	LBB0_23
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	leaq	-1(%rax), %rcx
	cmpq	$2, %rax
	movq	%rcx, %rax
	jle	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r14,%rax), %ecx
	cmpb	$32, %cl
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpb	$9, %cl
	je	LBB0_25
	jmp	LBB0_27
LBB0_26:
	movl	$1, %eax
LBB0_27:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	decl	%ecx
	movslq	%ecx, %r14
	leal	-1(%rax), %ecx
	cmpq	%r14, %rax
	cmovlel	%ecx, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	addq	%rax, %rbx
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_http_header                ; -- Begin function get_http_header
	.p2align	2
_get_http_header:                       ; @get_http_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x0
	sxtw	x26, w1
	add	x24, x0, x26
	sxtw	x27, w22
	sub	x28, x24, #1
	mov	x1, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x25, w8, uxtw
	cmp	x1, x24
	b.hs	LBB0_24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	mov	x25, x1
	cmp	x1, x24
	b.hs	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x24, x1
	mov	x25, x1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x25]
	cmp	w9, #10
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	cmp	w9, #58
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #1
	subs	x8, x8, #1
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x24
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x24
	b.eq	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x25]
	cmp	w8, #58
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x25, x1
	cmp	x8, x27
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x2, x22
	bl	_strncasecmp
	cbz	w0, LBB0_26
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x24
	b.hs	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x25]
	cmp	w8, #10
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	b	LBB0_3
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x25, #1
	sub	x9, x28, x25
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x10
	cbz	x9, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x10, x8
	ldrb	w11, [x10], #1
	sub	x9, x9, #1
	cmp	w11, #10
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x25, x10, #1
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x24
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x24
	cset	w8, lo
	b	LBB0_3
LBB0_24:
	mov	w20, #-1
LBB0_25:
	strb	wzr, [x19]
	mov	x0, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	add	x1, x25, #1
	cmp	x1, x24
	b.hs	LBB0_32
; %bb.27:
	mvn	x8, x25
	add	x9, x21, x26
	add	x8, x8, x9
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x1]
	cmp	w9, #32
	ccmp	w9, #9, #4, ne
	b.ne	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	add	x1, x1, #1
	subs	x8, x8, #1
	b.ne	LBB0_28
; %bb.30:
	sub	x25, x1, #1
	mov	x1, x24
	b	LBB0_32
LBB0_31:
	sub	x25, x1, #1
LBB0_32:
	add	x8, x25, #1
	cmp	x8, x24
	b.hs	LBB0_41
; %bb.33:
	sub	x9, x24, x25
	mov	w8, #1
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x25, x8]
	cmp	w10, #10
	ccmp	w10, #13, #4, ne
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.36:
	mov	x8, x9
LBB0_37:
	cmp	x8, #2
	b.lt	LBB0_42
; %bb.38:
	sub	x9, x25, #1
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x8]
	cmp	w10, #32
	ccmp	w10, #9, #4, ne
	b.ne	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	sub	x10, x8, #1
	cmp	x8, #2
	mov	x8, x10
	b.gt	LBB0_39
LBB0_41:
	mov	w8, #1
LBB0_42:
	sub	w9, w20, #1
	sub	w10, w8, #1
	cmp	x8, w9, sxtw
	csel	w20, w9, w10, gt
	mov	x0, x19
	mov	x2, x20
	bl	_memcpy
	add	x19, x19, w20, sxtw
	b	LBB0_25
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
