	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpam_configure              ## -- Begin function openpam_configure
	.p2align	4, 0x90
_openpam_configure:                     ## @openpam_configure
	.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, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ENTERS
	movq	%rbx, %rdi
	callq	_valid_service_name
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_openpam_log
	movq	_PAM_SYSTEM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_2:
	movq	_PAM_FACILITY_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_openpam_load_chain
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
LBB0_4:
	movq	_PAM_NUM_FACILITIES@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.5:
	xorl	%ebx, %ebx
	movq	_FALLBACK_TO_OTHER@GOTPCREL(%rip), %r12
	movq	_PAM_OTHER@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jae	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	callq	_OPENPAM_FEATURE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_openpam_load_chain
	testq	%rax, %rax
	jns	LBB0_9
	jmp	LBB0_11
LBB0_10:
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RETURNC
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	(%r14), %rdi
	callq	_openpam_clear_chains
	movl	%ebx, (%r15)
	movq	_PAM_SYSTEM_ERR@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_LOG_ERROR,4,2              ## @PAM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid service name"

	.comm	_PAM_SYSTEM_ERR,4,2             ## @PAM_SYSTEM_ERR
	.comm	_PAM_FACILITY_ANY,8,3           ## @PAM_FACILITY_ANY
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PAM_NUM_FACILITIES,8,3         ## @PAM_NUM_FACILITIES
	.comm	_FALLBACK_TO_OTHER,4,2          ## @FALLBACK_TO_OTHER
	.comm	_PAM_OTHER,8,3                  ## @PAM_OTHER
	.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	_openpam_configure              ; -- Begin function openpam_configure
	.p2align	2
_openpam_configure:                     ; @openpam_configure
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ENTERS
	mov	x0, x20
	bl	_valid_service_name
Lloh0:
	adrp	x21, _PAM_SYSTEM_ERR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAM_SYSTEM_ERR@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_openpam_log
	ldr	w0, [x21]
	bl	_RETURNC
LBB0_2:
Lloh7:
	adrp	x8, _PAM_FACILITY_ANY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAM_FACILITY_ANY@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_openpam_load_chain
Lloh10:
	adrp	x22, _errno@GOTPAGE
Lloh11:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _ENOENT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
LBB0_4:
Lloh15:
	adrp	x23, _PAM_NUM_FACILITIES@GOTPAGE
Lloh16:
	ldr	x23, [x23, _PAM_NUM_FACILITIES@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.5:
	mov	x20, #0
Lloh17:
	adrp	x24, _FALLBACK_TO_OTHER@GOTPAGE
Lloh18:
	ldr	x24, [x24, _FALLBACK_TO_OTHER@GOTPAGEOFF]
Lloh19:
	adrp	x25, _PAM_OTHER@GOTPAGE
Lloh20:
	ldr	x25, [x25, _PAM_OTHER@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	ldr	x8, [x23]
	cmp	x20, x8
	b.hs	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, x20, lsl #3]
	cbnz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x24]
	bl	_OPENPAM_FEATURE
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_openpam_load_chain
	tbz	x0, #63, LBB0_6
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _PAM_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PAM_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_RETURNC
LBB0_11:
	ldr	w20, [x22]
	ldr	x0, [x19]
	bl	_openpam_clear_chains
	str	w20, [x22]
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_RETURNC
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_LOG_ERROR,4,2              ; @PAM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid service name"

	.comm	_PAM_SYSTEM_ERR,4,2             ; @PAM_SYSTEM_ERR
	.comm	_PAM_FACILITY_ANY,8,3           ; @PAM_FACILITY_ANY
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PAM_NUM_FACILITIES,8,3         ; @PAM_NUM_FACILITIES
	.comm	_FALLBACK_TO_OTHER,4,2          ; @FALLBACK_TO_OTHER
	.comm	_PAM_OTHER,8,3                  ; @PAM_OTHER
	.comm	_PAM_SUCCESS,4,2                ; @PAM_SUCCESS
.subsections_via_symbols
