	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_getenv                     ## -- Begin function pam_getenv
	.p2align	4, 0x90
_pam_getenv:                            ## @pam_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_ENTERS
	movl	$4, %r12d
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %r13
	movq	_errno@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %eax
	movl	%eax, (%r14)
	xorl	%edi, %edi
	callq	_RETURNS
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	addq	$4, %r12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rbx), %eax
	cmpb	$61, %al
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_openpam_findenv
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_RETURNS
LBB0_5:
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	addq	(%rax,%rcx,8), %r12
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RETURNS                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_getenv                     ; -- Begin function pam_getenv
	.p2align	2
_pam_getenv:                            ; @pam_getenv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ENTERS
	mov	x21, #0
	mov	w22, #4
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _errno@GOTPAGE
Lloh3:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	str	w8, [x24]
	mov	x0, #0
	bl	_RETURNS
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x22, x22, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x21]
	cmp	w8, #61
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w8, LBB0_2
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_openpam_findenv
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.6:
	mov	x0, #0
	bl	_RETURNS
LBB0_7:
	ldr	x8, [x19]
	ldr	x8, [x8, w20, sxtw #3]
	add	x0, x8, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RETURNS
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
