	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pam_return
_pam_return:                            ## @pam_return
	.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
	leaq	L_.str(%rip), %rsi
	callq	_openpam_get_option
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	je	LBB0_2
## %bb.3:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpb	$0, (%rax)
	je	LBB0_5
LBB0_7:
	movq	_PAM_NUM_ERRORS@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	movq	_pam_err_name@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_9
LBB0_11:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_openpam_log
	jmp	LBB0_12
LBB0_2:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_openpam_log
LBB0_12:
	movq	_PAM_SYSTEM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_11
## %bb.6:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jle	LBB0_13
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error"

	.comm	_PAM_LOG_ERROR,4,2              ## @PAM_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"missing error parameter"

	.comm	_PAM_SYSTEM_ERR,4,2             ## @PAM_SYSTEM_ERR
	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_PAM_NUM_ERRORS,8,3             ## @PAM_NUM_ERRORS
	.comm	_pam_err_name,8,3               ## @pam_err_name
L_.str.2:                               ## @.str.2
	.asciz	"invalid error code '%s'"

	.no_dead_strip	_pam_return
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pam_return
_pam_return:                            ; @pam_return
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_openpam_get_option
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldrb	w8, [x8]
	cbz	w8, LBB0_9
LBB0_4:
Lloh2:
	adrp	x20, _PAM_NUM_ERRORS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PAM_NUM_ERRORS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x21, #0
Lloh4:
	adrp	x22, _pam_err_name@GOTPAGE
Lloh5:
	ldr	x22, [x22, _pam_err_name@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_6
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #0, ge
	b.le	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_openpam_log
Lloh22:
	adrp	x8, _PAM_SYSTEM_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PAM_SYSTEM_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
LBB0_13:
	mov	x0, x21
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error"

	.comm	_PAM_LOG_ERROR,4,2              ; @PAM_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"missing error parameter"

	.comm	_PAM_SYSTEM_ERR,4,2             ; @PAM_SYSTEM_ERR
	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_PAM_NUM_ERRORS,8,3             ; @PAM_NUM_ERRORS
	.comm	_pam_err_name,8,3               ; @pam_err_name
l_.str.2:                               ; @.str.2
	.asciz	"invalid error code '%s'"

	.no_dead_strip	_pam_return
.subsections_via_symbols
