	.file	"extr_vfs_subr.c_vnode_attr_authorize_internal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%p    DENIED - root execute requires at least one x bit in 0x%x"
	.align 8
.LC1:
	.string	"%p    ALLOWED - caller is superuser"
	.text
	.p2align 4
	.type	vnode_attr_authorize_internal, @function
vnode_attr_authorize_internal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	mov	ecx, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rsi, QWORD PTR [rdi]
	mov	edi, r12d
	mov	QWORD PTR 8[rsp], r8
	mov	r13d, DWORD PTR 80[rsp]
	call	vnode_authorize_checkimmutable@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	test	DWORD PTR KAUTH_VNODE_DELETE[rip], ebx
	je	.L7
	test	r13d, r13d
	je	.L3
.L7:
	mov	edx, DWORD PTR KAUTH_VNODE_LINKTARGET[rip]
	or	edx, DWORD PTR KAUTH_VNODE_CHECKIMMUTABLE[rip]
	not	edx
	and	ebx, edx
	je	.L1
	test	ebp, ebp
	jne	.L8
	mov	edx, DWORD PTR KAUTH_VNODE_DELETE[rip]
	test	edx, ebx
	jne	.L34
.L9:
	mov	eax, edx
	not	eax
	test	eax, ebx
	je	.L1
	mov	rcx, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	and	edx, ebx
	mov	esi, ebx
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	vnode_authorize_simple@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	test	DWORD PTR KAUTH_VNODE_EXECUTE[rip], ebx
	je	.L10
	mov	rdi, QWORD PTR [r14]
	mov	rax, QWORD PTR VREG[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L10
	mov	esi, DWORD PTR va_mode[rip]
	call	VATTR_IS_SUPPORTED@PLT
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR [r14]
	mov	eax, DWORD PTR S_IXUSR[rip]
	or	eax, DWORD PTR S_IXGRP[rip]
	or	eax, DWORD PTR S_IXOTH[rip]
	test	DWORD PTR 8[rdx], eax
	jne	.L10
	mov	edx, DWORD PTR va[rip]
	mov	esi, DWORD PTR vp[rip]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	r15d, DWORD PTR EPERM[rip]
	call	KAUTH_DEBUG@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR TRUE[rip]
	mov	rbx, QWORD PTR 8[rsp]
	lea	rdi, .LC1[rip]
	mov	DWORD PTR [rbx], eax
	mov	esi, DWORD PTR vp[rip]
	xor	eax, eax
	call	KAUTH_DEBUG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR 8[r14]
	mov	edx, DWORD PTR KAUTH_VNODE_DELETE_CHILD[rip]
	xor	ecx, ecx
	mov	edi, r12d
	call	vnode_authorize_checkimmutable@PLT
	test	eax, eax
	je	.L7
.L12:
.L2:
	endbr64
	mov	r15d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	esi, r13d
	mov	rdi, r14
	call	vnode_authorize_delete@PLT
	test	eax, eax
	jne	.L12
	mov	edx, DWORD PTR KAUTH_VNODE_DELETE[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	vnode_attr_authorize_internal, .-vnode_attr_authorize_internal
	.comm	vp,4,4
	.comm	va_mode,4,4
	.comm	va,4,4
	.comm	VREG,8,8
	.comm	TRUE,4,4
	.comm	S_IXUSR,4,4
	.comm	S_IXOTH,4,4
	.comm	S_IXGRP,4,4
	.comm	KAUTH_VNODE_LINKTARGET,4,4
	.comm	KAUTH_VNODE_EXECUTE,4,4
	.comm	KAUTH_VNODE_DELETE_CHILD,4,4
	.comm	KAUTH_VNODE_DELETE,4,4
	.comm	KAUTH_VNODE_CHECKIMMUTABLE,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vfs_subr.c_vnode_attr_authorize_internal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%p    DENIED - root execute requires at least one x"
	.ascii	" bit in 0x%x\000"
	.align	2
.LC1:
	.ascii	"%p    ALLOWED - caller is superuser\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vnode_attr_authorize_internal, %function
vnode_attr_authorize_internal:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r1
	sub	sp, sp, #4
	ldr	r1, [r0]
	mov	r6, r0
	mov	r7, r3
	mov	r0, fp
	ldr	r3, [sp, #44]
	mov	r5, r2
	ldr	r10, [sp, #40]
	ldr	r8, [sp, #48]
	bl	vnode_authorize_checkimmutable
	subs	r4, r0, #0
	bne	.L1
	ldr	r9, .L31
	ldr	r3, [r9]
	tst	r5, r3
	movne	r3, #1
	moveq	r3, #0
	cmp	r8, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L3
.L6:
	ldr	r2, .L31+4
	ldr	r3, .L31+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r2, r2, r3
	bics	r5, r5, r2
	beq	.L1
	cmp	r7, #0
	bne	.L7
	ldr	r2, [r9]
	tst	r2, r5
	bne	.L30
.L8:
	bics	r3, r5, r2
	beq	.L1
	mov	r3, r10
	mov	r1, r5
	mov	r0, r6
	and	r2, r2, r5
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	vnode_authorize_simple
.L7:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L9
	ldr	r0, [r6]
	ldr	r3, .L31+16
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
	ldr	r3, .L31+20
	ldr	r1, [r3]
	bl	VATTR_IS_SUPPORTED
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L31+24
	ldr	r0, .L31+28
	ldr	r1, .L31+32
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2, #4]
	orr	r3, r3, r0
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L9
	ldr	r2, .L31+36
	ldr	r1, .L31+40
	ldr	r3, .L31+44
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L31+48
	ldr	r4, [r3]
	bl	KAUTH_DEBUG
.L1:
	mov	r0, r4
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r2, .L31+52
	ldr	r3, .L31+40
	ldr	r2, [r2]
	ldr	r0, .L31+56
	str	r2, [r10]
	ldr	r1, [r3]
	bl	KAUTH_DEBUG
	mov	r0, r4
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	mov	r1, r8
	mov	r0, r6
	bl	vnode_authorize_delete
	cmp	r0, #0
	bne	.L11
	ldr	r2, [r9]
	b	.L8
.L3:
	ldr	r3, .L31+60
	mov	r0, fp
	ldr	r2, [r3]
	ldr	r1, [r6, #4]
	mov	r3, r4
	bl	vnode_authorize_checkimmutable
	cmp	r0, #0
	beq	.L6
.L11:
.L2:
	mov	r4, r0
	b	.L1
.L32:
	.align	2
.L31:
	.word	KAUTH_VNODE_DELETE
	.word	KAUTH_VNODE_LINKTARGET
	.word	KAUTH_VNODE_CHECKIMMUTABLE
	.word	KAUTH_VNODE_EXECUTE
	.word	VREG
	.word	va_mode
	.word	S_IXUSR
	.word	S_IXGRP
	.word	S_IXOTH
	.word	va
	.word	vp
	.word	EPERM
	.word	.LC0
	.word	TRUE
	.word	.LC1
	.word	KAUTH_VNODE_DELETE_CHILD
	.size	vnode_attr_authorize_internal, .-vnode_attr_authorize_internal
	.comm	vp,4,4
	.comm	va_mode,4,4
	.comm	va,4,4
	.comm	VREG,4,4
	.comm	TRUE,4,4
	.comm	S_IXUSR,4,4
	.comm	S_IXOTH,4,4
	.comm	S_IXGRP,4,4
	.comm	KAUTH_VNODE_LINKTARGET,4,4
	.comm	KAUTH_VNODE_EXECUTE,4,4
	.comm	KAUTH_VNODE_DELETE_CHILD,4,4
	.comm	KAUTH_VNODE_DELETE,4,4
	.comm	KAUTH_VNODE_CHECKIMMUTABLE,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
