	.file	"extr_afssys.c_k_setpag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	k_setpag
	.type	k_setpag, @function
k_setpag:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 56
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR afs_entry_point[rip]
	cmp	eax, 132
	je	.L2
	cmp	eax, 133
	jne	.L3
	mov	eax, DWORD PTR AFSCALL_SETPAG[rip]
	pxor	xmm0, xmm0
	mov	rdi, rsp
	mov	DWORD PTR 32[rsp], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR [rsp], xmm0
	mov	DWORD PTR 16[rsp], eax
	call	do_ioctl@PLT
.L1:
	mov	rdx, QWORD PTR 40[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR AFSCALL_SETPAG[rip]
	pxor	xmm0, xmm0
	mov	rdi, rsp
	mov	DWORD PTR 32[rsp], 0
	movaps	XMMWORD PTR [rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	DWORD PTR [rsp], eax
	call	do_ioctl@PLT
	test	eax, eax
	cmove	eax, DWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR ENOSYS[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	k_setpag, .-k_setpag
	.comm	errno,4,4
	.comm	afs_syscalls,8,8
	.comm	afs_entry_point,4,4
	.comm	SIGSYS,4,4
	.comm	ENOSYS,4,4
	.comm	AFSCALL_SETPAG,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_afssys.c_k_setpag.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	k_setpag
	.syntax unified
	.arm
	.fpu softvfp
	.type	k_setpag, %function
k_setpag:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r3, [r3]
	sub	sp, sp, #44
	cmp	r3, #132
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	beq	.L2
	cmp	r3, #133
	bne	.L3
	mov	r0, sp
	mov	r2, #36
	mov	r1, #0
	bl	memset
	ldr	r3, .L10+8
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #16]
	bl	do_ioctl
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #44
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	mov	r2, #32
	mov	r1, #0
	add	r0, sp, #4
	bl	memset
	ldr	r3, .L10+8
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp]
	bl	do_ioctl
	cmp	r0, #0
	ldreq	r0, [sp]
	b	.L1
.L3:
	ldr	r2, .L10+12
	ldr	r3, .L10+16
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	afs_entry_point
	.word	.LC0
	.word	AFSCALL_SETPAG
	.word	ENOSYS
	.word	errno
	.size	k_setpag, .-k_setpag
	.comm	errno,4,4
	.comm	afs_syscalls,4,4
	.comm	afs_entry_point,4,4
	.comm	SIGSYS,4,4
	.comm	ENOSYS,4,4
	.comm	AFSCALL_SETPAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
