	.file	"608664.c"
	.intel_syntax noprefix
	.text
	.globl	tes
	.bss
	.align 32
	.type	tes, @object
	.size	tes, 96
tes:
	.zero	96
	.globl	value
	.align 8
	.type	value, @object
	.size	value, 8
value:
	.zero	8
	.globl	thread
	.align 8
	.type	thread, @object
	.size	thread, 8
thread:
	.zero	8
	.globl	angka
	.align 4
	.type	angka, @object
	.size	angka, 4
angka:
	.zero	4
	.text
	.globl	faktorial
	.type	faktorial, @function
faktorial:
.LFB6:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -40[rbp], 1
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	QWORD PTR -40[rbp], 2
	jne	.L4
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	jnb	.L6
	mov	QWORD PTR -16[rbp], 1
	jmp	.L7
.L8:
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	add	QWORD PTR -16[rbp], 1
.L7:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	cmp	QWORD PTR -16[rbp], rax
	jl	.L8
	jmp	.L5
.L6:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -8[rbp]
	cmp	QWORD PTR -40[rbp], rax
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	cmp	QWORD PTR -40[rbp], rax
	je	.L11
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	jmp	.L11
.L13:
	nop
.L11:
	add	QWORD PTR -8[rbp], 1
.L9:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jl	.L12
.L5:
	mov	rax, QWORD PTR -24[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	faktorial, .-faktorial
	.section	.rodata
.LC0:
	.string	"0\t"
.LC1:
	.string	"%llu\t"
	.text
	.globl	hitungfactorial
	.type	hitungfactorial, @function
hitungfactorial:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L15
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L16
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	faktorial
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	hitungfactorial, .-hitungfactorial
	.globl	operasi
	.type	operasi, @function
operasi:
.LFB8:
	.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	DWORD PTR -12[rbp], 0
	jmp	.L19
.L21:
	mov	ecx, DWORD PTR -12[rbp]
	movsx	rax, ecx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, ecx
	sar	esi, 31
	mov	edx, eax
	sub	edx, esi
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L20
	mov	edi, 10
	call	putchar@PLT
.L20:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR value[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tes[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, hitungfactorial[rip]
	mov	esi, 0
	lea	rdi, thread[rip]
	call	pthread_create@PLT
	mov	rax, QWORD PTR thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -12[rbp], 1
.L19:
	cmp	DWORD PTR -12[rbp], 23
	jle	.L21
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	operasi, .-operasi
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"Matriks sebelumnya:"
.LC4:
	.string	"%d\t"
.LC5:
	.string	"\nsetelah faktorial:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -8[rbp], 1234
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 950
	mov	esi, 96
	mov	edi, eax
	call	shmget@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR value[rip], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, tes[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -20[rbp], 1
.L23:
	cmp	DWORD PTR -20[rbp], 23
	jle	.L24
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L25
.L28:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L26
.L27:
	mov	rcx, QWORD PTR value[rip]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L26:
	cmp	DWORD PTR -12[rbp], 5
	jle	.L27
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L25:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L28
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	operasi
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR value[rip]
	mov	rdi, rax
	call	shmdt@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"608664.c"
	.text
	.comm	tes,96,4
	.comm	value,4,4
	.comm	thread,4,4
	.comm	angka,4,4
	.align	2
	.global	faktorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	faktorial, %function
faktorial:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #60
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	str	r2, [fp, #-64]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #1
	bne	.L2
	mov	r2, #1
	mov	r3, #0
	b	.L3
.L2:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #2
	bne	.L4
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	subs	r8, r2, #1
	sbc	r9, r3, #0
	ldr	r3, [fp, #-48]
	mul	r2, r8, r3
	ldr	r3, [fp, #-52]
	mul	r3, r9, r3
	add	r1, r2, r3
	ldr	r0, [fp, #-52]
	umull	r2, r3, r0, r8
	add	r1, r1, r3
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L5
.L4:
	ldr	r3, [fp, #-64]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L6
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L7
.L8:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	ldr	r3, [fp, #-48]
	mul	r2, r6, r3
	ldr	r3, [fp, #-52]
	mul	r3, r7, r3
	add	r1, r2, r3
	ldr	r0, [fp, #-52]
	umull	r2, r3, r0, r6
	add	r1, r1, r3
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-76]
	adc	r3, r3, #0
	str	r3, [fp, #-72]
	sub	r4, fp, #76
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-44]
	str	r4, [fp, #-40]
.L7:
	ldr	r3, [fp, #-64]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L8
	b	.L5
.L6:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L9
.L12:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L13
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L11
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	ldr	r3, [fp, #-48]
	mul	r2, r4, r3
	ldr	r3, [fp, #-52]
	mul	r3, r5, r3
	add	r1, r2, r3
	ldr	r0, [fp, #-52]
	umull	r2, r3, r0, r4
	add	r1, r1, r3
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L11
.L13:
	nop
.L11:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-84]
	adc	r3, r3, #0
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L9:
	ldr	r3, [fp, #-64]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L12
.L5:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
	.size	faktorial, .-faktorial
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0\011\000"
	.align	2
.LC1:
	.ascii	"%llu\011\000"
	.text
	.align	2
	.global	hitungfactorial
	.syntax unified
	.arm
	.fpu softvfp
	.type	hitungfactorial, %function
hitungfactorial:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L15
	ldr	r0, .L18
	bl	printf
.L15:
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L16
	ldr	r0, .L18
	bl	printf
	b	.L17
.L16:
	ldr	r3, [fp, #-16]
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	mov	r3, r2
	mov	r2, r3
	bl	faktorial
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+4
	bl	printf
.L17:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	.LC1
	.size	hitungfactorial, .-hitungfactorial
	.align	2
	.global	operasi
	.syntax unified
	.arm
	.fpu softvfp
	.type	operasi, %function
operasi:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L21
.L23:
	ldr	r1, [fp, #-12]
	ldr	r3, .L24
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L22
	mov	r0, #10
	bl	putchar
.L22:
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	stm	r1, {r2-r3}
	ldr	r2, .L24+8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, .L24+12
	mov	r1, #0
	ldr	r0, .L24+16
	bl	pthread_create
	ldr	r3, .L24+16
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #23
	ble	.L23
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	715827883
	.word	value
	.word	tes
	.word	hitungfactorial
	.word	thread
	.size	operasi, .-operasi
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Matriks sebelumnya:\000"
	.align	2
.LC4:
	.ascii	"%d\011\000"
	.align	2
.LC5:
	.ascii	"\012setelah faktorial:\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L34
	str	r3, [fp, #-12]
	ldr	r2, .L34+4
	mov	r1, #96
	ldr	r0, [fp, #-12]
	bl	shmget
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	shmat
	mov	r3, r0
	ldr	r2, .L34+8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L27
.L28:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, .L34+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L34+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L27:
	ldr	r3, [fp, #-24]
	cmp	r3, #23
	ble	.L28
	ldr	r0, .L34+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L29
.L32:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L30
.L31:
	ldr	r3, .L34+8
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+24
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L30:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	ble	.L31
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L29:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L32
	ldr	r0, .L34+28
	bl	printf
	bl	operasi
	mov	r0, #10
	bl	putchar
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	shmdt
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	1234
	.word	950
	.word	value
	.word	tes
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
