	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pam_set_item                   ## -- Begin function pam_set_item
	.p2align	4, 0x90
_pam_set_item:                          ## @pam_set_item
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_ENTERI
	movq	(%r15), %r12
	movslq	%ebx, %rbx
	leal	-128(%rbx), %eax
	cmpl	$12, %eax
	ja	LBB0_13
## %bb.1:
	movl	$7095, %ecx                     ## imm = 0x1BB7
	btl	%eax, %ecx
	jae	LBB0_2
LBB0_6:
	movq	(%r12,%rbx,8), %rdi
LBB0_7:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	callq	_strlen
	incl	%eax
	movslq	%eax, %r13
	testq	%r14, %r14
	je	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %r15
	jmp	LBB0_14
LBB0_8:
	xorl	%r13d, %r13d
	testq	%r14, %r14
	jne	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_2:
	movl	$4, %r15d
	movl	$1088, %ecx                     ## imm = 0x440
	btl	%eax, %ecx
	movl	$4, %r13d
	jb	LBB0_14
## %bb.3:
	movq	(%r12,%rbx,8), %rdi
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movq	_PAM_BAD_ITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	jmp	LBB0_6
LBB0_13:
	movq	_PAM_BAD_ITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
LBB0_14:
	movq	(%r12,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	movl	$208, %esi
	movq	%r13, %rdx
	callq	_memset
	movq	(%r12,%rbx,8), %rdi
	callq	_FREE
LBB0_16:
	testq	%r14, %r14
	je	LBB0_20
## %bb.17:
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, (%r12,%rbx,8)
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	_PAM_BUF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
	movq	(%r12,%rbx,8), %rax
LBB0_19:
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	jmp	LBB0_21
LBB0_20:
	movq	$0, (%r12,%rbx,8)
LBB0_21:
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RETURNC                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_BAD_ITEM,4,2               ## @PAM_BAD_ITEM
	.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_set_item                   ; -- Begin function pam_set_item
	.p2align	2
_pam_set_item:                          ; @pam_set_item
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_ENTERI
	ldr	x22, [x21]
	sxtw	x23, w20
	sub	w8, w20, #128
	cmp	w8, #12
	b.hi	LBB0_20
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #7095
	tst	w8, w9
	b.eq	LBB0_8
LBB0_2:
	ldr	x0, [x22, x23, lsl #3]
LBB0_3:
	cbz	x0, LBB0_6
; %bb.4:
	bl	_strlen
	add	w8, w0, #1
	sxtw	x21, w8
	cbz	x19, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_strlen
	add	w8, w0, #1
	sxtw	x20, w8
	ldr	x0, [x22, x23, lsl #3]
	cbnz	x0, LBB0_10
	b	LBB0_11
LBB0_6:
	mov	x21, #0
	cbnz	x19, LBB0_5
LBB0_7:
	mov	x20, #0
	ldr	x0, [x22, x23, lsl #3]
	cbnz	x0, LBB0_10
	b	LBB0_11
LBB0_8:
	mov	w9, #1088
	tst	w8, w9
	b.eq	LBB0_17
; %bb.9:
	mov	w20, #4
	mov	w21, #4
	ldr	x0, [x22, x23, lsl #3]
	cbz	x0, LBB0_11
LBB0_10:
	mov	w1, #208
	mov	x2, x21
	bl	_memset
	ldr	x0, [x22, x23, lsl #3]
	bl	_FREE
LBB0_11:
	cbz	x19, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_malloc
	str	x0, [x22, x23, lsl #3]
	cbnz	x0, LBB0_14
; %bb.13:
Lloh0:
	adrp	x8, _PAM_BUF_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAM_BUF_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RETURNC
	ldr	x0, [x22, x23, lsl #3]
LBB0_14:
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	b	LBB0_16
LBB0_15:
	str	xzr, [x22, x23, lsl #3]
LBB0_16:
Lloh3:
	adrp	x8, _PAM_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAM_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
LBB0_17:
	ldr	x0, [x22, x23, lsl #3]
	cbz	x19, LBB0_3
; %bb.18:
	cbz	x0, LBB0_3
; %bb.19:
Lloh6:
	adrp	x8, _PAM_BAD_ITEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAM_BAD_ITEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_RETURNC
	b	LBB0_2
LBB0_20:
Lloh9:
	adrp	x8, _PAM_BAD_ITEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAM_BAD_ITEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_RETURNC
	mov	x20, #0
	mov	x21, #0
	ldr	x0, [x22, x23, lsl #3]
	cbnz	x0, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_BAD_ITEM,4,2               ; @PAM_BAD_ITEM
	.comm	_PAM_BUF_ERR,4,2                ; @PAM_BUF_ERR
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
.subsections_via_symbols
