	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_irq_hdcp
_tda1997x_irq_hdcp:                     ## @tda1997x_irq_hdcp
	.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	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rdi), %r12
	movq	_REG_INT_FLG_CLR_HDCP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_io_read
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_io_write
	movq	_MASK_HDCP_MTP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_2:
	movq	_MASK_STATE_C5@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_REG_INT_MASK_TOP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_io_read
	movq	_INTERRUPT_AUDIO@GOTPCREL(%rip), %r15
	movq	_INTERRUPT_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%r15), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_io_write
	movl	(%rbx), %eax
	orl	(%r15), %eax
	andl	%eax, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INT_FLG_CLR_HDCP,4,2       ## @REG_INT_FLG_CLR_HDCP
	.comm	_MASK_HDCP_MTP,4,2              ## @MASK_HDCP_MTP
	.comm	_MASK_STATE_C5,4,2              ## @MASK_STATE_C5
	.comm	_REG_INT_MASK_TOP,4,2           ## @REG_INT_MASK_TOP
	.comm	_INTERRUPT_AUDIO,4,2            ## @INTERRUPT_AUDIO
	.comm	_INTERRUPT_INFO,4,2             ## @INTERRUPT_INFO
	.no_dead_strip	_tda1997x_irq_hdcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_irq_hdcp
_tda1997x_irq_hdcp:                     ; @tda1997x_irq_hdcp
	.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
	mov	x19, x1
	mov	x21, x0
	add	x20, x0, #8
Lloh0:
	adrp	x23, _REG_INT_FLG_CLR_HDCP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_INT_FLG_CLR_HDCP@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_io_read
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_io_write
Lloh2:
	adrp	x8, _MASK_HDCP_MTP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASK_HDCP_MTP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
Lloh5:
	adrp	x8, _MASK_STATE_C5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MASK_STATE_C5@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x21, _REG_INT_MASK_TOP@GOTPAGE
Lloh9:
	ldr	x21, [x21, _REG_INT_MASK_TOP@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_io_read
Lloh10:
	adrp	x22, _INTERRUPT_AUDIO@GOTPAGE
Lloh11:
	ldr	x22, [x22, _INTERRUPT_AUDIO@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh12:
	adrp	x23, _INTERRUPT_INFO@GOTPAGE
Lloh13:
	ldr	x23, [x23, _INTERRUPT_INFO@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_io_write
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_FLG_CLR_HDCP,4,2       ; @REG_INT_FLG_CLR_HDCP
	.comm	_MASK_HDCP_MTP,4,2              ; @MASK_HDCP_MTP
	.comm	_MASK_STATE_C5,4,2              ; @MASK_STATE_C5
	.comm	_REG_INT_MASK_TOP,4,2           ; @REG_INT_MASK_TOP
	.comm	_INTERRUPT_AUDIO,4,2            ; @INTERRUPT_AUDIO
	.comm	_INTERRUPT_INFO,4,2             ; @INTERRUPT_INFO
	.no_dead_strip	_tda1997x_irq_hdcp
.subsections_via_symbols
