	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_vid_vblank_irq
_dpu_encoder_phys_vid_vblank_irq:       ## @dpu_encoder_phys_vid_vblank_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ATRACE_BEGIN
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_4:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	movl	20(%rbx), %edi
	callq	_spin_lock_irqsave
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	*%rcx
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r12d, %r12d
LBB0_7:
	movq	%r14, %rdi
	callq	*8(%r14)
	testl	%r12d, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_atomic_add_unless
LBB0_9:
	movl	20(%rbx), %edi
	callq	_spin_unlock_irqrestore
	leaq	16(%rbx), %rdi
	callq	_wake_up_all
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movq	_DPU_ENCODER_FRAME_EVENT_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rsi
	callq	*(%rax)
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ATRACE_END                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vblank_irq"

	.comm	_DPU_ENCODER_FRAME_EVENT_DONE,4,2 ## @DPU_ENCODER_FRAME_EVENT_DONE
	.no_dead_strip	_dpu_encoder_phys_vid_vblank_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_vid_vblank_irq
_dpu_encoder_phys_vid_vblank_irq:       ; @dpu_encoder_phys_vid_vblank_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_6
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #32]
	cbz	x20, LBB0_6
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ATRACE_BEGIN
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x19
	blr	x8
LBB0_4:
	add	x21, x19, #24
	mov	x0, x21
	bl	_atomic_read
	ldr	w0, [x19, #20]
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x20
	blr	x8
	mov	x22, x0
	b	LBB0_8
LBB0_6:
	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_7:
	mov	w22, #0
LBB0_8:
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	tst	w0, w22
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x21
	mov	w1, #-1
	mov	w2, #0
	bl	_atomic_add_unless
LBB0_10:
	ldr	w0, [x19, #20]
	bl	_spin_unlock_irqrestore
	add	x0, x19, #16
	bl	_wake_up_all
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
Lloh2:
	adrp	x9, _DPU_ENCODER_FRAME_EVENT_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DPU_ENCODER_FRAME_EVENT_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x1, x19
	blr	x8
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vblank_irq"

	.comm	_DPU_ENCODER_FRAME_EVENT_DONE,4,2 ; @DPU_ENCODER_FRAME_EVENT_DONE
	.no_dead_strip	_dpu_encoder_phys_vid_vblank_irq
.subsections_via_symbols
