	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ForeachOrgHeader_r       ## -- Begin function LSAPI_ForeachOrgHeader_r
	.p2align	4, 0x90
_LSAPI_ForeachOrgHeader_r:              ## @LSAPI_ForeachOrgHeader_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
	pushq	%rax
	movl	$16392, %eax                    ## imm = 0x4008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.2:
	movq	24(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	%rdx, %r14
	movq	_H_TRANSFER_ENCODING@GOTPCREL(%rip), %r10
	movl	(%r10), %edx
	xorl	%r12d, %r12d
	testl	%edx, %edx
	jle	LBB0_5
## %bb.7:
	movl	$1, %ecx
	movq	_HTTP_HEADERS@GOTPCREL(%rip), %r8
	movq	_HTTP_HEADER_LEN@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	movslq	-4(%rbx,%rcx,4), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rsi), %rdx
	movslq	-4(%rdx,%rcx,4), %rdx
	addq	(%rdi), %rbx
	movb	$0, (%rdx,%rbx)
	movq	(%r8), %rsi
	movq	-8(%rsi,%rcx,8), %rsi
	movslq	%r12d, %r12
	movq	%r12, %rax
	shlq	$5, %rax
	movq	%rsi, -16432(%rbp,%rax)
	movq	(%r9), %rsi
	movl	-4(%rsi,%rcx,4), %esi
	movl	%esi, -16424(%rbp,%rax)
	movq	%rbx, -16416(%rbp,%rax)
	movl	%edx, -16408(%rbp,%rax)
	incl	%r12d
	movl	(%r10), %edx
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	%edx, %rax
	cmpq	%rax, %rcx
	jge	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rdi), %rsi
	incq	%rcx
	jmp	LBB0_8
LBB0_5:
	movq	8(%rdi), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	jle	LBB0_15
## %bb.6:
	movq	16(%rdi), %r10
	shlq	$4, %r8
	addq	%r10, %r8
	movslq	%r12d, %rdx
	shlq	$5, %rdx
	leaq	(%rdx,%rbp), %r9
	addq	$-16408, %r9                    ## imm = 0xBFE8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r10,%rsi), %rbx
	addq	(%rdi), %rbx
	movslq	4(%r10,%rsi), %rax
	movb	$0, (%rax,%rbx)
	movslq	8(%r10,%rsi), %rdx
	addq	(%rdi), %rdx
	movslq	12(%r10,%rsi), %rcx
	movb	$0, (%rcx,%rdx)
	movq	%rbx, -24(%r9,%rsi,2)
	movl	%eax, -16(%r9,%rsi,2)
	movq	%rdx, -8(%r9,%rsi,2)
	movl	12(%r10,%rsi), %eax
	movl	%eax, (%r9,%rsi,2)
	cmpl	$511, %r12d                     ## imm = 0x1FF
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r10,%rsi), %rbx
	addq	$16, %rsi
	incl	%r12d
	addq	$16, %rbx
	cmpq	%r8, %rbx
	jb	LBB0_13
LBB0_15:
	movq	_compareValueLocation@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16432(%rbp), %rdi
	movl	%r12d, %esi
	movl	$32, %edx
	callq	_qsort
	testl	%r12d, %r12d
	jg	LBB0_16
	jmp	LBB0_20
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_14:
	movq	_compareValueLocation@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16432(%rbp), %rdi
	movl	$512, %r12d                     ## imm = 0x200
	movl	$512, %esi                      ## imm = 0x200
	movl	$32, %edx
	callq	_qsort
LBB0_16:
	movl	%r12d, %r13d
	leaq	-16408(%rbp), %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-24(%rbx), %rdi
	movl	-16(%rbx), %esi
	movq	-8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r14, %r8
	callq	*%r15
	testl	%eax, %eax
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	$32, %rbx
	decq	%r13
	jne	LBB0_18
	jmp	LBB0_20
LBB0_19:
	movl	%eax, %r12d
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r12d, %eax
	addq	$16392, %rsp                    ## imm = 0x4008
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ## @H_TRANSFER_ENCODING
	.comm	_HTTP_HEADERS,8,3               ## @HTTP_HEADERS
	.comm	_HTTP_HEADER_LEN,8,3            ## @HTTP_HEADER_LEN
	.comm	_compareValueLocation,4,2       ## @compareValueLocation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ForeachOrgHeader_r       ; -- Begin function LSAPI_ForeachOrgHeader_r
	.p2align	2
