	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_hdcp_off              ## -- Begin function msm_hdmi_hdcp_off
	.p2align	4, 0x90
_msm_hdmi_hdcp_off:                     ## @msm_hdmi_hdcp_off
	.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
	movq	%rdi, %r14
	movq	_HDCP_STATE_INACTIVE@GOTPCREL(%rip), %r15
	movq	(%rdi), %rax
	leaq	L_.str(%rip), %rdi
	cmpq	%rax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_HDCP_STATE_NO_AKSV@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	24(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_REG_HDMI_HPD_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movq	_HDMI_HPD_CTRL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_hdmi_write
	movq	_REG_HDMI_HDCP_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_AUTH_ABORT_EV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rsi
	callq	_set_bit
	leaq	16(%r14), %rdi
	callq	_wake_up_all
	leaq	12(%r14), %rdi
	callq	_cancel_work_sync
	leaq	8(%r14), %rdi
	callq	_cancel_work_sync
	movq	_REG_HDMI_HDCP_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdmi_write
	movq	_REG_HDMI_HDCP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdmi_write
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_REG_HDMI_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movq	_HDMI_CTRL_ENCRYPTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_hdmi_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movq	_HDMI_HPD_CTRL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_hdmi_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rax
	movq	%rax, (%r14)
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCP_STATE_INACTIVE,8,3        ## @HDCP_STATE_INACTIVE
	.comm	_HDCP_STATE_NO_AKSV,8,3         ## @HDCP_STATE_NO_AKSV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdcp inactive or no aksv. returning"

	.comm	_REG_HDMI_HPD_CTRL,4,2          ## @REG_HDMI_HPD_CTRL
	.comm	_HDMI_HPD_CTRL_ENABLE,4,2       ## @HDMI_HPD_CTRL_ENABLE
	.comm	_REG_HDMI_HDCP_INT_CTRL,4,2     ## @REG_HDMI_HDCP_INT_CTRL
	.comm	_AUTH_ABORT_EV,4,2              ## @AUTH_ABORT_EV
	.comm	_REG_HDMI_HDCP_RESET,4,2        ## @REG_HDMI_HDCP_RESET
	.comm	_HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE,4,2 ## @HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE
	.comm	_REG_HDMI_HDCP_CTRL,4,2         ## @REG_HDMI_HDCP_CTRL
	.comm	_REG_HDMI_CTRL,4,2              ## @REG_HDMI_CTRL
	.comm	_HDMI_CTRL_ENCRYPTED,4,2        ## @HDMI_CTRL_ENCRYPTED
L_.str.1:                               ## @.str.1
	.asciz	"HDCP: Off"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_hdcp_off              ; -- Begin function msm_hdmi_hdcp_off
	.p2align	2
_msm_hdmi_hdcp_off:                     ; @msm_hdmi_hdcp_off
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _HDCP_STATE_INACTIVE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HDCP_STATE_INACTIVE@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0]
Lloh2:
	adrp	x10, _HDCP_STATE_NO_AKSV@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HDCP_STATE_NO_AKSV@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #24]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x22, _REG_HDMI_HPD_CTRL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _REG_HDMI_HPD_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hdmi_read
Lloh9:
	adrp	x23, _HDMI_HPD_CTRL_ENABLE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _HDMI_HPD_CTRL_ENABLE@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hdmi_write
Lloh11:
	adrp	x8, _REG_HDMI_HDCP_INT_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_HDMI_HDCP_INT_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_hdmi_write
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh14:
	adrp	x8, _AUTH_ABORT_EV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AUTH_ABORT_EV@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	add	x0, x19, #16
	bl	_wake_up_all
	add	x0, x19, #12
	bl	_cancel_work_sync
	add	x0, x19, #8
	bl	_cancel_work_sync
Lloh17:
	adrp	x8, _REG_HDMI_HDCP_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_HDMI_HDCP_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hdmi_write
Lloh23:
	adrp	x8, _REG_HDMI_HDCP_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_HDMI_HDCP_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_hdmi_write
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh26:
	adrp	x24, _REG_HDMI_CTRL@GOTPAGE
Lloh27:
	ldr	x24, [x24, _REG_HDMI_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hdmi_read
Lloh28:
	adrp	x8, _HDMI_CTRL_ENCRYPTED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDMI_CTRL_ENCRYPTED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hdmi_write
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hdmi_read
	ldr	w8, [x23]
	orr	w2, w8, w0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hdmi_write
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21]
	str	x8, [x19]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DBG
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCP_STATE_INACTIVE,8,3        ; @HDCP_STATE_INACTIVE
	.comm	_HDCP_STATE_NO_AKSV,8,3         ; @HDCP_STATE_NO_AKSV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdcp inactive or no aksv. returning"

	.comm	_REG_HDMI_HPD_CTRL,4,2          ; @REG_HDMI_HPD_CTRL
	.comm	_HDMI_HPD_CTRL_ENABLE,4,2       ; @HDMI_HPD_CTRL_ENABLE
	.comm	_REG_HDMI_HDCP_INT_CTRL,4,2     ; @REG_HDMI_HDCP_INT_CTRL
	.comm	_AUTH_ABORT_EV,4,2              ; @AUTH_ABORT_EV
	.comm	_REG_HDMI_HDCP_RESET,4,2        ; @REG_HDMI_HDCP_RESET
	.comm	_HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE,4,2 ; @HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE
	.comm	_REG_HDMI_HDCP_CTRL,4,2         ; @REG_HDMI_HDCP_CTRL
	.comm	_REG_HDMI_CTRL,4,2              ; @REG_HDMI_CTRL
	.comm	_HDMI_CTRL_ENCRYPTED,4,2        ; @HDMI_CTRL_ENCRYPTED
l_.str.1:                               ; @.str.1
	.asciz	"HDCP: Off"

.subsections_via_symbols
