	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_dm_irq_schedule_work
_amdgpu_dm_irq_schedule_work:           ## @amdgpu_dm_irq_schedule_work
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_DM_IRQ_TABLE_LOCK
	movq	(%rbx), %rax
	movl	%r14d, %r15d
	leaq	(%rax,%r15,8), %rdi
	addq	$4, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DM_IRQ_TABLE_UNLOCK            ## TAILCALL
LBB0_1:
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_DM_IRQ_TABLE_UNLOCK
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	leaq	(%r12,%r15,8), %rdi
	callq	_schedule_work
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_INFO                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amdgpu_dm_irq_schedule_work FAILED src %d\n"

	.no_dead_strip	_amdgpu_dm_irq_schedule_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_dm_irq_schedule_work
_amdgpu_dm_irq_schedule_work:           ; @amdgpu_dm_irq_schedule_work
	.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	x19, x1
	mov	x20, x0
	bl	_DM_IRQ_TABLE_LOCK
	ldr	x8, [x20]
	add	x8, x8, w19, uxtw #3
	add	x0, x8, #4
	bl	_list_empty
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_DM_IRQ_TABLE_UNLOCK
LBB0_2:
	ldr	x21, [x20]
	mov	x0, x20
	bl	_DM_IRQ_TABLE_UNLOCK
	cbz	x21, LBB0_4
; %bb.3:
	mov	w8, w19
	add	x0, x21, x8, lsl #3
	bl	_schedule_work
	cbz	w0, LBB0_5
LBB0_4:
	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
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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
	b	_DRM_INFO
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amdgpu_dm_irq_schedule_work FAILED src %d\n"

	.no_dead_strip	_amdgpu_dm_irq_schedule_work
.subsections_via_symbols
