	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_cec_adap_monitor_all_enable
_drm_dp_cec_adap_monitor_all_enable:    ## @drm_dp_cec_adap_monitor_all_enable
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_cec_get_drvdata
	movq	%rax, %r15
	movq	_CEC_CAP_MONITOR_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_DP_CEC_TUNNELING_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_drm_dp_dpcd_readb
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	movq	_DP_CEC_SNOOPING_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	orl	-28(%rbp), %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_5:
	notl	%edx
	andl	-28(%rbp), %edx
LBB0_6:
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_drm_dp_dpcd_writeb
LBB0_7:
	movq	%rax, %rcx
	sarq	$63, %rcx
	andl	%eax, %ecx
	testl	%r14d, %r14d
	cmovel	%r14d, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ## @CEC_CAP_MONITOR_ALL
	.comm	_DP_CEC_TUNNELING_CONTROL,4,2   ## @DP_CEC_TUNNELING_CONTROL
	.comm	_DP_CEC_SNOOPING_ENABLE,4,2     ## @DP_CEC_SNOOPING_ENABLE
	.no_dead_strip	_drm_dp_cec_adap_monitor_all_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_dp_cec_adap_monitor_all_enable
_drm_dp_cec_adap_monitor_all_enable:    ; @drm_dp_cec_adap_monitor_all_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_cec_get_drvdata
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _CEC_CAP_MONITOR_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CEC_CAP_MONITOR_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, _DP_CEC_TUNNELING_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DP_CEC_TUNNELING_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_drm_dp_dpcd_readb
	tbnz	x0, #63, LBB0_7
; %bb.2:
Lloh5:
	adrp	x8, _DP_CEC_SNOOPING_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_CEC_SNOOPING_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w19, LBB0_5
; %bb.3:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_6:
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_drm_dp_dpcd_writeb
LBB0_7:
	cmp	x0, #0
	ccmp	w19, #0, #4, lt
	csel	w0, w0, wzr, ne
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_CAP_MONITOR_ALL,4,2        ; @CEC_CAP_MONITOR_ALL
	.comm	_DP_CEC_TUNNELING_CONTROL,4,2   ; @DP_CEC_TUNNELING_CONTROL
	.comm	_DP_CEC_SNOOPING_ENABLE,4,2     ; @DP_CEC_SNOOPING_ENABLE
	.no_dead_strip	_drm_dp_cec_adap_monitor_all_enable
.subsections_via_symbols
