	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pam_conv
_pam_conv:                              ## @pam_conv
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %edi
	jne	LBB0_5
## %bb.1:
	movq	%rcx, %r14
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	_PAM_PROMPT_ECHO_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%rdx, %rbx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, (%r15)
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	cmpq	$0, (%rax)
	jne	LBB0_4
LBB0_5:
	movq	_PAM_CONV_ERR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_PROMPT_ECHO_OFF,8,3        ## @PAM_PROMPT_ECHO_OFF
	.comm	_PAM_CONV_ERR,4,2               ## @PAM_CONV_ERR
	.comm	_PAM_SUCCESS,4,2                ## @PAM_SUCCESS
	.no_dead_strip	_pam_conv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pam_conv
_pam_conv:                              ; @pam_conv
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x1]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PAM_PROMPT_ECHO_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAM_PROMPT_ECHO_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x20, x3
	mov	x19, x2
	mov	w0, #16
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_strdup
	str	x0, [x21]
	ldr	x8, [x19]
	str	xzr, [x8, #8]
Lloh3:
	adrp	x9, _PAM_SUCCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAM_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _PAM_CONV_ERR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PAM_CONV_ERR@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _PAM_CONV_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAM_CONV_ERR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_PROMPT_ECHO_OFF,8,3        ; @PAM_PROMPT_ECHO_OFF
	.comm	_PAM_CONV_ERR,4,2               ; @PAM_CONV_ERR
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
	.no_dead_strip	_pam_conv
.subsections_via_symbols
