	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ati_remote_compute_accel
_ati_remote_compute_accel:              ## @ati_remote_compute_accel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	8(%rdi), %rbx
	movl	$250, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, (%r15)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_2:
	movq	(%r15), %rbx
	movl	$125, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_before
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.3:
	movq	(%r15), %rbx
	movl	$250, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_before
	movq	%rax, %rcx
	movl	$2, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.4:
	movq	(%r15), %rbx
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_before
	movq	%rax, %rcx
	movl	$4, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.5:
	movq	(%r15), %rbx
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_before
	movq	%rax, %rcx
	movl	$6, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:
	movq	(%r15), %rbx
	movl	$1500, %edi                     ## imm = 0x5DC
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_before
	movq	%rax, %rcx
	movl	$9, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.7:
	movq	(%r15), %rbx
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	movl	$20, %ecx
	movl	$13, %eax
	cmovel	%ecx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_ati_remote_compute_accel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ati_remote_compute_accel
_ati_remote_compute_accel:              ; @ati_remote_compute_accel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x21, [x0, #8]
	mov	w0, #250
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_time_after
	cbz	x0, LBB0_2
; %bb.1:
	str	x19, [x20]
	mov	w0, #1
	b	LBB0_13
LBB0_2:
	ldr	x21, [x20]
	mov	w0, #125
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_time_before
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_13
LBB0_4:
	ldr	x21, [x20]
	mov	w0, #250
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #2
	b	LBB0_13
LBB0_6:
	ldr	x21, [x20]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_time_before
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #4
	b	LBB0_13
LBB0_8:
	ldr	x21, [x20]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_time_before
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #6
	b	LBB0_13
LBB0_10:
	ldr	x21, [x20]
	mov	w0, #1500
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	mov	x0, x19
	bl	_time_before
	cbz	x0, LBB0_12
; %bb.11:
	mov	w0, #9
	b	LBB0_13
LBB0_12:
	ldr	x20, [x20]
	mov	w0, #2000
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_time_before
	cmp	x0, #0
	mov	w8, #13
	mov	w9, #20
	csel	w0, w9, w8, eq
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_ati_remote_compute_accel
.subsections_via_symbols
