	.file	"extr_io.c_io_set_file_perms.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't change perms of file '%s'"
	.text
	.p2align 4
	.type	io_set_file_perms, @function
io_set_file_perms:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rsi, rbp
	mov	rbx, r9
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rdx
	mov	r14, QWORD PTR 144[rsp]
	lea	rdi, 40[rsp]
	mov	rdx, r14
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	cstring_from_utf8@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	rsi, QWORD PTR 40[rsp]
	lea	rdi, 48[rsp]
	mov	rcx, r14
	mov	edx, DWORD PTR APR_FINFO_PROT[rip]
	or	edx, DWORD PTR APR_FINFO_LINK[rip]
	call	apr_stat@PLT
	test	rax, rax
	je	.L2
	mov	r8, rax
	test	rbx, rbx
	jne	.L83
.L3:
	cmp	QWORD PTR APR_ENOTIMPL[rip], r8
	mov	QWORD PTR 8[rsp], r8
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
	je	.L1
	mov	rsi, r14
	mov	rdi, rbp
	call	svn_dirent_local_style@PLT
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	_@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	edx, r12d
	mov	esi, eax
	mov	rdi, r8
	call	svn_error_wrap_apr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR APR_LNK[rip]
	cmp	QWORD PTR 48[rsp], rax
	je	.L81
	mov	eax, DWORD PTR 56[rsp]
	test	r12, r12
	je	.L9
	cmp	QWORD PTR 8[rsp], 0
	mov	edx, DWORD PTR APR_UREAD[rip]
	je	.L10
	mov	r8d, edx
	or	r8d, eax
	or	r8d, DWORD PTR APR_UWRITE[rip]
.L11:
	test	r13, r13
	jne	.L27
.L14:
	cmp	r8d, eax
	je	.L81
	mov	rdi, QWORD PTR 40[rsp]
	mov	esi, r8d
	mov	DWORD PTR 16[rsp], r8d
	call	apr_file_perms_set@PLT
	mov	r8d, DWORD PTR 16[rsp]
	test	rax, rax
	je	.L81
	mov	rdi, rax
	mov	DWORD PTR 28[rsp], r8d
	mov	QWORD PTR 16[rsp], rax
	call	APR_STATUS_IS_EPERM@PLT
	mov	r9, QWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 28[rsp]
	test	rax, rax
	jne	.L84
.L22:
	test	rbx, rbx
	jne	.L85
.L23:
	cmp	QWORD PTR APR_ENOTIMPL[rip], r9
	je	.L86
.L24:
	mov	rsi, r14
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], r9
	call	svn_dirent_local_style@PLT
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	_@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	edx, r12d
	mov	esi, eax
	mov	rdi, r9
	call	svn_error_wrap_apr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L84:
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], r8d
	call	reown_file@PLT
	mov	edi, eax
	call	SVN_ERR@PLT
	mov	r8d, DWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	mov	esi, r8d
	call	apr_file_perms_set@PLT
	mov	r9, rax
	test	rax, rax
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L81:
	mov	rax, QWORD PTR SVN_NO_ERROR[rip]
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L87
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L9:
	.cfi_restore_state
	test	r13, r13
	je	.L81
	mov	edx, DWORD PTR APR_UREAD[rip]
	mov	r8d, eax
.L27:
	and	edx, eax
	test	r15, r15
	je	.L15
	test	edx, edx
	je	.L16
	or	r8d, DWORD PTR APR_UEXECUTE[rip]
.L16:
	test	DWORD PTR APR_GREAD[rip], eax
	je	.L17
	or	r8d, DWORD PTR APR_GEXECUTE[rip]
