	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_phys_vid_control_vblank_irq
_dpu_encoder_phys_vid_control_vblank_irq: ## @dpu_encoder_phys_vid_control_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	12(%rdi), %r13
	movq	%r13, %rdi
	callq	_atomic_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_dpu_encoder_phys_vid_is_master
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movl	%r15d, %eax
	orl	%r14d, %eax
	jne	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	testl	%r13d, %r13d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	8(%rbx), %edi
	callq	_DRMID
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_atomic_read
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_DRM_DEBUG_KMS
	movq	%r13, %rdi
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.7:
	movq	_INTR_IDX_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dpu_encoder_helper_register_irq
	jmp	LBB0_10
LBB0_8:
	callq	_atomic_dec_return
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movq	_INTR_IDX_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dpu_encoder_helper_unregister_irq
LBB0_10:
	movl	%eax, %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r13d, %r13d
	je	LBB0_13
LBB0_12:
	movl	8(%rbx), %edi
	callq	_DRMID
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_INTF_0@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_DRM_ERROR
	movl	%r13d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid encoder\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"id:%u enable=%d/%d\n"

	.comm	_INTR_IDX_VSYNC,4,2             ## @INTR_IDX_VSYNC
L_.str.2:                               ## @.str.2
	.asciz	"failed: id:%u intf:%d ret:%d enable:%d refcnt:%d\n"

	.comm	_INTF_0,8,3                     ## @INTF_0
	.no_dead_strip	_dpu_encoder_phys_vid_control_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_control_vblank_irq
_dpu_encoder_phys_vid_control_vblank_irq: ; @dpu_encoder_phys_vid_control_vblank_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	add	x22, x0, #12
	mov	x0, x22
	bl	_atomic_read
	mov	x20, x0
	mov	x0, x21
	bl	_dpu_encoder_phys_vid_is_master
	cbz	w0, LBB0_9
; %bb.2:
	orr	w8, w19, w20
	cbnz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w22, LBB0_11
	b	LBB0_12
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_DRMID
	mov	x23, x0
	mov	x0, x22
	bl	_atomic_read
	mov	x3, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x19
	bl	_DRM_DEBUG_KMS
	mov	x0, x22
	cbz	w19, LBB0_8
; %bb.6:
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.7:
Lloh10:
	adrp	x8, _INTR_IDX_VSYNC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTR_IDX_VSYNC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dpu_encoder_helper_register_irq
	mov	x22, x0
	cbnz	w22, LBB0_11
	b	LBB0_12
LBB0_8:
	bl	_atomic_dec_return
	cbz	x0, LBB0_10
LBB0_9:
	mov	w22, #0
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x8, _INTR_IDX_VSYNC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INTR_IDX_VSYNC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dpu_encoder_helper_unregister_irq
	mov	x22, x0
	cbz	w22, LBB0_12
LBB0_11:
	ldr	w0, [x21, #8]
	bl	_DRMID
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _INTF_0@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INTF_0@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	sub	x2, x8, x9
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x3, x22
	mov	x4, x19
	mov	x5, x20
	bl	_DRM_ERROR
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid encoder\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"id:%u enable=%d/%d\n"

	.comm	_INTR_IDX_VSYNC,4,2             ; @INTR_IDX_VSYNC
l_.str.2:                               ; @.str.2
	.asciz	"failed: id:%u intf:%d ret:%d enable:%d refcnt:%d\n"

	.comm	_INTF_0,8,3                     ; @INTF_0
	.no_dead_strip	_dpu_encoder_phys_vid_control_vblank_irq
.subsections_via_symbols
