	.file	"extr_mempolicy.c_mpol_set_shared_policy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"set_shared_policy %lx sz %lu %d %d %lx\n"
	.text
	.p2align 4
	.globl	mpol_set_shared_policy
	.type	mpol_set_shared_policy, @function
mpol_set_shared_policy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	vma_pages@PLT
	mov	rbx, rax
	test	r12, r12
	je	.L2
	mov	edi, DWORD PTR 8[r12]
	call	nodes_addr@PLT
	mov	ecx, DWORD PTR [r12]
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, rbx
	mov	r8d, DWORD PTR 4[r12]
	mov	r9d, DWORD PTR [rax]
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rdx, r12
	lea	rsi, [rdi+rbx]
	call	sp_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L10
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r13
	mov	rcx, rax
	lea	rdx, [rsi+rbx]
	call	shared_policy_replace@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR sn_cache[rip]
	mov	rsi, r12
	call	kmem_cache_free@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, QWORD PTR 0[rbp]
	mov	ecx, -1
	mov	rdx, rax
	lea	rdi, .LC0[rip]
	mov	r9d, -1
	mov	r8d, -1
	call	pr_debug@PLT
	mov	rsi, QWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	xor	ecx, ecx
	lea	rdx, [rsi+rbx]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	shared_policy_replace@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r13d
	pop	r12
	.cfi_def_cfa_offset 16
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mpol_set_shared_policy, .-mpol_set_shared_policy
	.comm	sn_cache,4,4
	.comm	ENOMEM,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_mempolicy.c_mpol_set_shared_policy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set_shared_policy %lx sz %lu %d %d %lx\012\000"
	.text
	.align	2
	.global	mpol_set_shared_policy
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpol_set_shared_policy, %function
mpol_set_shared_policy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mov	r7, r0
	sub	sp, sp, #8
	mov	r0, r1
	mov	r5, r1
	bl	vma_pages
	cmp	r4, #0
	mov	r8, r0
	ldr	r6, [r5]
	beq	.L2
	ldr	r0, [r4, #8]
	ldr	r10, [r4]
	ldr	r9, [r4, #4]
	bl	nodes_addr
	ldr	r2, [r0]
	mov	r3, r10
	mov	r1, r6
	str	r2, [sp, #4]
	ldr	r0, .L11
	mov	r2, r8
	str	r9, [sp]
	bl	pr_debug
	ldr	r0, [r5]
	mov	r2, r4
	add	r1, r0, r8
	bl	sp_alloc
	subs	r4, r0, #0
	beq	.L10
	ldr	r1, [r5]
	mov	r0, r7
	mov	r3, r4
	add	r2, r1, r8
	bl	shared_policy_replace
	subs	r5, r0, #0
	beq	.L1
	ldr	r3, .L11+4
	mov	r1, r4
	ldr	r0, [r3]
	bl	kmem_cache_free
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mvn	r3, #0
	mov	r1, r6
	mov	r2, r0
	str	r3, [sp, #4]
	str	r3, [sp]
	ldr	r0, .L11
	bl	pr_debug
	mov	r3, r4
	mov	r0, r7
	ldr	r1, [r5]
	add	r2, r1, r8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	shared_policy_replace
.L10:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	sn_cache
	.word	ENOMEM
	.size	mpol_set_shared_policy, .-mpol_set_shared_policy
	.comm	sn_cache,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
