	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_vid_irq_control
_dpu_encoder_phys_vid_irq_control:      ## @dpu_encoder_phys_vid_irq_control
	.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_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	16(%rdi), %edi
	callq	_DRMID
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	movq	_INTF_0@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_atomic_read
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_trace_dpu_enc_phys_vid_irq_ctrl
	movq	%r12, %rdi
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movl	$1, %esi
	callq	_dpu_encoder_phys_vid_control_vblank_irq
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%esi, %esi
	callq	_dpu_encoder_phys_vid_control_vblank_irq
	movq	_INTR_IDX_UNDERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dpu_encoder_helper_unregister_irq ## TAILCALL
LBB0_3:
	movq	_INTR_IDX_UNDERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dpu_encoder_helper_register_irq ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTF_0,8,3                     ## @INTF_0
	.comm	_INTR_IDX_UNDERRUN,4,2          ## @INTR_IDX_UNDERRUN
	.no_dead_strip	_dpu_encoder_phys_vid_irq_control
.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_irq_control
_dpu_encoder_phys_vid_irq_control:      ; @dpu_encoder_phys_vid_irq_control
	.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_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_DRMID
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _INTF_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTF_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x22, x8, x9
	mov	x0, x19
	bl	_atomic_read
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_trace_dpu_enc_phys_vid_irq_ctrl
	mov	x0, x19
	cbz	w20, LBB0_4
; %bb.2:
	mov	w1, #1
	bl	_dpu_encoder_phys_vid_control_vblank_irq
	cbz	w0, LBB0_5
LBB0_3:
	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_4:
	mov	w1, #0
	bl	_dpu_encoder_phys_vid_control_vblank_irq
Lloh3:
	adrp	x8, _INTR_IDX_UNDERRUN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTR_IDX_UNDERRUN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, 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	_dpu_encoder_helper_unregister_irq
LBB0_5:
Lloh6:
	adrp	x8, _INTR_IDX_UNDERRUN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTR_IDX_UNDERRUN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, 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	_dpu_encoder_helper_register_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INTF_0,8,3                     ; @INTF_0
	.comm	_INTR_IDX_UNDERRUN,4,2          ; @INTR_IDX_UNDERRUN
	.no_dead_strip	_dpu_encoder_phys_vid_irq_control
.subsections_via_symbols
