	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__secure_path                   ## -- Begin function _secure_path
	.p2align	4, 0x90
__secure_path:                          ## @_secure_path
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-56(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_13
## %bb.1:
	movl	-56(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_S_IWOTH@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	movl	$-2, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.14:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_syslog
	movl	$-1, %eax
LBB0_16:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$-1, %r14d
	je	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rax
	cmpq	%r14, %rax
	je	LBB0_9
## %bb.7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	testq	%r14, %r14
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	jmp	LBB0_15
LBB0_9:
	xorl	%eax, %eax
	cmpl	$-1, %r15d
	je	LBB0_16
## %bb.10:
	cmpq	%r15, -40(%rbp)
	je	LBB0_16
## %bb.11:
	movq	_S_IWGRP@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_16
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot stat %s: %m"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s is not a regular file"

	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
L_.str.2:                               ## @.str.2
	.asciz	"%s: %s is world writable"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s is not owned by root"

L_.str.4:                               ## @.str.4
	.asciz	"%s: %s is not owned by uid %d"

	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
L_.str.5:                               ## @.str.5
	.asciz	"%s: %s is group writeable by non-authorised groups"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.6:                               ## @.str.6
	.asciz	"_secure_path"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__secure_path                   ; -- Begin function _secure_path
	.p2align	2
__secure_path:                          ; @_secure_path
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_lstat
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w22, [sp, #8]
	mov	x0, x22
	bl	_S_ISREG
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _S_IWOTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IWOTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_4:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ENOENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #-2
	b	LBB0_17
LBB0_6:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_7:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_8:
	cmn	w19, #1
	b.eq	LBB0_12
; %bb.9:
	ldr	x8, [sp, #16]
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.10:
	cbz	x8, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, l_.str.4@PAGE
Lloh16:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh17:
	adrp	x9, l_.str.3@PAGE
Lloh18:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x19, #0
	csel	x1, x9, x8, eq
	b	LBB0_16
LBB0_12:
	mov	w0, #0
	cmn	w21, #1
	b.eq	LBB0_17
; %bb.13:
	ldr	x8, [sp, #24]
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.14:
Lloh19:
	adrp	x8, _S_IWGRP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_IWGRP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.15:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
Lloh24:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x2, l_.str.6@PAGE
Lloh28:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_syslog
	mov	w0, #-1
LBB0_17:
	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
LBB0_18:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot stat %s: %m"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s is not a regular file"

	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
l_.str.2:                               ; @.str.2
	.asciz	"%s: %s is world writable"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s is not owned by root"

l_.str.4:                               ; @.str.4
	.asciz	"%s: %s is not owned by uid %d"

	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
l_.str.5:                               ; @.str.5
	.asciz	"%s: %s is group writeable by non-authorised groups"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.6:                               ; @.str.6
	.asciz	"_secure_path"

.subsections_via_symbols
