	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_send_event_locked          ## -- Begin function drm_send_event_locked
	.p2align	4, 0x90
_drm_send_event_locked:                 ## @drm_send_event_locked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_assert_spin_locked
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_complete_all
	movq	24(%rbx), %rdi
	callq	*32(%rbx)
	movq	$0, 24(%rbx)
LBB0_2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_dma_fence_signal
	movq	16(%rbx), %rdi
	callq	_dma_fence_put
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.6:
	leaq	12(%rbx), %rdi
	callq	_list_del
	leaq	8(%rbx), %rdi
	movq	(%rbx), %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_send_event_locked          ; -- Begin function drm_send_event_locked
	.p2align	2
_drm_send_event_locked:                 ; @drm_send_event_locked
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_assert_spin_locked
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_complete_all
	ldp	x0, x8, [x19, #24]
	blr	x8
	str	xzr, [x19, #24]
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_dma_fence_signal
	ldr	x0, [x19, #16]
	bl	_dma_fence_put
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #12
	bl	_list_del
	add	x0, x19, #8
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_list_add_tail
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
