	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setclassenvironment            ## -- Begin function setclassenvironment
	.p2align	4, 0x90
_setclassenvironment:                   ## @setclassenvironment
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_envars@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_pathvars@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r12
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	%r13, %r14
	movq	(%r13), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	8(%r13), %rdi
	callq	_strlen
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rax
	movl	%r15d, %ebx
	movslq	%r15d, %rcx
	cmpb	$47, -1(%rcx,%rax)
	setne	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_4:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.9:
	movzbl	-44(%rbp), %r14d                ## 1-byte Folded Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r15
	movq	(%r12), %rdi
	movl	8(%r12), %edx
	movq	%rax, %rsi
	callq	_setenv
	movq	%r15, %rdi
	callq	_free
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	56(%r12), %rsi
	addq	$32, %r12
	testq	%rsi, %rsi
	je	LBB0_18
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_login_getpath
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_login_getcapstr
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_substvar
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r12), %rdi
	xorl	%edx, %edx
	callq	_setenv
	jmp	LBB0_17
LBB0_18:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%ebx, %r12d
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_login_getcaplist
	testq	%rax, %rax
	je	LBB0_26
## %bb.20:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.21:
	addq	$8, %rbx
	movzbl	-44(%rbp), %r14d                ## 1-byte Folded Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_26
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_substvar
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%rax, %r15
	movq	-8(%rbx), %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_setenv
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_pathvars,8,3                   ## @pathvars
	.comm	_envars,8,3                     ## @envars
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setenv"

L_.str.1:                               ## @.str.1
	.asciz	","

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setclassenvironment            ; -- Begin function setclassenvironment
	.p2align	2
_setclassenvironment:                   ; @setclassenvironment
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x24, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _pathvars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pathvars@GOTPAGEOFF]
Lloh2:
	adrp	x9, _envars@GOTPAGE
Lloh3:
	ldr	x9, [x9, _envars@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	x26, [x8]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_strlen
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_strlen
	mov	x21, x0
	cbz	w20, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	add	x8, x8, w20, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	cset	w22, ne
	ldr	x1, [x26, #24]
	cbnz	x1, LBB0_9
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	mov	w20, #0
LBB0_4:
	mov	w22, #0
	ldr	x1, [x26, #24]
	cbnz	x1, LBB0_9
LBB0_5:
	cbz	w24, LBB0_15
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, x0
	ldr	x0, [x26]
	ldr	w2, [x26, #8]
	mov	x1, x25
	bl	_setenv
	mov	x0, x25
	bl	_free
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x26, #56]
	add	x26, x26, #32
	cbz	x1, LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x2, #0
	cbz	w24, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_login_getpath
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x3, #0
	bl	_login_getcapstr
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_substvar
	cbnz	x0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x26, #16]
	cbz	x1, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x26]
	mov	w2, #0
	bl	_setenv
	b	LBB0_8
LBB0_15:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_login_getcaplist
	cbz	x0, LBB0_6
; %bb.16:
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_6
; %bb.17:
	add	x24, x8, #8
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x24], #8
	cbz	x0, LBB0_6
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	strb	wzr, [x0], #1
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	bl	_substvar
	cbz	x0, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x23, x0
	ldur	x0, [x24, #-8]
	mov	x1, x23
	mov	w2, #1
	bl	_setenv
	mov	x0, x23
	bl	_free
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pathvars,8,3                   ; @pathvars
	.comm	_envars,8,3                     ; @envars
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setenv"

l_.str.1:                               ; @.str.1
	.asciz	","

.subsections_via_symbols
