	.file	"385319.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s [options]\n"
.LC1:
	.string	"Options are:\n"
	.align 8
.LC2:
	.string	"-a<policy><prio> Set scheduling policy and priority in\n"
.LC3:
	.string	"\t%s"
	.align 8
.LC4:
	.string	"                 thread attributes object\n"
	.align 8
.LC5:
	.string	"                 <policy> can be\n"
	.align 8
.LC6:
	.string	"                     f  SCHED_FIFO\n"
	.align 8
.LC7:
	.string	"                     r  SCHED_RR\n"
	.align 8
.LC8:
	.string	"                     o  SCHED_OTHER\n"
	.align 8
.LC9:
	.string	"-A               Use default thread attributes object\n"
	.align 8
.LC10:
	.string	"-i {e|i}         Set inherit scheduler attribute to\n"
	.align 8
.LC11:
	.string	"                 'explicit' or 'inherit'\n"
	.align 8
.LC12:
	.string	"-m<policy><prio> Set scheduling policy and priority on\n"
	.align 8
.LC13:
	.string	"                 main thread before pthread_create() call\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.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	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 0
	je	.L2
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC5[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC6[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC7[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC9[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC10[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC11[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC12[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC13[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.type	get_policy, @function
get_policy:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	BYTE PTR -4[rbp], al
	movsx	eax, BYTE PTR -4[rbp]
	cmp	eax, 114
	je	.L4
	cmp	eax, 114
	jg	.L5
	cmp	eax, 102
	je	.L6
	cmp	eax, 111
	je	.L7
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, 1
	jmp	.L8
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 2
	mov	eax, 1
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, 1
	jmp	.L8
.L5:
	mov	eax, 0
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_policy, .-get_policy
	.section	.rodata
.LC14:
	.string	"SCHED_OTHER"
.LC15:
	.string	"???"
.LC16:
	.string	"SCHED_RR"
.LC17:
	.string	"SCHED_FIFO"
.LC18:
	.string	"    policy=%s, priority=%d\n"
	.text
	.type	display_sched_attr, @function
display_sched_attr:
.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], 1
	je	.L10
	cmp	DWORD PTR -4[rbp], 2
	je	.L11
	cmp	DWORD PTR -4[rbp], 0
	jne	.L12
	lea	rax, .LC14[rip]
	jmp	.L15
.L12:
	lea	rax, .LC15[rip]
	jmp	.L15
.L11:
	lea	rax, .LC16[rip]
	jmp	.L15
.L10:
	lea	rax, .LC17[rip]
.L15:
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display_sched_attr, .-display_sched_attr
	.section	.rodata
.LC19:
	.string	"pthread_getschedparam"
	.text
	.type	display_thread_sched_attr, @function
display_thread_sched_attr:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	rcx, rax
	lea	rdx, -16[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	pthread_getschedparam@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L17
	call	__errno_location@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	display_sched_attr
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display_thread_sched_attr, .-display_thread_sched_attr
	.section	.rodata
	.align 8
.LC20:
	.string	"Scheduler attributes of new thread"
	.text
	.type	thread_start, @function
thread_start:
.LFB10:
	.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
	lea	rdi, .LC20[rip]
	call	display_thread_sched_attr
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	thread_start, .-thread_start
	.section	.rodata
.LC21:
	.string	"Unrecognized option\n"
.LC22:
	.string	"a:Ai:m:"
	.align 8
.LC23:
	.string	"Can't specify -A with -i or -a\n"
	.align 8
.LC24:
	.string	"Bad policy for main thread (-s)\n"
.LC25:
	.string	"pthread_setschedparam"
	.align 8
.LC26:
	.string	"Scheduler settings of main thread"
.LC27:
	.string	"pthread_attr_init"
	.align 8
.LC28:
	.string	"Value for -i must be 'e' or 'i'\n"
.LC29:
	.string	"pthread_attr_setinheritsched"
.LC30:
	.string	"Bad policy for 'attr' (-a)\n"
.LC31:
	.string	"pthread_attr_setschedpolicy"
.LC32:
	.string	"pthread_attr_setschedparam"
.LC33:
	.string	"pthread_attr_getschedparam"
.LC34:
	.string	"pthread_attr_getschedpolicy"
.LC35:
	.string	"Scheduler settings in 'attr'"
.LC36:
	.string	"EXPLICIT"
.LC37:
	.string	"INHERIT"
.LC38:
	.string	"    inheritsched is %s\n"
.LC39:
	.string	"pthread_create"
.LC40:
	.string	"pthread_attr_destroy"
.LC41:
	.string	"pthread_join"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -132[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	jmp	.L22
.L27:
	cmp	DWORD PTR -128[rbp], 109
	je	.L23
	cmp	DWORD PTR -128[rbp], 109
	jg	.L24
	cmp	DWORD PTR -128[rbp], 105
	je	.L25
	cmp	DWORD PTR -128[rbp], 105
	jg	.L24
	cmp	DWORD PTR -128[rbp], 65
	je	.L26
	cmp	DWORD PTR -128[rbp], 97
	jne	.L24
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L22
.L26:
	mov	DWORD PTR -132[rbp], 1
	jmp	.L22
.L25:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L22
.L23:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	usage
.L22:
	mov	rcx, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	rdx, .LC22[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], -1
	jne	.L27
	cmp	DWORD PTR -132[rbp], 0
	je	.L28
	cmp	QWORD PTR -88[rbp], 0
	jne	.L29
	cmp	QWORD PTR -104[rbp], 0
	je	.L28
.L29:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	usage
.L28:
	cmp	QWORD PTR -96[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	rdx, -140[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_policy
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	usage
.L31:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 1
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -136[rbp], eax
	mov	ebx, DWORD PTR -140[rbp]
	call	pthread_self@PLT
	mov	rcx, rax
	lea	rax, -136[rbp]
	mov	rdx, rax
	mov	esi, ebx
	mov	rdi, rcx
	call	pthread_setschedparam@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L30
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	lea	rdi, .LC26[rip]
	call	display_thread_sched_attr
	mov	edi, 10
	call	putchar@PLT
	mov	QWORD PTR -112[rbp], 0
	cmp	DWORD PTR -132[rbp], 0
	jne	.L32
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L33
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	lea	rax, -80[rbp]
	mov	QWORD PTR -112[rbp], rax
.L32:
	cmp	QWORD PTR -88[rbp], 0
	je	.L34
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 101
	jne	.L35
	mov	DWORD PTR -144[rbp], 1
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 105
	jne	.L37
	mov	DWORD PTR -144[rbp], 0
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	usage
.L36:
	mov	edx, DWORD PTR -144[rbp]
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L34
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	cmp	QWORD PTR -104[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	rdx, -140[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	get_policy
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	usage
.L39:
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 1
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -136[rbp], eax
	mov	edx, DWORD PTR -140[rbp]
	lea	rax, -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L40
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC31[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L40:
	lea	rdx, -136[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L38
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC32[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	cmp	QWORD PTR -112[rbp], 0
	je	.L41
	lea	rdx, -136[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_getschedparam@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L42
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC33[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	lea	rdx, -140[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_getschedpolicy@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L43
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC34[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -140[rbp]
	lea	rdx, -136[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	display_sched_attr
	lea	rdx, -144[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_getinheritsched@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	test	eax, eax
	je	.L44
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 1
	jne	.L45
	lea	rax, .LC36[rip]
	jmp	.L47
.L45:
	lea	rax, .LC15[rip]
	jmp	.L47
.L44:
	lea	rax, .LC37[rip]
.L47:
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
.L41:
	mov	rsi, QWORD PTR -112[rbp]
	lea	rax, -120[rbp]
	mov	ecx, 0
	lea	rdx, thread_start[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L48
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC39[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L48:
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L49
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC40[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	je	.L50
	call	__errno_location@PLT
	mov	edx, DWORD PTR -124[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC41[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.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	"385319.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [options]\012\000"
	.align	2
.LC1:
	.ascii	"Options are:\012\000"
	.align	2
.LC2:
	.ascii	"-a<policy><prio> Set scheduling policy and priority"
	.ascii	" in\012\000"
	.align	2
.LC3:
	.ascii	"\011%s\000"
	.align	2
.LC4:
	.ascii	"                 thread attributes object\012\000"
	.align	2
.LC5:
	.ascii	"                 <policy> can be\012\000"
	.align	2
.LC6:
	.ascii	"                     f  SCHED_FIFO\012\000"
	.align	2
.LC7:
	.ascii	"                     r  SCHED_RR\012\000"
	.align	2
.LC8:
	.ascii	"                     o  SCHED_OTHER\012\000"
	.align	2
.LC9:
	.ascii	"-A               Use default thread attributes obje"
	.ascii	"ct\012\000"
	.align	2
.LC10:
	.ascii	"-i {e|i}         Set inherit scheduler attribute to"
	.ascii	"\012\000"
	.align	2
.LC11:
	.ascii	"                 'explicit' or 'inherit'\012\000"
	.align	2
.LC12:
	.ascii	"-m<policy><prio> Set scheduling policy and priority"
	.ascii	" on\012\000"
	.align	2
.LC13:
	.ascii	"                 main thread before pthread_create("
	.ascii	") call\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	fputs
.L2:
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L3+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L3+8
	bl	fwrite
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+12
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+20
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+24
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+28
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+32
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+36
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+40
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+44
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+48
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+52
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, .L3+56
	ldr	r1, .L3+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	usage, .-usage
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_policy, %function
get_policy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L6
	cmp	r3, #114
	bgt	.L7
	cmp	r3, #102
	beq	.L8
	cmp	r3, #111
	beq	.L9
	b	.L7
.L8:
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	b	.L10
.L6:
	ldr	r3, [fp, #-12]
	mov	r2, #2
	str	r2, [r3]
	mov	r3, #1
	b	.L10
.L9:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	b	.L10
.L7:
	mov	r3, #0
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_policy, .-get_policy
	.section	.rodata
	.align	2
.LC14:
	.ascii	"SCHED_OTHER\000"
	.align	2
.LC15:
	.ascii	"???\000"
	.align	2
.LC16:
	.ascii	"SCHED_RR\000"
	.align	2
.LC17:
	.ascii	"SCHED_FIFO\000"
	.align	2
.LC18:
	.ascii	"    policy=%s, priority=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_sched_attr, %function
display_sched_attr:
	@ 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	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L12
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L18
	b	.L17
.L14:
	ldr	r3, .L18+4
	b	.L17
.L13:
	ldr	r3, .L18+8
	b	.L17
.L12:
	ldr	r3, .L18+12
.L17:
	ldr	r2, [fp, #-12]
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L18+16
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	display_sched_attr, .-display_sched_attr
	.section	.rodata
	.align	2
.LC19:
	.ascii	"pthread_getschedparam\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_thread_sched_attr, %function
display_thread_sched_attr:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	sub	r2, fp, #16
	sub	r3, fp, #20
	mov	r1, r3
	bl	pthread_getschedparam
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L21
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r0, .L23+4
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	ldr	r0, [fp, #-24]
	bl	puts
	ldr	r3, [fp, #-20]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	display_sched_attr
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC20
	.word	.LC19
	.size	display_thread_sched_attr, .-display_thread_sched_attr
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Scheduler attributes of new thread\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_start, %function
thread_start:
	@ 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	r0, .L27
	bl	display_thread_sched_attr
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC21
	.size	thread_start, .-thread_start
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Unrecognized option\012\000"
	.align	2
.LC23:
	.ascii	"a:Ai:m:\000"
	.align	2
.LC24:
	.ascii	"Can't specify -A with -i or -a\012\000"
	.align	2
.LC25:
	.ascii	"Bad policy for main thread (-s)\012\000"
	.align	2
.LC26:
	.ascii	"pthread_setschedparam\000"
	.align	2
.LC27:
	.ascii	"Scheduler settings of main thread\000"
	.align	2
.LC28:
	.ascii	"pthread_attr_init\000"
	.align	2
.LC29:
	.ascii	"Value for -i must be 'e' or 'i'\012\000"
	.align	2
.LC30:
	.ascii	"pthread_attr_setinheritsched\000"
	.align	2
.LC31:
	.ascii	"Bad policy for 'attr' (-a)\012\000"
	.align	2
.LC32:
	.ascii	"pthread_attr_setschedpolicy\000"
	.align	2
.LC33:
	.ascii	"pthread_attr_setschedparam\000"
	.align	2
.LC34:
	.ascii	"pthread_attr_getschedparam\000"
	.align	2
.LC35:
	.ascii	"pthread_attr_getschedpolicy\000"
	.align	2
.LC36:
	.ascii	"Scheduler settings in 'attr'\000"
	.align	2
.LC37:
	.ascii	"EXPLICIT\000"
	.align	2
.LC38:
	.ascii	"INHERIT\000"
	.align	2
.LC39:
	.ascii	"    inheritsched is %s\012\000"
	.align	2
.LC40:
	.ascii	"pthread_create\000"
	.align	2
.LC41:
	.ascii	"pthread_attr_destroy\000"
	.align	2
.LC42:
	.ascii	"pthread_join\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L30
.L35:
	ldr	r3, [fp, #-52]
	cmp	r3, #109
	beq	.L31
	ldr	r3, [fp, #-52]
	cmp	r3, #109
	bgt	.L32
	ldr	r3, [fp, #-52]
	cmp	r3, #105
	beq	.L33
	ldr	r3, [fp, #-52]
	cmp	r3, #105
	bgt	.L32
	ldr	r3, [fp, #-52]
	cmp	r3, #65
	beq	.L34
	ldr	r3, [fp, #-52]
	cmp	r3, #97
	bne	.L32
	ldr	r3, .L60+4
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	b	.L30
.L34:
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L30
.L33:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	b	.L30
.L31:
	ldr	r3, .L60+4
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	b	.L30
.L32:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L60+8
	mov	r0, r3
	bl	usage
.L30:
	ldr	r2, .L60+12
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-96]
	bl	getopt
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L35
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L36
.L37:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L60+16
	mov	r0, r3
	bl	usage
.L36:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-60]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	get_policy
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L60+20
	mov	r0, r3
	bl	usage
.L39:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-76]
	bl	pthread_self
	ldr	r3, [fp, #-84]
	sub	r2, fp, #76
	mov	r1, r3
	bl	pthread_setschedparam
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L38
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+24
	bl	perror
	mov	r0, #1
	bl	exit
.L38:
	ldr	r0, .L60+28
	bl	display_thread_sched_attr
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L40
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L41
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+32
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	sub	r3, fp, #44
	str	r3, [fp, #-68]
.L40:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #101
	bne	.L43
	mov	r3, #1
	str	r3, [fp, #-88]
	b	.L44
.L43:
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #105
	bne	.L45
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L44
.L45:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L60+36
	mov	r0, r3
	bl	usage
.L44:
	ldr	r2, [fp, #-88]
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L42
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+40
	bl	perror
	mov	r0, #1
	bl	exit
.L42:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	get_policy
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L60+44
	mov	r0, r3
	bl	usage
.L47:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-84]
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L48
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+48
	bl	perror
	mov	r0, #1
	bl	exit
.L48:
	sub	r2, fp, #76
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedparam
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L46
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+52
	bl	perror
	mov	r0, #1
	bl	exit
.L46:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L49
	sub	r2, fp, #76
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_getschedparam
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L50
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+56
	bl	perror
	mov	r0, #1
	bl	exit
.L50:
	sub	r2, fp, #84
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_getschedpolicy
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L51
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+60
	bl	perror
	mov	r0, #1
	bl	exit
.L51:
	ldr	r0, .L60+64
	bl	puts
	ldr	r3, [fp, #-84]
	sub	r2, fp, #76
	mov	r1, r2
	mov	r0, r3
	bl	display_sched_attr
	sub	r2, fp, #88
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_getinheritsched
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-88]
	cmp	r3, #1
	bne	.L53
	ldr	r3, .L60+68
	b	.L55
.L53:
	ldr	r3, .L60+72
	b	.L55
.L52:
	ldr	r3, .L60+76
.L55:
	mov	r1, r3
	ldr	r0, .L60+80
	bl	printf
	mov	r0, #10
	bl	putchar
.L49:
	sub	r0, fp, #80
	mov	r3, #0
	ldr	r2, .L60+84
	ldr	r1, [fp, #-68]
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L56
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+88
	bl	perror
	mov	r0, #1
	bl	exit
.L56:
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L57
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+92
	bl	perror
	mov	r0, #1
	bl	exit
.L57:
	ldr	r3, [fp, #-80]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L58
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r3, [r2]
	ldr	r0, .L60+96
	bl	perror
	mov	r0, #1
	bl	exit
.L58:
	mov	r0, #0
	bl	exit
.L61:
	.align	2
.L60:
	.word	.LC43
	.word	optarg
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC15
	.word	.LC38
	.word	.LC39
	.word	thread_start
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
