	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_fence_process           ## -- Begin function amdgpu_fence_process
	.p2align	4, 0x90
_amdgpu_fence_process:                  ## @amdgpu_fence_process
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	28(%rdi), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_atomic_read
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_amdgpu_fence_read
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_atomic_cmpxchg
	cmpq	%rbx, %rax
	jne	LBB0_1
## %bb.2:
	leaq	24(%r14), %rdi
	callq	_del_timer
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	(%r14), %r15
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_amdgpu_fence_schedule_fallback
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rbx, %r15
	sete	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.6:
	movq	8(%r14), %rax
	andq	%rax, %rbx
	andq	%rax, %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	andq	%rax, %rbx
	movq	16(%r14), %r12
	movq	(%r12,%rbx,8), %rdi
	movl	$1, %esi
	callq	_rcu_dereference_protected
	movq	%rax, %r13
	movq	(%r12,%rbx,8), %rdi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	testq	%r13, %r13
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_dma_fence_signal
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_DMA_FENCE_TRACE
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_dma_fence_put
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r15, %rbx
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r14), %rax
	jmp	LBB0_7
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"signaled from irq context\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_fence_process           ; -- Begin function amdgpu_fence_process
	.p2align	2
_amdgpu_fence_process:                  ; @amdgpu_fence_process
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	add	x22, x0, #28
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_atomic_read
	mov	x20, x0
	mov	x0, x19
	bl	_amdgpu_fence_read
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_atomic_cmpxchg
	cmp	x0, x20
	b.ne	LBB0_1
; %bb.2:
	add	x0, x19, #24
	bl	_del_timer
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cmp	x21, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_amdgpu_fence_schedule_fallback
LBB0_5:
	cmp	x21, x20
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #0
	b	LBB0_16
LBB0_7:
	ldr	x8, [x19, #8]
	and	x22, x8, x20
	and	x23, x8, x21
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x22, #1
	and	x22, x9, x8
	ldr	x24, [x19, #16]
	lsl	x25, x22, #3
	ldr	x0, [x24, x25]
	mov	w1, #1
	bl	_rcu_dereference_protected
	mov	x21, x0
	ldr	x0, [x24, x25]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	cbz	x21, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_dma_fence_signal
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_BUG
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_DMA_FENCE_TRACE
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_dma_fence_put
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x22, x23
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	b	LBB0_8
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"signaled from irq context\n"

.subsections_via_symbols
