	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guc_action_deregister_ct_buffer
_guc_action_deregister_ct_buffer:       ## @guc_action_deregister_ct_buffer
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	%esi, -48(%rbp)
	movl	%edx, -44(%rbp)
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_intel_guc_send_mmio
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	callq	_guc_ct_buffer_type_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_DRM_ERROR
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER,4,2 ## @INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CT: deregister %s buffer failed; owner=%d err=%d\n"

	.no_dead_strip	_guc_action_deregister_ct_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guc_action_deregister_ct_buffer
_guc_action_deregister_ct_buffer:       ; @guc_action_deregister_ct_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w1, [sp, #12]
	str	w2, [sp, #20]
	add	x0, sp, #12
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #12
	mov	x0, x21
	mov	x3, #0
	mov	w4, #0
	bl	_intel_guc_send_mmio
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_guc_ct_buffer_type_to_str
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_DRM_ERROR
LBB0_2:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER,4,2 ; @INTEL_GUC_ACTION_DEREGISTER_COMMAND_TRANSPORT_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CT: deregister %s buffer failed; owner=%d err=%d\n"

	.no_dead_strip	_guc_action_deregister_ct_buffer
.subsections_via_symbols