_LSAPI_ForeachOrgHeader_r:              ; @LSAPI_ForeachOrgHeader_r
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w9, #16400
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w21, #-1
	cbz	x0, LBB0_21
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_21
; %bb.2:
	ldr	x14, [x0, #24]
	cbz	x14, LBB0_9
; %bb.3:
	mov	x19, x2
Lloh5:
	adrp	x8, _H_TRANSFER_ENCODING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H_TRANSFER_ENCODING@GOTPAGEOFF]
	ldr	w13, [x8]
	cmp	w13, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x9, #0
	mov	w21, #0
Lloh7:
	adrp	x10, _HTTP_HEADERS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HTTP_HEADERS@GOTPAGEOFF]
	add	x11, sp, #8
Lloh9:
	adrp	x12, _HTTP_HEADER_LEN@GOTPAGE
Lloh10:
	ldr	x12, [x12, _HTTP_HEADER_LEN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x14]
	ldrsw	x15, [x15, x9, lsl #2]
	cbz	w15, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x14, #8]
	lsl	x14, x9, #2
	ldrsw	x13, [x13, x14]
	ldr	x16, [x0]
	add	x15, x16, x15
	strb	wzr, [x15, x13]
	ldr	x16, [x10]
	ldr	x16, [x16, x9, lsl #3]
	sxtw	x17, w21
	add	x17, x11, x17, lsl #5
	str	x16, [x17]
	ldr	x16, [x12]
	ldr	w14, [x16, x14]
	str	w14, [x17, #8]
	str	x15, [x17, #16]
	str	w13, [x17, #24]
	add	w21, w21, #1
	ldr	w13, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x9, w13, sxtw
	b.ge	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x14, [x0, #24]
	b	LBB0_5
LBB0_9:
	mov	w21, #0
	b	LBB0_21
LBB0_10:
	mov	w21, #0
LBB0_11:
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_15
; %bb.12:
	ldr	x8, [x0, #16]
	add	x9, x8, x9, lsl #4
	mov	x10, x21
	sxtw	x10, w10
	add	x11, sp, #8
	add	x10, x11, x10, lsl #5
	add	x10, x10, #16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0]
	ldpsw	x12, x13, [x8]
	add	x11, x11, x12
	strb	wzr, [x11, x13]
	ldr	x12, [x0]
	ldpsw	x14, x15, [x8, #8]
	add	x12, x12, x14
	strb	wzr, [x12, x15]
	stur	x11, [x10, #-16]
	stur	w13, [x10, #-8]
	str	x12, [x10]
	ldr	w11, [x8, #12]
	str	w11, [x10, #8]
	cmp	w21, #511
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #32
	add	w21, w21, #1
	add	x8, x8, #16
	cmp	x8, x9
	b.lo	LBB0_13
LBB0_15:
Lloh11:
	adrp	x8, _compareValueLocation@GOTPAGE
Lloh12:
	ldr	x8, [x8, _compareValueLocation@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #32
	bl	_qsort
	cmp	w21, #1
	b.ge	LBB0_17
	b	LBB0_21
LBB0_16:
Lloh14:
	adrp	x8, _compareValueLocation@GOTPAGE
Lloh15:
	ldr	x8, [x8, _compareValueLocation@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	w21, #512
	add	x0, sp, #8
	mov	w1, #512
	mov	w2, #32
	bl	_qsort
LBB0_17:
	mov	w22, w21
	add	x8, sp, #8
	add	x23, x8, #16
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x23, #-16]
	ldur	w1, [x23, #-8]
	ldr	x2, [x23]
	ldr	w3, [x23, #8]
	mov	x4, x19
	blr	x20
	cmp	w0, #0
	b.le	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x23, #32
	subs	x22, x22, #1
	b.ne	LBB0_18
	b	LBB0_21
LBB0_20:
	mov	x21, x0
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_H_TRANSFER_ENCODING,4,2        ; @H_TRANSFER_ENCODING
	.comm	_HTTP_HEADERS,8,3               ; @HTTP_HEADERS
	.comm	_HTTP_HEADER_LEN,8,3            ; @HTTP_HEADER_LEN
	.comm	_compareValueLocation,4,2       ; @compareValueLocation
.subsections_via_symbols
