	.file	"740279.c"
	.intel_syntax noprefix
	.text
	.globl	hammingWeight
	.type	hammingWeight, @function
hammingWeight:
.LFB0:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	and	DWORD PTR -20[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hammingWeight, .-hammingWeight
	.globl	hammingWeight_count
	.type	hammingWeight_count, @function
hammingWeight_count:
.LFB1:
	.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 -52[rbp], edi
	mov	QWORD PTR -40[rbp], 1431655765
	mov	QWORD PTR -32[rbp], 858993459
	mov	QWORD PTR -24[rbp], 252645135
	mov	QWORD PTR -16[rbp], 16711935
	mov	QWORD PTR -8[rbp], 65535
	mov	rax, QWORD PTR -40[rbp]
	and	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	shr	eax
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	and	eax, ecx
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	and	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	shr	eax, 2
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	and	eax, ecx
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	and	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	shr	eax, 4
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	and	eax, ecx
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	and	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	and	eax, ecx
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	shr	eax, 16
	mov	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, ecx
	add	eax, edx
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	hammingWeight_count, .-hammingWeight_count
	.globl	hammingDistance
	.type	hammingDistance, @function
hammingDistance:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	xor	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	hammingWeight
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	hammingDistance, .-hammingDistance
	.section	.rodata
	.align 8
.LC0:
	.string	"hammingWeight(%2d 0x%x) = %d %d\n"
.LC1:
	.string	"hammingDistance(%d, %d) = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	hammingWeight_count
	mov	ebx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	hammingWeight
	mov	ecx, eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	r8d, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	cmp	DWORD PTR -28[rbp], 16
	jne	.L11
	mov	DWORD PTR -24[rbp], 4
	mov	DWORD PTR -20[rbp], 15
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	hammingDistance
	mov	ecx, eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.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	"740279.c"
	.text
	.align	2
	.global	hammingWeight
	.syntax unified
	.arm
	.fpu softvfp
	.type	hammingWeight, %function
hammingWeight:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	and	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hammingWeight, .-hammingWeight
	.align	2
	.global	hammingWeight_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	hammingWeight_count, %function
hammingWeight_count:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	adr	r3, .L7
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	adr	r3, .L7+8
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	adr	r3, .L7+16
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, .L7+24
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r2, .L7+28
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	and	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsr	r1, r3, #1
	ldr	r3, [fp, #-44]
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	and	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsr	r1, r3, #2
	ldr	r3, [fp, #-36]
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-48]
	and	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsr	r1, r3, #4
	ldr	r3, [fp, #-28]
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	and	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsr	r1, r3, #8
	ldr	r3, [fp, #-20]
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-48]
	and	r2, r2, r3
	ldr	r3, [fp, #-48]
	lsr	r1, r3, #16
	ldr	r3, [fp, #-12]
	and	r3, r3, r1
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	3
.L7:
	.word	1431655765
	.word	0
	.word	858993459
	.word	0
	.word	252645135
	.word	0
	.word	16711935
	.word	65535
	.size	hammingWeight_count, .-hammingWeight_count
	.align	2
	.global	hammingDistance
	.syntax unified
	.arm
	.fpu softvfp
	.type	hammingDistance, %function
hammingDistance:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	mov	r0, r3
	bl	hammingWeight
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hammingDistance, .-hammingDistance
	.section	.rodata
	.align	2
.LC0:
	.ascii	"hammingWeight(%2d 0x%x) = %d %d\012\000"
	.align	2
.LC1:
	.ascii	"hammingDistance(%d, %d) = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L12
.L13:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	hammingWeight
	mov	r4, r0
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	hammingWeight_count
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L15
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #16
	bne	.L13
	mov	r3, #4
	str	r3, [fp, #-20]
	mov	r3, #15
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	hammingDistance
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L15+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
