	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_core_perf_crtc_release_bw  ## -- Begin function dpu_core_perf_crtc_release_bw
	.p2align	4, 0x90
_dpu_core_perf_crtc_release_bw:         ## @dpu_core_perf_crtc_release_bw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	callq	__dpu_crtc_get_kms
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r14
	cmpl	$0, 12(%rax)
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_to_dpu_crtc
	movq	%rax, %r15
	movl	4(%rbx), %edi
	callq	_to_dpu_crtc_state
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	jle	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_7:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.9:
	movl	(%rbx), %edi
	callq	_trace_dpu_cmd_release_bw
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DPU_DEBUG
	movq	$0, (%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__dpu_core_perf_crtc_update_bus ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid crtc\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid kms\n"

L_.str.2:                               ## @.str.2
	.asciz	"Release BW crtc=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_core_perf_crtc_release_bw  ; -- Begin function dpu_core_perf_crtc_release_bw
	.p2align	2
_dpu_core_perf_crtc_release_bw:         ; @dpu_core_perf_crtc_release_bw
	.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
	bl	__dpu_crtc_get_kms
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_to_dpu_crtc
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_to_dpu_crtc_state
	add	x0, x20, #8
	bl	_atomic_dec_return
	cmp	x0, #0
	b.le	LBB0_8
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:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	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_ERROR
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.9:
	ldr	w0, [x19]
	bl	_trace_dpu_cmd_release_bw
	ldr	w1, [x19]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPU_DEBUG
	str	xzr, [x21]
	mov	x0, x20
	mov	x1, 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_core_perf_crtc_update_bus
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid crtc\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid kms\n"

l_.str.2:                               ; @.str.2
	.asciz	"Release BW crtc=%d\n"

.subsections_via_symbols
