	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_perm_ok                 ## -- Begin function sshkey_perm_ok
	.p2align	4, 0x90
_sshkey_perm_ok:                        ## @sshkey_perm_ok
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	leaq	-40(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_getuid
	cmpq	%rax, %r15
	jne	LBB0_6
## %bb.3:
	movl	-32(%rbp), %r15d
	testb	$63, %r15b
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_error
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_error
	andl	$511, %r15d                     ## imm = 0x1FF
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_error
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	movq	_SSH_ERR_KEY_BAD_PERMISSIONS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_SSH_ERR_SYSTEM_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ## @SSH_ERR_SYSTEM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"

L_.str.1:                               ## @.str.1
	.asciz	"@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @"

L_.str.2:                               ## @.str.2
	.asciz	"Permissions 0%3.3o for '%s' are too open."

L_.str.3:                               ## @.str.3
	.asciz	"It is required that your private key files are NOT accessible by others."

L_.str.4:                               ## @.str.4
	.asciz	"This private key will be ignored."

	.comm	_SSH_ERR_KEY_BAD_PERMISSIONS,4,2 ## @SSH_ERR_KEY_BAD_PERMISSIONS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_perm_ok                 ; -- Begin function sshkey_perm_ok
	.p2align	2
_sshkey_perm_ok:                        ; @sshkey_perm_ok
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	add	x1, sp, #16
	bl	_fstat
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x20, [sp, #16]
	bl	_getuid
	cmp	x20, x0
	b.ne	LBB0_4
; %bb.2:
	ldr	w21, [sp, #24]
	tst	w21, #0x3f
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_error
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	mov	x0, x20
	bl	_error
	and	w8, w21, #0x1ff
	stp	x8, x19, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
Lloh10:
	adrp	x8, _SSH_ERR_KEY_BAD_PERMISSIONS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSH_ERR_KEY_BAD_PERMISSIONS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSH_ERR_SYSTEM_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_SYSTEM_ERROR,4,2       ; @SSH_ERR_SYSTEM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"

l_.str.1:                               ; @.str.1
	.asciz	"@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @"

l_.str.2:                               ; @.str.2
	.asciz	"Permissions 0%3.3o for '%s' are too open."

l_.str.3:                               ; @.str.3
	.asciz	"It is required that your private key files are NOT accessible by others."

l_.str.4:                               ; @.str.4
	.asciz	"This private key will be ignored."

	.comm	_SSH_ERR_KEY_BAD_PERMISSIONS,4,2 ; @SSH_ERR_KEY_BAD_PERMISSIONS
.subsections_via_symbols
