	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_rq_getenv
_smb_rq_getenv:                         ## @smb_rq_getenv
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movl	(%rdi), %esi
	cmpl	$129, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_CPTOVC
	movq	%rax, -40(%rbp)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	testq	%r12, %r12
	jne	LBB0_11
	jmp	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_CPTOSS
	movq	%rax, %r15
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_smb_rq_getenv
	testq	%r12, %r12
	jne	LBB0_11
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	_SMBERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_12
LBB0_11:
	movq	-40(%rbp), %rcx
	movq	%rcx, (%r12)
LBB0_12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	movq	%r15, (%r14)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_SMBERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%r12, %r12
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"zombie VC %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"zombie share %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid layer %d passed\n"

	.no_dead_strip	_smb_rq_getenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_rq_getenv
_smb_rq_getenv:                         ; @smb_rq_getenv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	ldr	w1, [x0]
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_CPTOVC
	str	x0, [sp, #8]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x21, #0
	mov	w0, #0
	b	LBB0_11
LBB0_4:
	mov	x0, x22
	bl	_CPTOSS
	mov	x21, x0
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_9
; %bb.5:
	add	x1, sp, #8
	mov	x2, #0
	bl	_smb_rq_getenv
	b	LBB0_11
LBB0_6:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w1, [x0]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	bl	_SMBERROR
	mov	x21, #0
	b	LBB0_10
LBB0_9:
	ldr	w1, [x21]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SMBERROR
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	str	x21, [x19]
LBB0_15:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"zombie VC %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"zombie share %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid layer %d passed\n"

	.no_dead_strip	_smb_rq_getenv
.subsections_via_symbols
