	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_encoder_helper_unregister_irq ## -- Begin function dpu_encoder_helper_unregister_irq
	.p2align	4, 0x90
_dpu_encoder_helper_unregister_irq:     ## @dpu_encoder_helper_unregister_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, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %r14
	leaq	(,%r14,4), %r15
	addq	%r13, %r15
	cmpl	$0, (%r13,%r14,4)
	js	LBB0_3
## %bb.4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_dpu_core_irq_disable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_DRMID
	movl	4(%r13,%r14,4), %ecx
	movl	(%r15), %r8d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_6:
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	leaq	8(,%r14,4), %rdx
	addq	%r13, %rdx
	callq	_dpu_core_irq_unregister_callback
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_DRMID
	movl	4(%r13,%r14,4), %ecx
	movl	(%r15), %r8d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_8:
	movl	(%rbx), %edi
	callq	_DRMID
	movl	4(%r13,%r14,4), %edx
	movl	(%r15), %ecx
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_trace_dpu_enc_irq_unregister_success
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	(%rbx), %edi
	callq	_DRMID
	movl	4(%r13,%r14,4), %ecx
	movl	(%r15), %r8d
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_9:
	movl	%ebx, %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	"duplicate unregister id=%u, intr=%d, hw=%d, irq=%d"

L_.str.2:                               ## @.str.2
	.asciz	"disable failed id=%u, intr=%d, hw=%d, irq=%d ret=%d"

L_.str.3:                               ## @.str.3
	.asciz	"unreg cb fail id=%u, intr=%d, hw=%d, irq=%d ret=%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_encoder_helper_unregister_irq ; -- Begin function dpu_encoder_helper_unregister_irq
	.p2align	2
_dpu_encoder_helper_unregister_irq:     ; @dpu_encoder_helper_unregister_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_7
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	mov	w24, w1
	mov	w8, #12
	umaddl	x20, w1, w8, x23
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_8
; %bb.2:
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	w2, #1
	bl	_dpu_core_irq_disable
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	w0, [x21]
	bl	_DRMID
	mov	x1, x0
	mov	w8, #12
	madd	x8, x24, x8, x23
	ldr	w3, [x8, #4]
	ldr	w4, [x20]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	str	x22, [sp]
	mov	x2, x19
	bl	_DRM_ERROR
LBB0_4:
	ldr	w0, [x21, #4]
	ldr	w1, [x20]
	mov	w8, #12
	madd	x8, x24, x8, x23
	add	x2, x8, #8
	bl	_dpu_core_irq_unregister_callback
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	ldr	w0, [x21]
	bl	_DRMID
	mov	x1, x0
	mov	w8, #12
	madd	x8, x24, x8, x23
	ldr	w3, [x8, #4]
	ldr	w4, [x20]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	str	x22, [sp]
	mov	x2, x19
	bl	_DRM_ERROR
LBB0_6:
	ldr	w0, [x21]
	bl	_DRMID
	mov	w8, #12
	madd	x8, x24, x8, x23
	ldr	w2, [x8, #4]
	ldr	w3, [x20]
	mov	x1, x19
	bl	_trace_dpu_enc_irq_unregister_success
	mov	w0, #0
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x20]
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21]
	bl	_DRMID
	mov	x1, x0
	mov	w8, #12
	madd	x8, x24, x8, x23
	ldr	w3, [x8, #4]
	ldr	w4, [x20]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_DRM_ERROR
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.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	"duplicate unregister id=%u, intr=%d, hw=%d, irq=%d"

l_.str.2:                               ; @.str.2
	.asciz	"disable failed id=%u, intr=%d, hw=%d, irq=%d ret=%d"

l_.str.3:                               ; @.str.3
	.asciz	"unreg cb fail id=%u, intr=%d, hw=%d, irq=%d ret=%d"

.subsections_via_symbols