.L17:
	test	DWORD PTR APR_WREAD[rip], eax
	je	.L14
	or	r8d, DWORD PTR APR_WEXECUTE[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L83:
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	APR_STATUS_IS_ENOENT@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L81
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	SVN__APR_STATUS_IS_ENOTDIR@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L3
	jmp	.L81
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8d, eax
	test	edx, eax
	je	.L12
	mov	r8d, DWORD PTR APR_UWRITE[rip]
	not	r8d
	and	r8d, eax
.L12:
	test	DWORD PTR APR_GREAD[rip], eax
	je	.L13
	mov	ecx, DWORD PTR APR_GWRITE[rip]
	not	ecx
	and	r8d, ecx
.L13:
	test	DWORD PTR APR_WREAD[rip], eax
	je	.L11
	mov	ecx, DWORD PTR APR_WWRITE[rip]
	not	ecx
	and	r8d, ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	test	edx, edx
	je	.L18
	mov	edx, DWORD PTR APR_UEXECUTE[rip]
	not	edx
	and	r8d, edx
.L18:
	test	DWORD PTR APR_GREAD[rip], eax
	je	.L19
	mov	edx, DWORD PTR APR_GEXECUTE[rip]
	not	edx
	and	r8d, edx
.L19:
	test	DWORD PTR APR_WREAD[rip], eax
	je	.L14
	mov	edx, DWORD PTR APR_WEXECUTE[rip]
	not	edx
	and	r8d, edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L86:
	test	r12, r12
	je	.L30
	mov	esi, DWORD PTR APR_FILE_ATTR_READONLY[rip]
	cmp	QWORD PTR 8[rsp], 0
	mov	edx, 0
	cmove	edx, esi
.L25:
	test	r13, r13
	je	.L26
	mov	esi, DWORD PTR APR_FILE_ATTR_EXECUTABLE[rip]
	test	r15, r15
	cmovne	edx, esi
.L26:
	mov	rdi, QWORD PTR 40[rsp]
	mov	rcx, r14
	call	apr_file_attrs_set@PLT
	mov	r9, rax
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L85:
	mov	rdi, r9
	mov	QWORD PTR 16[rsp], r9
	call	APR_STATUS_IS_ENOENT@PLT
	mov	r9, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L23
	jmp	.L81
	.p2align 4,,10
	.p2align 3
.L30:
	xor	edx, edx
	xor	esi, esi
	jmp	.L25
.L87:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	io_set_file_perms, .-io_set_file_perms
	.comm	SVN_NO_ERROR,8,8
	.comm	APR_WWRITE,4,4
	.comm	APR_WREAD,4,4
	.comm	APR_WEXECUTE,4,4
	.comm	APR_UWRITE,4,4
	.comm	APR_UREAD,4,4
	.comm	APR_UEXECUTE,4,4
	.comm	APR_LNK,8,8
	.comm	APR_GWRITE,4,4
	.comm	APR_GREAD,4,4
	.comm	APR_GEXECUTE,4,4
	.comm	APR_FINFO_PROT,4,4
	.comm	APR_FINFO_LINK,4,4
	.comm	APR_FILE_ATTR_READONLY,4,4
	.comm	APR_FILE_ATTR_EXECUTABLE,4,4
	.comm	APR_ENOTIMPL,8,8
	.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_io.c_io_set_file_perms.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't change perms of file '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_set_file_perms, %function
io_set_file_perms:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r8, [sp, #64]
	mov	r7, r3
	ldr	r3, .L87
	mov	r5, r0
	mov	r6, r1
	mov	r9, r2
	mov	r1, r0
	mov	r2, r8
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	cstring_from_utf8
	bl	SVN_ERR
	ldr	r2, .L87+4
	ldr	r3, .L87+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	add	r0, sp, #4
	orr	r2, r1, r2
	mov	r3, r8
	ldr	r1, [sp]
	bl	apr_stat
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, [sp, #60]
	cmp	r3, #0
	bne	.L81
.L3:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L82
.L79:
	ldr	r3, .L87+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L83
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L87+20
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L79
	cmp	r6, #0
	ldr	r3, [sp, #8]
	beq	.L9
	ldr	r2, .L87+24
	cmp	r9, #0
	ldr	r2, [r2]
	beq	.L10
	ldr	r1, .L87+28
	orr	r10, r2, r3
	ldr	r1, [r1]
	orr	r10, r10, r1
.L11:
	cmp	r7, #0
	bne	.L27
.L14:
	cmp	r10, r3
	beq	.L79
	mov	r1, r10
	ldr	r0, [sp]
	bl	apr_file_perms_set
	subs	fp, r0, #0
	beq	.L79
	bl	APR_STATUS_IS_EPERM
	cmp	r0, #0
	bne	.L84
.L22:
	ldr	r3, [sp, #60]
	cmp	r3, #0
	bne	.L85
.L23:
	ldr	r3, .L87+12
	ldr	r3, [r3]
	cmp	r3, fp
	beq	.L86
.L24:
	ldr	r0, .L87+32
	bl	_
	mov	r1, r8
	mov	r4, r0
	mov	r0, r5
	bl	svn_dirent_local_style
	mov	r1, r4
	mov	r2, r0
	mov	r0, fp
	bl	svn_error_wrap_apr
	b	.L1
.L9:
	cmp	r7, #0
	beq	.L79
	mov	r10, r3
	ldr	r2, .L87+24
	ldr	r2, [r2]
.L27:
	ldr	r1, [sp, #56]
	and	r2, r2, r3
	cmp	r1, #0
	beq	.L15
	cmp	r2, #0
	ldrne	r2, .L87+36
	ldrne	r2, [r2]
	orrne	r10, r10, r2
	ldr	r2, .L87+40
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L87+44
	ldrne	r2, [r2]
	orrne	r10, r10, r2
	ldr	r2, .L87+48
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L87+52
	ldrne	r2, [r2]
	orrne	r10, r10, r2
	b	.L14
.L82:
	ldr	r0, .L87+32
	bl	_
	mov	r1, r8
	mov	r6, r0
	mov	r0, r5
	bl	svn_dirent_local_style
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	svn_error_wrap_apr
	b	.L1
.L81:
	bl	APR_STATUS_IS_ENOENT
	cmp	r0, #0
	bne	.L79
	mov	r0, r4
	bl	SVN__APR_STATUS_IS_ENOTDIR
	cmp	r0, #0
	beq	.L3
	b	.L79
.L10:
	tst	r2, r3
	ldrne	r1, .L87+28
	moveq	r10, r3
	ldrne	r10, [r1]
	ldr	r1, .L87+40
	bicne	r10, r3, r10
	ldr	r1, [r1]
	tst	r3, r1
	ldrne	r1, .L87+56
	ldrne	r1, [r1]
	bicne	r10, r10, r1
	ldr	r1, .L87+48
	ldr	r1, [r1]
	tst	r3, r1
	ldrne	r1, .L87+60
	ldrne	r1, [r1]
	bicne	r10, r10, r1
	b	.L11
.L15:
	cmp	r2, #0
	ldrne	r2, .L87+36
	ldrne	r2, [r2]
	bicne	r10, r10, r2
	ldr	r2, .L87+40
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L87+44
	ldrne	r2, [r2]
	bicne	r10, r10, r2
	ldr	r2, .L87+48
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L87+52
	ldrne	r2, [r2]
	bicne	r10, r10, r2
	b	.L14
.L86:
	cmp	r6, #0
	moveq	r4, r6
	beq	.L25
	ldr	r3, .L87+64
	cmp	r9, #0
	ldr	r6, [r3]
	moveq	r4, r6
.L25:
	cmp	r7, #0
	beq	.L26
	ldr	r3, .L87+68
	ldr	r6, [r3]
	ldr	r3, [sp, #56]
	cmp	r3, #0
	movne	r4, r6
.L26:
	mov	r2, r4
	mov	r1, r6
	mov	r3, r8
	ldr	r0, [sp]
	bl	apr_file_attrs_set
	mov	fp, r0
	b	.L24
.L84:
	mov	r1, r8
	mov	r0, r5
	bl	reown_file
	bl	SVN_ERR
	mov	r1, r10
	ldr	r0, [sp]
	bl	apr_file_perms_set
	subs	fp, r0, #0
	beq	.L79
	b	.L22
.L85:
	mov	r0, fp
	bl	APR_STATUS_IS_ENOENT
	cmp	r0, #0
	beq	.L23
	b	.L79
.L83:
	bl	__stack_chk_fail
.L88:
	.align	2
.L87:
	.word	.LC1
	.word	APR_FINFO_PROT
	.word	APR_FINFO_LINK
	.word	APR_ENOTIMPL
	.word	SVN_NO_ERROR
	.word	APR_LNK
	.word	APR_UREAD
	.word	APR_UWRITE
	.word	.LC0
	.word	APR_UEXECUTE
	.word	APR_GREAD
	.word	APR_GEXECUTE
	.word	APR_WREAD
	.word	APR_WEXECUTE
	.word	APR_GWRITE
	.word	APR_WWRITE
	.word	APR_FILE_ATTR_READONLY
	.word	APR_FILE_ATTR_EXECUTABLE
	.size	io_set_file_perms, .-io_set_file_perms
	.comm	SVN_NO_ERROR,4,4
	.comm	APR_WWRITE,4,4
	.comm	APR_WREAD,4,4
	.comm	APR_WEXECUTE,4,4
	.comm	APR_UWRITE,4,4
	.comm	APR_UREAD,4,4
	.comm	APR_UEXECUTE,4,4
	.comm	APR_LNK,4,4
	.comm	APR_GWRITE,4,4
	.comm	APR_GREAD,4,4
	.comm	APR_GEXECUTE,4,4
	.comm	APR_FINFO_PROT,4,4
	.comm	APR_FINFO_LINK,4,4
	.comm	APR_FILE_ATTR_READONLY,4,4
	.comm	APR_FILE_ATTR_EXECUTABLE,4,4
	.comm	APR_ENOTIMPL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
