	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_cmd_irq_control
_dpu_encoder_phys_cmd_irq_control:      ## @dpu_encoder_phys_cmd_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_7
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_to_dpu_encoder_phys_cmd
	movl	16(%r12), %edi
	callq	_DRMID
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	movq	_PINGPONG_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_cmd_irq_ctrl
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.2:
	movq	_INTR_IDX_PINGPONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dpu_encoder_helper_register_irq
	movq	_INTR_IDX_UNDERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dpu_encoder_helper_register_irq
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dpu_encoder_phys_cmd_control_vblank_irq
	movq	%r12, %rdi
	callq	_dpu_encoder_phys_cmd_is_master
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_INTR_IDX_CTL_START@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
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_dpu_encoder_phys_cmd_is_master
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_INTR_IDX_CTL_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dpu_encoder_helper_unregister_irq
LBB0_6:
	movq	_INTR_IDX_UNDERRUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dpu_encoder_helper_unregister_irq
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dpu_encoder_phys_cmd_control_vblank_irq
	movq	_INTR_IDX_PINGPONG@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
	.cfi_endproc
                                        ## -- End function
	.comm	_PINGPONG_0,8,3                 ## @PINGPONG_0
	.comm	_INTR_IDX_PINGPONG,4,2          ## @INTR_IDX_PINGPONG
	.comm	_INTR_IDX_UNDERRUN,4,2          ## @INTR_IDX_UNDERRUN
	.comm	_INTR_IDX_CTL_START,4,2         ## @INTR_IDX_CTL_START
	.no_dead_strip	_dpu_encoder_phys_cmd_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_cmd_irq_control
_dpu_encoder_phys_cmd_irq_control:      ; @dpu_encoder_phys_cmd_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_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_to_dpu_encoder_phys_cmd
	ldr	w0, [x19, #16]
	bl	_DRMID
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PINGPONG_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PINGPONG_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_cmd_irq_ctrl
	cbz	w20, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _INTR_IDX_PINGPONG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTR_IDX_PINGPONG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dpu_encoder_helper_register_irq
Lloh6:
	adrp	x8, _INTR_IDX_UNDERRUN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTR_IDX_UNDERRUN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dpu_encoder_helper_register_irq
	mov	x0, x19
	mov	w1, #1
	bl	_dpu_encoder_phys_cmd_control_vblank_irq
	mov	x0, x19
	bl	_dpu_encoder_phys_cmd_is_master
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _INTR_IDX_CTL_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTR_IDX_CTL_START@GOTPAGEOFF]
Lloh11:
	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
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:
	mov	x0, x19
	bl	_dpu_encoder_phys_cmd_is_master
	cbz	x0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _INTR_IDX_CTL_START@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTR_IDX_CTL_START@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dpu_encoder_helper_unregister_irq
LBB0_7:
Lloh15:
	adrp	x8, _INTR_IDX_UNDERRUN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTR_IDX_UNDERRUN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dpu_encoder_helper_unregister_irq
	mov	x0, x19
	mov	w1, #0
	bl	_dpu_encoder_phys_cmd_control_vblank_irq
Lloh18:
	adrp	x8, _INTR_IDX_PINGPONG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTR_IDX_PINGPONG@GOTPAGEOFF]
Lloh20:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PINGPONG_0,8,3                 ; @PINGPONG_0
	.comm	_INTR_IDX_PINGPONG,4,2          ; @INTR_IDX_PINGPONG
	.comm	_INTR_IDX_UNDERRUN,4,2          ; @INTR_IDX_UNDERRUN
	.comm	_INTR_IDX_CTL_START,4,2         ; @INTR_IDX_CTL_START
	.no_dead_strip	_dpu_encoder_phys_cmd_irq_control
.subsections_via_symbols
