	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function litespeed_php_import_environment_variables
_litespeed_php_import_environment_variables: ## @litespeed_php_import_environment_variables
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_http_globals@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_PG
	movq	_TRACK_VARS_ENV@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_Z_TYPE
	movq	_IS_ARRAY@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_Z_ARR_P
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_PG
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_Z_ARR
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.2:
	movl	(%r14), %edi
	callq	_PG
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_Z_ARRVAL
	movl	%eax, %edi
	callq	_zend_hash_num_elements
	testq	%rax, %rax
	jg	LBB0_3
LBB0_5:
	movl	(%r14), %edi
	callq	_PG
	movq	_TRACK_VARS_SERVER@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_Z_TYPE
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.6:
	movq	%r13, %rdi
	callq	_Z_ARR_P
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_PG
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_Z_ARR
	cmpq	%rax, %rbx
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	callq	_PG
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_Z_ARRVAL
	movl	%eax, %edi
	callq	_zend_hash_num_elements
	testq	%rax, %rax
	jle	LBB0_8
LBB0_3:
	movq	%r13, %rdi
	callq	_zval_ptr_dtor_nogc
	movl	(%r14), %edi
	callq	_PG
	movq	(%r15), %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_24
## %bb.4:
	leaq	(%rax,%rcx,4), %rsi
	movq	%r13, %rdi
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ZVAL_DUP                       ## TAILCALL
LBB0_8:
	leaq	-176(%rbp), %r12
	xorl	%eax, %eax
	callq	_tsrm_env_lock
	movq	_environ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_19
## %bb.9:
	movq	(%r15), %r14
	leaq	-176(%rbp), %r12
	testq	%r14, %r14
	je	LBB0_19
## %bb.10:
	leaq	-176(%rbp), %r12
	addq	$8, %r15
	movl	$128, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r13, -192(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_erealloc
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r12
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-8(%r15), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	movb	$0, (%r12,%r13)
	incq	%rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	movq	-192(%rbp), %r8                 ## 8-byte Reload
	callq	_add_variable
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %r14
	addq	$8, %r15
	testq	%r14, %r14
	je	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	movq	%rax, %r13
	subq	%r14, %r13
	cmpq	-184(%rbp), %r13                ## 8-byte Folded Reload
	jb	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	64(%r13), %rsi
	leaq	-176(%rbp), %rax
	cmpq	%rax, %r12
	movq	%rsi, -184(%rbp)                ## 8-byte Spill
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, %rdi
	callq	_emalloc
	jmp	LBB0_16
LBB0_19:
	xorl	%eax, %eax
	callq	_tsrm_env_unlock
	leaq	-176(%rbp), %rax
	cmpq	%rax, %r12
	je	LBB0_22
## %bb.20:
	testq	%r12, %r12
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_efree
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_http_globals,4,2               ## @http_globals
	.comm	_TRACK_VARS_ENV,8,3             ## @TRACK_VARS_ENV
	.comm	_IS_ARRAY,8,3                   ## @IS_ARRAY
	.comm	_TRACK_VARS_SERVER,8,3          ## @TRACK_VARS_SERVER
	.comm	_environ,8,3                    ## @environ
	.no_dead_strip	_litespeed_php_import_environment_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function litespeed_php_import_environment_variables
_litespeed_php_import_environment_variables: ; @litespeed_php_import_environment_variables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	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, #-72]
Lloh3:
	adrp	x21, _http_globals@GOTPAGE
Lloh4:
	ldr	x21, [x21, _http_globals@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PG
Lloh5:
	adrp	x22, _TRACK_VARS_ENV@GOTPAGE
Lloh6:
	ldr	x22, [x22, _TRACK_VARS_ENV@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x0, x8, lsl #2]
	bl	_Z_TYPE
Lloh7:
	adrp	x23, _IS_ARRAY@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IS_ARRAY@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_Z_ARR_P
	mov	x20, x0
	ldr	w0, [x21]
	bl	_PG
	ldr	x8, [x22]
	ldr	w0, [x0, x8, lsl #2]
	bl	_Z_ARR
	cmp	x20, x0
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_PG
	ldr	x8, [x22]
	ldr	w0, [x0, x8, lsl #2]
	bl	_Z_ARRVAL
	bl	_zend_hash_num_elements
	cmp	x0, #1
	b.ge	LBB0_6
LBB0_3:
	ldr	w0, [x21]
	bl	_PG
Lloh9:
	adrp	x22, _TRACK_VARS_SERVER@GOTPAGE
Lloh10:
	ldr	x22, [x22, _TRACK_VARS_SERVER@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x0, x8, lsl #2]
	bl	_Z_TYPE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_Z_ARR_P
	mov	x20, x0
	ldr	w0, [x21]
	bl	_PG
	ldr	x8, [x22]
	ldr	w0, [x0, x8, lsl #2]
	bl	_Z_ARR
	cmp	x20, x0
	b.eq	LBB0_8
; %bb.5:
	ldr	w0, [x21]
	bl	_PG
	ldr	x8, [x22]
	ldr	w0, [x0, x8, lsl #2]
	bl	_Z_ARRVAL
	bl	_zend_hash_num_elements
	cmp	x0, #1
	b.lt	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_zval_ptr_dtor_nogc
	ldr	w0, [x21]
	bl	_PG
	ldr	x8, [x22]
	ldur	x9, [x29, #-72]
Lloh11:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_25
; %bb.7:
	add	x1, x0, x8, lsl #2
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_ZVAL_DUP
LBB0_8:
	add	x24, sp, #8
	bl	_tsrm_env_lock
Lloh14:
	adrp	x8, _environ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _environ@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.9:
	add	x25, sp, #8
	ldr	x22, [x8]
	cbz	x22, LBB0_19
; %bb.10:
	add	x26, x8, #8
	mov	w21, #128
	add	x20, sp, #8
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_erealloc
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x20, x0
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	ldur	x1, [x26, #-8]
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x20, x22]
	add	x23, x23, #1
	mov	x0, x23
	bl	_strlen
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x4, x19
	bl	_add_variable
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x22, [x26], #8
	cbz	x22, LBB0_20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x23, x0
	sub	x22, x0, x22
	cmp	x22, x21
	b.lo	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x22, #64
	cmp	x20, x25
	b.ne	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	_emalloc
	b	LBB0_12
LBB0_19:
	add	x20, sp, #8
LBB0_20:
	bl	_tsrm_env_unlock
	cmp	x20, x24
	b.eq	LBB0_23
; %bb.21:
	cbz	x20, LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_efree
LBB0_23:
	ldur	x8, [x29, #-72]
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_25
; %bb.24:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_http_globals,4,2               ; @http_globals
	.comm	_TRACK_VARS_ENV,8,3             ; @TRACK_VARS_ENV
	.comm	_IS_ARRAY,8,3                   ; @IS_ARRAY
	.comm	_TRACK_VARS_SERVER,8,3          ; @TRACK_VARS_SERVER
	.comm	_environ,8,3                    ; @environ
	.no_dead_strip	_litespeed_php_import_environment_variables
.subsections_via_symbols
