	.file	"extr_turnstile_multihop.c_thread_create_at_qos.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"set priority failed\n"
.LC1:
	.string	"pthread created\n"
	.text
	.p2align 4
	.type	thread_create_at_qos, @function
thread_create_at_qos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR PRIO_DARWIN_ROLE_UI_FOCAL[rip]
	mov	edi, DWORD PTR PRIO_DARWIN_ROLE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	setpriority@PLT
	test	eax, eax
	jne	.L9
.L2:
	lea	rbp, 20[rsp]
	mov	rdi, rbp
	call	pthread_attr_init@PLT
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, rbp
	call	pthread_attr_set_qos_class_np@PLT
	xor	ecx, ecx
	mov	rdx, r12
	mov	rsi, rbp
	lea	rdi, 16[rsp]
	call	pthread_create@PLT
	lea	rdi, .LC1[rip]
	call	T_LOG@PLT
	mov	edi, DWORD PTR 16[rsp]
	xor	edx, edx
	lea	rsi, 12[rsp]
	call	pthread_get_qos_class_np@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	T_LOG@PLT
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	thread_create_at_qos, .-thread_create_at_qos
	.comm	PRIO_DARWIN_ROLE_UI_FOCAL,4,4
	.comm	PRIO_DARWIN_ROLE,4,4
	.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_turnstile_multihop.c_thread_create_at_qos.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set priority failed\012\000"
	.align	2
.LC1:
	.ascii	"pthread created\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_create_at_qos, %function
thread_create_at_qos:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	ldr	r2, .L11+4
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r3, .L11+8
	sub	sp, sp, #20
	mov	r4, r1
	ldr	r2, [r2]
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	setpriority
	cmp	r0, #0
	bne	.L9
.L2:
	add	r0, sp, #8
	bl	pthread_attr_init
	mov	r1, r5
	mov	r2, #0
	add	r0, sp, #8
	bl	pthread_attr_set_qos_class_np
	mov	r3, #0
	mov	r2, r4
	add	r1, sp, #8
	add	r0, sp, #4
	bl	pthread_create
	ldr	r0, .L11+12
	bl	T_LOG
	mov	r2, #0
	mov	r1, sp
	ldr	r0, [sp, #4]
	bl	pthread_get_qos_class_np
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r0, .L11+16
	bl	T_LOG
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	PRIO_DARWIN_ROLE
	.word	PRIO_DARWIN_ROLE_UI_FOCAL
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	thread_create_at_qos, .-thread_create_at_qos
	.comm	PRIO_DARWIN_ROLE_UI_FOCAL,4,4
	.comm	PRIO_DARWIN_ROLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
