	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_filemode_check_full    ## -- Begin function chassis_filemode_check_full
	.p2align	4, 0x90
_chassis_filemode_check_full:           ## @chassis_filemode_check_full
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-48(%rbp), %eax
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_S_IFREG@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_3
## %bb.4:
	testl	%r15d, %eax
	je	LBB0_5
## %bb.6:
	movq	_G_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_G_FILE_ERROR_PERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_g_set_error
	movl	$1, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_G_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_g_file_error_from_errno
	movl	%eax, %r12d
	movl	(%r13), %edi
	callq	_g_strerror
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%rbx, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_g_set_error
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_G_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_G_FILE_ERROR_INVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_g_set_error
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G_FILE_ERROR,4,2               ## @G_FILE_ERROR
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot stat(%s): %s"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_G_FILE_ERROR_INVAL,4,2         ## @G_FILE_ERROR_INVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s isn't a regular file"

	.comm	_G_FILE_ERROR_PERM,4,2          ## @G_FILE_ERROR_PERM
L_.str.2:                               ## @.str.2
	.asciz	"permissions of %s aren't secure (0660 or stricter required)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_filemode_check_full    ; -- Begin function chassis_filemode_check_full
	.p2align	2
_chassis_filemode_check_full:           ; @chassis_filemode_check_full
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [sp, #8]
Lloh0:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _S_IFREG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _S_IFREG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.2:
	tst	w8, w21
	b.eq	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _G_FILE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _G_FILE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _G_FILE_ERROR_PERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _G_FILE_ERROR_PERM@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_g_set_error
	mov	w0, #1
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _G_FILE_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _G_FILE_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
Lloh17:
	adrp	x23, _errno@GOTPAGE
Lloh18:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_g_file_error_from_errno
	mov	x22, x0
	ldr	w0, [x23]
	bl	_g_strerror
                                        ; kill: def $w0 killed $w0 def $x0
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	str	x0, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _G_FILE_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _G_FILE_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _G_FILE_ERROR_INVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _G_FILE_ERROR_INVAL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x3, l_.str.1@PAGE
Lloh28:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
LBB0_6:
	mov	x4, x19
	bl	_g_set_error
	mov	w0, #-1
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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_G_FILE_ERROR,4,2               ; @G_FILE_ERROR
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot stat(%s): %s"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_G_FILE_ERROR_INVAL,4,2         ; @G_FILE_ERROR_INVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s isn't a regular file"

	.comm	_G_FILE_ERROR_PERM,4,2          ; @G_FILE_ERROR_PERM
l_.str.2:                               ; @.str.2
	.asciz	"permissions of %s aren't secure (0660 or stricter required)"

.subsections_via_symbols
