	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_sink_set_decompression_state ## -- Begin function intel_dp_sink_set_decompression_state
	.p2align	4, 0x90
_intel_dp_sink_set_decompression_state: ## @intel_dp_sink_set_decompression_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	movl	%edx, %ebx
	movq	_DP_DSC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	_DP_DECOMPRESSION_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	callq	_drm_dp_dpcd_writeb
	testl	%eax, %eax
	js	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_DSC_ENABLE,4,2              ## @DP_DSC_ENABLE
	.comm	_DP_DECOMPRESSION_EN,4,2        ## @DP_DECOMPRESSION_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to %s sink decompression state\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable"

L_.str.2:                               ## @.str.2
	.asciz	"disable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_sink_set_decompression_state ; -- Begin function intel_dp_sink_set_decompression_state
	.p2align	2
_intel_dp_sink_set_decompression_state: ; @intel_dp_sink_set_decompression_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, _DP_DSC_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_DSC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DP_DECOMPRESSION_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_DECOMPRESSION_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w2, #0
	csel	w2, wzr, w8, eq
	bl	_drm_dp_dpcd_writeb
	tbnz	w0, #31, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_DSC_ENABLE,4,2              ; @DP_DSC_ENABLE
	.comm	_DP_DECOMPRESSION_EN,4,2        ; @DP_DECOMPRESSION_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to %s sink decompression state\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable"

l_.str.2:                               ; @.str.2
	.asciz	"disable"

.subsections_via_symbols
