	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openpam_load_chain
_openpam_load_chain:                    ## @openpam_load_chain
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_pam_facility_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %rdi
	callq	_ENTERS
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_pam_d_style@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_pam_conf_style@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_openpam_load_file
	movl	%eax, %edi
	callq	_RETURNN
LBB0_6:
	movq	_openpam_policy_path@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.7:
	addq	$8, %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %edi
	callq	_RETURNN
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rsi
	addq	$8, %r13
	testq	%rsi, %rsi
	movq	%rbx, %r15
	je	LBB0_21
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%rax, %r14
	cmpq	%rbx, %rax
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %edi
	callq	_RETURNN
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$47, -1(%r14,%r12)
	movq	_pam_conf_style@GOTPCREL(%rip), %rcx
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_strlcat
	movq	_pam_d_style@GOTPCREL(%rip), %rcx
	cmpq	%rbx, %rax
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %edi
	callq	_RETURNN
	movq	_pam_d_style@GOTPCREL(%rip), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rbx
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_openpam_load_file
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %edi
	callq	_RETURNN
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$-1, %r15d
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_pam_d_style@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_19
	jmp	LBB0_20
LBB0_21:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %edi
	callq	_RETURNN
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_pam_facility_name,8,3          ## @pam_facility_name
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	".conf"

	.comm	_pam_conf_style,8,3             ## @pam_conf_style
	.comm	_pam_d_style,8,3                ## @pam_d_style
	.comm	_openpam_policy_path,8,3        ## @openpam_policy_path
	.comm	_ENAMETOOLONG,8,3               ## @ENAMETOOLONG
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.no_dead_strip	_openpam_load_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openpam_load_chain
_openpam_load_chain:                    ; @openpam_load_chain
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x8, _pam_facility_name@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pam_facility_name@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x0, [x8, x2, lsl #3]
	bl	_ENTERS
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x20
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _pam_d_style@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pam_d_style@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _pam_conf_style@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pam_conf_style@GOTPAGEOFF]
LBB0_5:
	ldr	x4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x20
	bl	_openpam_load_file
	bl	_RETURNN
LBB0_6:
Lloh17:
	adrp	x8, _openpam_policy_path@GOTPAGE
Lloh18:
	ldr	x8, [x8, _openpam_policy_path@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x1, [x8]
Lloh20:
	adrp	x27, _errno@GOTPAGE
Lloh21:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	cbz	x1, LBB0_21
; %bb.7:
Lloh22:
	adrp	x28, _pam_d_style@GOTPAGE
Lloh23:
	ldr	x28, [x28, _pam_d_style@GOTPAGEOFF]
	add	x26, x8, #8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_RETURNN
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x26], #8
	cbz	x1, LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x2, x22
	bl	_strlcpy
	mov	x24, x0
	cmp	x0, x22
	b.lo	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh24:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x27]
	mov	w0, #-1
	bl	_RETURNN
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x24, x23
	ldurb	w9, [x8, #-1]
Lloh27:
	adrp	x8, _pam_conf_style@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pam_conf_style@GOTPAGEOFF]
	cmp	w9, #47
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_strlcat
	mov	x8, x28
	cmp	x0, x22
	b.lo	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh29:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x27]
	mov	w0, #-1
	bl	_RETURNN
	mov	x8, x28
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x25, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, x25
	bl	_openpam_load_file
	mov	x24, x0
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_RETURNN
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	w24, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	cmn	w24, #1
	b.ne	LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x27]
Lloh32:
	adrp	x9, _ENOENT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
	b	LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x28]
	cmp	x25, x8
	b.eq	LBB0_8
	b	LBB0_9
LBB0_21:
Lloh35:
	adrp	x8, _ENOENT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x27]
	mov	w0, #-1
	bl	_RETURNN
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_pam_facility_name,8,3          ; @pam_facility_name
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	".conf"

	.comm	_pam_conf_style,8,3             ; @pam_conf_style
	.comm	_pam_d_style,8,3                ; @pam_d_style
	.comm	_openpam_policy_path,8,3        ; @openpam_policy_path
	.comm	_ENAMETOOLONG,8,3               ; @ENAMETOOLONG
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.no_dead_strip	_openpam_load_chain
.subsections_via_symbols
