	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_putenv                     ## -- Begin function pam_putenv
	.p2align	4, 0x90
_pam_putenv:                            ## @pam_putenv
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_ENTER
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PAM_SYSTEM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_2:
	subl	%r14d, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_openpam_findenv
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_5:
	movq	(%r15), %rax
	movl	%ebx, %ebx
	movq	(%rax,%rbx,8), %rdi
	callq	_FREE
	movq	(%r15), %rax
	movq	%r12, (%rax,%rbx,8)
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_6:
	movq	8(%r15), %rbx
	cmpq	16(%r15), %rbx
	jne	LBB0_7
## %bb.8:
	addq	%rbx, %rbx
	incq	%rbx
	movq	(%r15), %rdi
	leal	(,%rbx,8), %esi
	callq	_realloc
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_10:
	movq	%r12, (%r15)
	movq	%rbx, 16(%r15)
	movq	8(%r15), %rbx
	jmp	LBB0_11
LBB0_7:
	movq	(%r15), %r12
LBB0_11:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, (%r12,%rbx,8)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	movq	8(%r15), %rbx
LBB0_13:
	incq	%rbx
	movq	%rbx, 8(%r15)
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RETURNC                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_PAM_SYSTEM_ERR,4,2             ## @PAM_SYSTEM_ERR
	.comm	_PAM_BUF_ERR,4,2                ## @PAM_BUF_ERR
	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_putenv                     ; -- Begin function pam_putenv
	.p2align	2
_pam_putenv:                            ; @pam_putenv
	.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
	bl	_ENTER
	mov	x0, x20
	mov	w1, #61
	bl	_strchr
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _PAM_SYSTEM_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAM_SYSTEM_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_RETURNC
LBB0_2:
	sub	w2, w21, w20
	mov	x0, x19
	mov	x1, x20
	bl	_openpam_findenv
Lloh9:
	adrp	x23, _PAM_SUCCESS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PAM_SUCCESS@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	bl	_strdup
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_RETURNC
LBB0_5:
	ldr	x8, [x19]
	mov	w9, w22
	lsl	x22, x9, #3
	ldr	x0, [x8, x22]
	bl	_FREE
	ldr	x8, [x19]
	str	x21, [x8, x22]
	ldr	w0, [x23]
	bl	_RETURNC
LBB0_6:
	ldp	x22, x8, [x19, #8]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.7:
	mov	w24, #1
	bfi	x24, x22, #1, #63
	ldr	x0, [x19]
	lsl	w1, w24, #3
	bl	_realloc
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_RETURNC
LBB0_9:
	str	x21, [x19]
	str	x24, [x19, #16]
	ldr	x22, [x19, #8]
	b	LBB0_11
LBB0_10:
	ldr	x21, [x19]
LBB0_11:
	mov	x0, x20
	bl	_strdup
	str	x0, [x21, x22, lsl #3]
	cbnz	x0, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_RETURNC
	ldr	x22, [x19, #8]
LBB0_13:
	add	x8, x22, #1
	str	x8, [x19, #8]
	ldr	w0, [x23]
	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	_RETURNC
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_PAM_SYSTEM_ERR,4,2             ; @PAM_SYSTEM_ERR
	.comm	_PAM_BUF_ERR,4,2                ; @PAM_BUF_ERR
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
.subsections_via_symbols
