	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function suspend_test_thread
_suspend_test_thread:                   ## @suspend_test_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MAX_RT_PRIO@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	movq	%rax, -72(%rbp)
	movq	_suspend_threads_started@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCHED_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_sched_setscheduler_nocheck
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_warn
LBB0_2:
	movq	_cpuidle_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_this_cpu_read
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_cpuidle_get_cpu_driver
	movq	%rax, %r14
	movl	(%rax), %edx
	decl	%edx
	leaq	L_.str.1(%rip), %rdi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_dummy_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	xorl	%edx, %edx
	callq	_timer_setup_on_stack
	movq	_NUM_SUSPEND_CYCLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.3:
	movl	(%r14), %eax
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_NUM_SUSPEND_CYCLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	incl	-56(%rbp)                       ## 4-byte Folded Spill
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rax
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	(%rax,%r15,4), %edi
	callq	_usecs_to_jiffies
	addq	%rax, %rbx
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	xorl	%eax, %eax
	callq	_local_irq_disable
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_suspend_cpu
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_local_irq_enable
	movl	%r12d, %eax
	cmpq	%rax, %r15
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	testl	%r12d, %r12d
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	L_.str.2(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_pr_err
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_11
LBB0_14:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_del_timer
	movq	%rbx, %rdi
	callq	_destroy_timer_on_stack
	movq	_nb_active_threads@GOTPCREL(%rip), %rdi
	callq	_atomic_dec_return_relaxed
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_suspend_threads_done@GOTPCREL(%rip), %rdi
	callq	_complete
LBB0_16:
	movq	$0, -72(%rbp)
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCHED_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_sched_setscheduler_nocheck
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_warn
LBB0_18:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_set_current_state
	xorl	%eax, %eax
	callq	_kthread_should_park
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_20
LBB0_21:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_pr_info
	xorl	%eax, %eax
	callq	_kthread_parkme
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RT_PRIO,4,2                ## @MAX_RT_PRIO
	.comm	_suspend_threads_started,4,2    ## @suspend_threads_started
	.comm	_current,4,2                    ## @current
	.comm	_SCHED_FIFO,4,2                 ## @SCHED_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set suspend thread scheduler on CPU %d\n"

	.comm	_cpuidle_devices,4,2            ## @cpuidle_devices
L_.str.1:                               ## @.str.1
	.asciz	"CPU %d entering suspend cycles, states 1 through %d\n"

	.comm	_dummy_callback,4,2             ## @dummy_callback
	.comm	_NUM_SUSPEND_CYCLE,4,2          ## @NUM_SUSPEND_CYCLE
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.2:                               ## @.str.2
	.asciz	"Failed to suspend CPU %d: error %d (requested state %d, cycle %d)\n"

	.comm	_nb_active_threads,4,2          ## @nb_active_threads
	.comm	_suspend_threads_done,4,2       ## @suspend_threads_done
	.comm	_SCHED_NORMAL,4,2               ## @SCHED_NORMAL
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
L_.str.3:                               ## @.str.3
	.asciz	"CPU %d suspend test results: success %d, shallow states %d, errors %d\n"

	.no_dead_strip	_suspend_test_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function suspend_test_thread
_suspend_test_thread:                   ; @suspend_test_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_RT_PRIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RT_PRIO@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, _suspend_threads_started@GOTPAGE
Lloh4:
	ldr	x0, [x0, _suspend_threads_started@GOTPAGEOFF]
	bl	_wait_for_completion
Lloh5:
	adrp	x8, _current@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SCHED_FIFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCHED_FIFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_sched_setscheduler_nocheck
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
LBB0_2:
Lloh13:
	adrp	x8, _cpuidle_devices@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cpuidle_devices@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_this_cpu_read
	mov	x22, x0
	bl	_cpuidle_get_cpu_driver
	mov	x23, x0
	ldr	w8, [x0]
	sub	w2, w8, #1
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_info
Lloh18:
	adrp	x8, _dummy_callback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dummy_callback@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #16
	mov	w2, #0
	bl	_timer_setup_on_stack
Lloh21:
	adrp	x8, _NUM_SUSPEND_CYCLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NUM_SUSPEND_CYCLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.3:
	mov	w24, #0
	mov	w21, #0
	mov	w28, #0
	mov	w20, #0
	ldr	w8, [x23]
Lloh24:
	adrp	x25, _jiffies@GOTPAGE
Lloh25:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x9, _NUM_SUSPEND_CYCLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NUM_SUSPEND_CYCLE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	cmp	w24, w9
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #1
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w21, w21, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x23]
	cmp	x26, x8
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	ldr	x27, [x25]
	ldr	w0, [x8, x26, lsl #2]
	bl	_usecs_to_jiffies
	add	x1, x0, x27
	add	x0, sp, #16
	bl	_mod_timer
	bl	_local_irq_disable
	mov	x0, x22
	mov	x1, x23
	mov	x2, x26
	bl	_suspend_cpu
	mov	x27, x0
	bl	_local_irq_enable
	cmp	x26, w27, uxtw
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	tbnz	w27, #31, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	add	w28, w28, #1
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x27
	mov	x3, x26
	mov	x4, x24
	bl	_pr_err
	add	w20, w20, #1
	b	LBB0_9
LBB0_14:
	mov	w20, #0
	mov	w28, #0
	mov	w21, #0
LBB0_15:
	add	x0, sp, #16
	bl	_del_timer
	add	x0, sp, #16
	bl	_destroy_timer_on_stack
Lloh31:
	adrp	x0, _nb_active_threads@GOTPAGE
Lloh32:
	ldr	x0, [x0, _nb_active_threads@GOTPAGEOFF]
	bl	_atomic_dec_return_relaxed
	cbnz	x0, LBB0_17
; %bb.16:
Lloh33:
	adrp	x0, _suspend_threads_done@GOTPAGE
Lloh34:
	ldr	x0, [x0, _suspend_threads_done@GOTPAGEOFF]
	bl	_complete
LBB0_17:
	str	xzr, [sp, #24]
Lloh35:
	adrp	x8, _current@GOTPAGE
Lloh36:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _SCHED_NORMAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SCHED_NORMAL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_sched_setscheduler_nocheck
	cbz	x0, LBB0_19
; %bb.18:
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_warn
LBB0_19:
Lloh43:
	adrp	x22, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh44:
	ldr	x22, [x22, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_set_current_state
	bl	_kthread_should_park
	cbnz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	bl	_schedule
	b	LBB0_20
LBB0_22:
	stp	x28, x20, [sp]
Lloh45:
	adrp	x0, l_.str.3@PAGE
Lloh46:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_pr_info
	bl	_kthread_parkme
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RT_PRIO,4,2                ; @MAX_RT_PRIO
	.comm	_suspend_threads_started,4,2    ; @suspend_threads_started
	.comm	_current,4,2                    ; @current
	.comm	_SCHED_FIFO,4,2                 ; @SCHED_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set suspend thread scheduler on CPU %d\n"

	.comm	_cpuidle_devices,4,2            ; @cpuidle_devices
l_.str.1:                               ; @.str.1
	.asciz	"CPU %d entering suspend cycles, states 1 through %d\n"

	.comm	_dummy_callback,4,2             ; @dummy_callback
	.comm	_NUM_SUSPEND_CYCLE,4,2          ; @NUM_SUSPEND_CYCLE
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.2:                               ; @.str.2
	.asciz	"Failed to suspend CPU %d: error %d (requested state %d, cycle %d)\n"

	.comm	_nb_active_threads,4,2          ; @nb_active_threads
	.comm	_suspend_threads_done,4,2       ; @suspend_threads_done
	.comm	_SCHED_NORMAL,4,2               ; @SCHED_NORMAL
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
l_.str.3:                               ; @.str.3
	.asciz	"CPU %d suspend test results: success %d, shallow states %d, errors %d\n"

	.no_dead_strip	_suspend_test_thread
.subsections_via_symbols
