	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __findenv
___findenv:                             ## @__findenv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	_environ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_14
## %bb.2:
	movslq	(%rdx), %rcx
	movq	(%r8,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	leaq	(%r8,%rcx,8), %r10
	leal	-1(%rsi), %r9d
	incq	%r9
	movl	%esi, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$61, (%rax)
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r10), %rax
	addq	$8, %r10
	testq	%rax, %rax
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%esi, %esi
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r9), %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rax,%rbx), %ecx
	testb	%cl, %cl
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpb	(%rdi,%rbx), %cl
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	cmpl	%ebx, %r14d
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r11, %rax
	jmp	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	incq	%rax
	subq	%r8, %r10
	shrq	$3, %r10
	movl	%r10d, (%rdx)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___findenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __findenv
___findenv:                             ; @__findenv
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	cbz	x0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, _environ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _environ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x9, LBB0_12
; %bb.2:
	ldrsw	x8, [x2]
	add	x10, x9, x8, lsl #3
	ldr	x8, [x10]
	cbz	x8, LBB0_12
; %bb.3:
	sub	w11, w1, #1
	add	x11, x11, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w12, [x8]
	cmp	w12, #61
	b.eq	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x10, #8]!
	cbz	x8, LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cbz	w1, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x8, x11
	mov	x13, x0
	mov	x14, x1
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w15, [x8]
	cbz	w15, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w16, [x13]
	cmp	w15, w16
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, #1
	add	x13, x13, #1
	subs	w14, w14, #1
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x12
	b	LBB0_4
LBB0_12:
	mov	x0, x8
	ret
LBB0_13:
	add	x0, x8, #1
	sub	x9, x10, x9
	lsr	x9, x9, #3
	str	w9, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___findenv
.subsections_via_symbols
