	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sapi_cgi_register_variables
_sapi_cgi_register_variables:           ## @sapi_cgi_register_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_php_import_environment_variables
	movq	_fix_pathinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CGIG
	movq	%rax, %rbx
	movq	_request_info@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_SG
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	movl	$0, %r14d
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r14
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	$9, %esi
	callq	_sapi_cgibin_getenv
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addl	%r14d, %ebx
	movq	%rbx, -56(%rbp)
	leaq	1(%rbx), %rdi
	callq	_emalloc
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	leal	1(%r14), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_memcpy
LBB0_7:
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	addq	%rax, %r12
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%r12, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_9:
	movq	_sapi_module@GOTPCREL(%rip), %rax
	movq	_PARSE_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rcx
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_php_register_variable_safe
LBB0_11:
	movq	-48(%rbp), %rdi
	callq	_efree
	jmp	LBB0_17
LBB0_12:
	testq	%r15, %r15
	je	LBB0_13
## %bb.14:
	movl	(%r14), %edi
	callq	_SG
	movq	%rax, %rdi
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
LBB0_15:
	movq	%rdi, -48(%rbp)
	callq	_strlen
	movq	%rax, -56(%rbp)
	movq	_sapi_module@GOTPCREL(%rip), %rbx
	movq	_PARSE_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rax, %rcx
	callq	*(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rcx
	callq	_php_register_variable_safe
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fix_pathinfo,4,2               ## @fix_pathinfo
	.comm	_request_info,4,2               ## @request_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH_INFO"

	.comm	_sapi_module,8,3                ## @sapi_module
	.comm	_PARSE_SERVER,4,2               ## @PARSE_SERVER
L_.str.1:                               ## @.str.1
	.asciz	"PHP_SELF"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_sapi_cgi_register_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sapi_cgi_register_variables
_sapi_cgi_register_variables:           ; @sapi_cgi_register_variables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	bl	_php_import_environment_variables
Lloh0:
	adrp	x8, _fix_pathinfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fix_pathinfo@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CGIG
	mov	x21, x0
Lloh3:
	adrp	x22, _request_info@GOTPAGE
Lloh4:
	ldr	x22, [x22, _request_info@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_SG
	mov	x20, x0
	cbz	x21, LBB0_3
; %bb.1:
	cbz	x20, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	b	LBB0_6
LBB0_3:
	cbz	x20, LBB0_16
; %bb.4:
	ldr	w0, [x22]
	bl	_SG
	b	LBB0_17
LBB0_5:
	mov	w21, #0
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #9
	bl	_sapi_cgibin_getenv
	mov	x23, x0
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	b	LBB0_9
LBB0_8:
	mov	w24, #0
LBB0_9:
	add	w22, w24, w21
	str	x22, [sp, #8]
	add	x0, x22, #1
	bl	_emalloc
	mov	x25, x0
	str	x0, [sp]
	cbz	x20, LBB0_11
; %bb.10:
	add	w2, w21, #1
	mov	x0, x25
	mov	x1, x20
	bl	_memcpy
LBB0_11:
	cbz	x23, LBB0_13
; %bb.12:
	add	x0, x25, w21, uxtw
	add	w2, w24, #1
	mov	x1, x23
	bl	_memcpy
LBB0_13:
Lloh7:
	adrp	x8, _sapi_module@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sapi_module@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _PARSE_SERVER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PARSE_SERVER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	add	x4, sp, #8
	mov	x3, x22
	blr	x8
	cbz	x0, LBB0_15
; %bb.14:
	ldp	x1, x2, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_php_register_variable_safe
LBB0_15:
	ldr	x0, [sp]
	bl	_efree
	b	LBB0_19
LBB0_16:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_17:
	str	x0, [sp]
	bl	_strlen
	mov	x3, x0
	str	x0, [sp, #8]
Lloh19:
	adrp	x8, _sapi_module@GOTPAGE
Lloh20:
	ldr	x8, [x8, _sapi_module@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _PARSE_SERVER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PARSE_SERVER@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	add	x4, sp, #8
	blr	x8
	cbz	x0, LBB0_19
; %bb.18:
	ldp	x1, x2, [sp]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_php_register_variable_safe
LBB0_19:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_fix_pathinfo,4,2               ; @fix_pathinfo
	.comm	_request_info,4,2               ; @request_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH_INFO"

	.comm	_sapi_module,8,3                ; @sapi_module
	.comm	_PARSE_SERVER,4,2               ; @PARSE_SERVER
l_.str.1:                               ; @.str.1
	.asciz	"PHP_SELF"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_sapi_cgi_register_variables
.subsections_via_symbols
