	.file	"210904.c"
	.intel_syntax noprefix
	.text
	.globl	cpu_setsize
	.data
	.align 4
	.type	cpu_setsize, @object
	.size	cpu_setsize, 4
cpu_setsize:
	.long	1024
	.globl	cpu_mask_size
	.align 4
	.type	cpu_mask_size, @object
	.size	cpu_mask_size, 4
cpu_mask_size:
	.long	128
	.text
	.globl	get_cpu_affinity_mask
	.type	get_cpu_affinity_mask, @function
get_cpu_affinity_mask:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	esi, 1024
	mov	edi, 0
	call	sched_getaffinity@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_cpu_affinity_mask, .-get_cpu_affinity_mask
	.globl	set_cpu_affinity_mask
	.type	set_cpu_affinity_mask, @function
set_cpu_affinity_mask:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	esi, 1024
	mov	edi, 0
	call	sched_setaffinity@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set_cpu_affinity_mask, .-set_cpu_affinity_mask
	.globl	zero_cpu_affinity_mask
	.type	zero_cpu_affinity_mask, @function
zero_cpu_affinity_mask:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 128
	mov	esi, 0
	mov	QWORD PTR [rax], rsi
	mov	edx, ecx
	add	rdx, rax
	add	rdx, 8
	mov	QWORD PTR -16[rdx], rsi
	lea	rdx, 8[rax]
	and	rdx, -8
	sub	rax, rdx
	add	ecx, eax
	and	ecx, -8
	mov	eax, ecx
	shr	eax, 3
	mov	ecx, eax
	mov	rdi, rdx
	mov	rax, rsi
	rep stosq
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	zero_cpu_affinity_mask, .-zero_cpu_affinity_mask
	.globl	set_cpu_affinity
	.type	set_cpu_affinity, @function
set_cpu_affinity:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 1023
	ja	.L9
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -8[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rcx, rdi
	mov	rdx, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	or	rsi, rcx
	mov	rdx, rsi
	mov	QWORD PTR [rax], rdx
.L9:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	set_cpu_affinity, .-set_cpu_affinity
	.globl	cpu_affinity_p
	.type	cpu_affinity_p, @function
cpu_affinity_p:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 1023
	ja	.L11
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 6
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 63
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L11
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	cpu_affinity_p, .-cpu_affinity_p
	.globl	clear_cpu_affinity
	.type	clear_cpu_affinity, @function
clear_cpu_affinity:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 1023
	ja	.L17
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -8[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	mov	rcx, rdx
	not	rcx
	mov	rdx, QWORD PTR -32[rbp]
	sal	rax, 3
	add	rax, rdx
	and	rsi, rcx
	mov	rdx, rsi
	mov	QWORD PTR [rax], rdx
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	clear_cpu_affinity, .-clear_cpu_affinity
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"210904.c"
	.text
	.global	cpu_setsize
	.data
	.align	2
	.type	cpu_setsize, %object
	.size	cpu_setsize, 4
cpu_setsize:
	.word	1024
	.global	cpu_mask_size
	.align	2
	.type	cpu_mask_size, %object
	.size	cpu_mask_size, 4
cpu_mask_size:
	.word	128
	.text
	.align	2
	.global	get_cpu_affinity_mask
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cpu_affinity_mask, %function
get_cpu_affinity_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #1024
	mov	r0, #0
	bl	sched_getaffinity
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_cpu_affinity_mask, .-get_cpu_affinity_mask
	.align	2
	.global	set_cpu_affinity_mask
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_cpu_affinity_mask, %function
set_cpu_affinity_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #1024
	mov	r0, #0
	bl	sched_setaffinity
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	set_cpu_affinity_mask, .-set_cpu_affinity_mask
	.align	2
	.global	zero_cpu_affinity_mask
	.syntax unified
	.arm
	.fpu softvfp
	.type	zero_cpu_affinity_mask, %function
zero_cpu_affinity_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	zero_cpu_affinity_mask, .-zero_cpu_affinity_mask
	.align	2
	.global	set_cpu_affinity
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_cpu_affinity, %function
set_cpu_affinity:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	bcs	.L9
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	ldr	r0, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
.L9:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_cpu_affinity, .-set_cpu_affinity
	.align	2
	.global	cpu_affinity_p
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpu_affinity_p, %function
cpu_affinity_p:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	bcs	.L11
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #5
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	and	r3, r3, #31
	lsr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cpu_affinity_p, .-cpu_affinity_p
	.align	2
	.global	clear_cpu_affinity
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_cpu_affinity, %function
clear_cpu_affinity:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	bcs	.L17
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	mvn	r2, r2
	ldr	r0, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r0, r3
	and	r2, r2, r1
	str	r2, [r3]
.L17:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	clear_cpu_affinity, .-clear_cpu_affinity
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
