	.file	"extr_fs.c_sys_fchmodat.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fchmodat(%d, \"%s\", %o)"
	.text
	.p2align 4
	.globl	sys_fchmodat
	.type	sys_fchmodat, @function
sys_fchmodat:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	.cfi_offset 12, -24
	mov	r12d, edi
	mov	edi, esi
	push	rbx
	.cfi_offset 3, -32
	mov	ebx, edx
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
	mov	edx, r8d
	mov	rsi, rsp
	call	user_read_string@PLT
	test	rax, rax
	je	.L5
.L17:
	mov	eax, DWORD PTR _EFAULT[rip]
.L1:
	mov	rbx, QWORD PTR -24[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, r12d
	mov	ecx, ebx
	lea	rdi, .LC0[rip]
	mov	rdx, rsp
	call	STRACE@PLT
	mov	edi, r12d
	call	at_fd@PLT
	mov	r12, rax
	mov	eax, DWORD PTR _EBADF[rip]
	test	r12, r12
	je	.L1
	mov	edi, DWORD PTR S_IFMT[rip]
	not	edi
	and	edi, ebx
	mov	esi, edi
	call	make_attr@PLT
	mov	ecx, 1
	mov	rsi, rsp
	mov	rdi, r12
	mov	edx, eax
	call	generic_setattrat@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	or	QWORD PTR -8[rsp+rdx], 0
	mov	edx, r8d
	mov	rsi, rsp
	call	user_read_string@PLT
	test	rax, rax
	jne	.L17
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sys_fchmodat, .-sys_fchmodat
	.comm	_EFAULT,4,4
	.comm	_EBADF,4,4
	.comm	S_IFMT,4,4
	.comm	MAX_PATH,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_fs.c_sys_fchmodat.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fchmodat(%d, \"%s\", %o)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sys_fchmodat
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_fchmodat, %function
sys_fchmodat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r4, r2
	ldr	r2, .L10
	mov	r5, r0
	ldr	r2, [r2]
	mov	r0, r1
	add	r1, r2, #7
	bic	r1, r1, #7
	ldr	r3, .L10+4
	sub	sp, sp, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	user_read_string
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L10+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L2:
	mov	r1, r5
	mov	r3, r4
	mov	r2, sp
	ldr	r0, .L10+12
	bl	STRACE
	mov	r0, r5
	bl	at_fd
	subs	r5, r0, #0
	beq	.L9
	ldr	r3, .L10+16
	ldr	r1, [r3]
	bic	r1, r4, r1
	mov	r0, r1
	bl	make_attr
	mov	r3, #1
	mov	r2, r0
	mov	r1, sp
	mov	r0, r5
	bl	generic_setattrat
	b	.L1
.L9:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MAX_PATH
	.word	.LC1
	.word	_EFAULT
	.word	.LC0
	.word	S_IFMT
	.word	_EBADF
	.size	sys_fchmodat, .-sys_fchmodat
	.comm	_EFAULT,4,4
	.comm	_EBADF,4,4
	.comm	S_IFMT,4,4
	.comm	MAX_PATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
