	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_hdcp_on               ## -- Begin function msm_hdmi_hdcp_on
	.p2align	4, 0x90
_msm_hdmi_hdcp_on:                      ## @msm_hdmi_hdcp_on
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HDCP_STATE_INACTIVE@GOTPCREL(%rip), %rcx
	movq	(%rdi), %rax
	cmpq	%rax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_HDCP_STATE_NO_AKSV@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_REG_HDMI_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_hdmi_read
	movq	_HDMI_CTRL_ENCRYPTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_hdmi_write
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_HDCP_STATE_AUTHENTICATING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	(%r14), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	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	"still active or activating or no askv. returning"

	.comm	_REG_HDMI_CTRL,4,2              ## @REG_HDMI_CTRL
	.comm	_HDMI_CTRL_ENCRYPTED,4,2        ## @HDMI_CTRL_ENCRYPTED
	.comm	_HDCP_STATE_AUTHENTICATING,8,3  ## @HDCP_STATE_AUTHENTICATING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_hdmi_hdcp_on               ; -- Begin function msm_hdmi_hdcp_on
	.p2align	2
_msm_hdmi_hdcp_on:                      ; @msm_hdmi_hdcp_on
	.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
Lloh0:
	adrp	x8, _HDCP_STATE_INACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDCP_STATE_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _HDCP_STATE_NO_AKSV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HDCP_STATE_NO_AKSV@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x9, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	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	_DBG
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #32]
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh8:
	adrp	x22, _REG_HDMI_CTRL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _REG_HDMI_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hdmi_read
Lloh10:
	adrp	x8, _HDMI_CTRL_ENCRYPTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDMI_CTRL_ENCRYPTED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hdmi_write
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh13:
	adrp	x8, _HDCP_STATE_AUTHENTICATING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDCP_STATE_AUTHENTICATING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19]
	stp	xzr, xzr, [x19, #16]
	ldr	w0, [x20]
	add	x1, x19, #8
	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	_queue_work
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.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	"still active or activating or no askv. returning"

	.comm	_REG_HDMI_CTRL,4,2              ; @REG_HDMI_CTRL
	.comm	_HDMI_CTRL_ENCRYPTED,4,2        ; @HDMI_CTRL_ENCRYPTED
	.comm	_HDCP_STATE_AUTHENTICATING,8,3  ; @HDCP_STATE_AUTHENTICATING
.subsections_via_symbols
