	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_cmd_pp_tx_done_irq
_dpu_encoder_phys_cmd_pp_tx_done_irq:   ## @dpu_encoder_phys_cmd_pp_tx_done_irq
	.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
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.2:
	movq	_DPU_ENCODER_FRAME_EVENT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ATRACE_BEGIN
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	*%rax
LBB0_4:
	movl	20(%rbx), %edi
	callq	_spin_lock_irqsave
	leaq	24(%rbx), %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_atomic_add_unless
	movl	%eax, %r15d
	movl	20(%rbx), %edi
	callq	_spin_unlock_irqrestore
	movl	16(%rbx), %edi
	callq	_DRMID
	movq	8(%rbx), %rcx
	movq	(%rcx), %rsi
	movq	_PINGPONG_0@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_trace_dpu_enc_phys_cmd_pp_tx_done
	movq	%rbx, %rdi
	callq	_wake_up_all
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ATRACE_END                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_ENCODER_FRAME_EVENT_DONE,4,2 ## @DPU_ENCODER_FRAME_EVENT_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pp_done_irq"

	.comm	_PINGPONG_0,8,3                 ## @PINGPONG_0
	.no_dead_strip	_dpu_encoder_phys_cmd_pp_tx_done_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_encoder_phys_cmd_pp_tx_done_irq
_dpu_encoder_phys_cmd_pp_tx_done_irq:   ; @dpu_encoder_phys_cmd_pp_tx_done_irq
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _DPU_ENCODER_FRAME_EVENT_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_ENCODER_FRAME_EVENT_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ATRACE_BEGIN
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	mov	x1, x19
	mov	x2, x20
	blr	x8
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_spin_lock_irqsave
	add	x0, x19, #24
	mov	w1, #-1
	mov	w2, #0
	bl	_atomic_add_unless
	mov	x21, x0
	ldr	w0, [x19, #20]
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #16]
	bl	_DRMID
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PINGPONG_0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PINGPONG_0@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x1, x8, x9
	mov	x2, x21
	mov	x3, x20
	bl	_trace_dpu_enc_phys_cmd_pp_tx_done
	mov	x0, x19
	bl	_wake_up_all
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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	_DPU_ATRACE_END
LBB0_5:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_ENCODER_FRAME_EVENT_DONE,4,2 ; @DPU_ENCODER_FRAME_EVENT_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pp_done_irq"

	.comm	_PINGPONG_0,8,3                 ; @PINGPONG_0
	.no_dead_strip	_dpu_encoder_phys_cmd_pp_tx_done_irq
.subsections_via_symbols
