	.file	"extr_numa.c_bind_to_cpu.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bind_to_cpu, @function
bind_to_cpu:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 4
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	lea	r12, 4[rsp]
	call	sched_getaffinity@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	rdi, r12
	call	CPU_ZERO@PLT
	cmp	ebp, -1
	je	.L14
	mov	edi, 1
	test	ebp, ebp
	js	.L6
	mov	rax, QWORD PTR g[rip]
	xor	edi, edi
	cmp	DWORD PTR [rax], ebp
	setle	dil
.L6:
	call	BUG_ON@PLT
	mov	rsi, r12
	mov	edi, ebp
	call	CPU_SET@PLT
.L4:
	xor	edi, edi
	mov	rdx, r12
	mov	esi, 4
	call	sched_setaffinity@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	eax, DWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR g[rip]
	xor	ebx, ebx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	mov	rsi, r12
	add	ebx, 1
	call	CPU_SET@PLT
	mov	rax, QWORD PTR g[rip]
	cmp	DWORD PTR [rax], ebx
	jg	.L3
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bind_to_cpu, .-bind_to_cpu
	.comm	g,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_numa.c_bind_to_cpu.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bind_to_cpu, %function
bind_to_cpu:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	sub	sp, sp, #20
	ldr	r3, .L15
	mov	r1, #4
	add	r2, sp, #4
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	sched_getaffinity
	bl	BUG_ON
	add	r0, sp, #8
	bl	CPU_ZERO
	cmn	r4, #1
	beq	.L13
	cmp	r4, #0
	movlt	r0, #1
	blt	.L6
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r0, [r3]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
.L6:
	bl	BUG_ON
	mov	r0, r4
	add	r1, sp, #8
	bl	CPU_SET
.L4:
	add	r2, sp, #8
	mov	r1, #4
	mov	r0, #0
	bl	sched_setaffinity
	bl	BUG_ON
	ldr	r3, .L15
	ldr	r0, [sp, #4]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	ldr	r5, .L15+4
	ldr	r3, [r5]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
.L3:
	mov	r0, r4
	add	r1, sp, #8
	bl	CPU_SET
	ldr	r3, [r5]
	add	r4, r4, #1
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L3
	b	.L4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	g
	.size	bind_to_cpu, .-bind_to_cpu
	.comm	g,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
