	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ForeachHeader_r          ## -- Begin function LSAPI_ForeachHeader_r
	.p2align	4, 0x90
_LSAPI_ForeachHeader_r:                 ## @LSAPI_ForeachHeader_r
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -328(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.2:
	movq	%rdi, %r12
	movq	%rsi, -320(%rbp)                ## 8-byte Spill
	movq	_H_TRANSFER_ENCODING@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_CGI_HEADER_LEN@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	movq	(%rcx), %rdx
	movslq	(%rdx,%rbx,4), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	(%r12), %rdx
	movb	$0, (%rcx,%rdx)
	movq	_CGI_HEADERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-328(%rbp), %r8                 ## 8-byte Reload
	callq	*-320(%rbp)                     ## 8-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_19
## %bb.10:
	movl	%r14d, -308(%rbp)               ## 4-byte Spill
	movq	16(%r12), %r15
	shlq	$4, %rax
	addq	%r15, %rax
	leaq	-304(%rbp), %r14
	movq	%r12, -344(%rbp)                ## 8-byte Spill
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movslq	(%r15), %rbx
	addq	(%r12), %rbx
	movl	4(%r15), %r12d
	cmpl	$250, %r12d
	movl	$250, %r13d
	cmovll	%r12d, %r13d
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_memcpy
	leaq	-299(%rbp), %r14
	testl	%r12d, %r12d
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movslq	%r13d, %r12
	addq	%rbx, %r12
	leaq	-299(%rbp), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=2
	movb	%al, (%r14)
	incq	%r14
	cmpq	%r12, %rbx
	jae	LBB0_16
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %ecx
	incq	%rbx
	movb	$95, %al
	cmpb	$45, %cl
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movsbl	%cl, %edi
	callq	_toupper
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movb	$0, (%r14)
	movslq	8(%r15), %rdx
	movq	-344(%rbp), %r12                ## 8-byte Reload
	addq	(%r12), %rdx
	addl	$5, %r13d
	movslq	12(%r15), %rax
	movb	$0, (%rax,%rdx)
	movl	12(%r15), %ecx
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-328(%rbp), %r8                 ## 8-byte Reload
	callq	*-320(%rbp)                     ## 8-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$16, %r15
	movq	-336(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, %r15
	jb	LBB0_11
## %bb.18:
	movl	-308(%rbp), %r14d               ## 4-byte Reload
LBB0_19:
	movq	8(%r12), %rax
	addl	(%rax), %r14d
	jmp	LBB0_22
LBB0_21:
	movl	%eax, %r14d
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r14d, %eax
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ## @H_TRANSFER_ENCODING
	.comm	_CGI_HEADERS,8,3                ## @CGI_HEADERS
	.comm	_CGI_HEADER_LEN,8,3             ## @CGI_HEADER_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTTP_"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ForeachHeader_r          ; -- Begin function LSAPI_ForeachHeader_r
	.p2align	2
_LSAPI_ForeachHeader_r:                 ; @LSAPI_ForeachHeader_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w0, #-1
	cbz	x19, LBB0_21
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_21
; %bb.2:
	mov	x20, x2
Lloh3:
	adrp	x22, _H_TRANSFER_ENCODING@GOTPAGE
Lloh4:
	ldr	x22, [x22, _H_TRANSFER_ENCODING@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
	mov	w23, #0
Lloh5:
	adrp	x25, _CGI_HEADERS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CGI_HEADERS@GOTPAGEOFF]
Lloh7:
	adrp	x26, _CGI_HEADER_LEN@GOTPAGE
Lloh8:
	ldr	x26, [x26, _CGI_HEADER_LEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #24]
	ldr	x9, [x10]
	ldrsw	x9, [x9, x24, lsl #2]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x10, #8]
	lsl	x10, x24, #2
	ldrsw	x3, [x8, x10]
	ldr	x8, [x19]
	add	x2, x8, x9
	strb	wzr, [x2, x3]
	ldr	x8, [x25]
	ldr	x0, [x8, x24, lsl #3]
	ldr	x8, [x26]
	ldr	w1, [x8, x10]
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x20
	blr	x21
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	ldr	w8, [x22]
	b	LBB0_4
LBB0_8:
	mov	w23, #0
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_20
; %bb.10:
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
	ldr	x24, [x19, #16]
	add	x8, x24, x8, lsl #4
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x8, sp, #16
	add	x27, x8, #5
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x22, [x19]
	mov	x23, x20
	ldp	w25, w20, [x24]
                                        ; kill: def $w25 killed $w25 def $x25
	sxtw	x25, w25
	cmp	w20, #250
	mov	w8, #250
	csel	w28, w20, w8, lt
	add	x0, sp, #16
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_memcpy
	mov	x26, x27
	cmp	w20, #1
	mov	x20, x23
	b.lt	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, x25
	add	x25, x22, w28, sxtw
	mov	x26, x27
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	sxtb	w0, w8
	bl	_toupper
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	strb	w0, [x26], #1
	cmp	x22, x25
	b.hs	LBB0_17
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22], #1
	cmp	w8, #45
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	w0, #95
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	strb	wzr, [x26]
	add	w1, w28, #5
	ldr	x8, [x19]
	ldpsw	x9, x10, [x24, #8]
	add	x2, x8, x9
	strb	wzr, [x2, x10]
	ldr	w3, [x24, #12]
	add	x0, sp, #16
	mov	x4, x20
	blr	x21
	cmp	w0, #0
	b.le	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #16
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x24, x8
	b.lo	LBB0_11
; %bb.19:
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	add	w0, w23, w8
LBB0_21:
	ldur	x8, [x29, #-96]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ; @H_TRANSFER_ENCODING
	.comm	_CGI_HEADERS,8,3                ; @CGI_HEADERS
	.comm	_CGI_HEADER_LEN,8,3             ; @CGI_HEADER_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTTP_"

.subsections_via_symbols
