	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_irq_rate
_tda1997x_irq_rate:                     ## @tda1997x_irq_rate
	.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, -48(%rbp)                 ## 8-byte Spill
	leaq	28(%rdi), %r15
	movq	_REG_INT_FLG_CLR_RATE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_io_read
	movl	%eax, %r13d
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_io_write
	movq	%r15, %rdi
	callq	_tda1997x_read_activity_status_regs
	testl	%r13d, %r13d
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_tda1997x_read_activity_status_regs
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_io_read
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_io_write
	orl	%ebx, %r13d
	testl	%ebx, %ebx
	jne	LBB0_2
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r12d
	xorl	%r13d, %r13d
LBB0_3:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_MASK_RATE_A_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_MASK_RATE_B_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	testl	%r13d, %eax
	je	LBB0_11
## %bb.4:
	testl	%r13d, %ebx
	sete	%cl
	movl	$1, %eax
	shll	%cl, %eax
	andl	%eax, %r12d
	andl	(%rsi), %eax
	cmpl	%eax, %r12d
	je	LBB0_11
## %bb.5:
	movl	%ebx, %eax
	andl	%r13d, %eax
	xorl	%edx, %edx
	cmpl	$1, %eax
	adcl	$65, %edx
	movl	24(%rsi), %edi
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.9:
	xorl	%r14d, %r14d
	testl	%r13d, %ebx
	sete	%r14b
	leaq	L_.str.1(%rip), %rsi
	callq	_v4l_info
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movl	$1, (%rax,%r14,4)
	movq	%rcx, %rax
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_v4l_info
	movq	_REG_PIX_REPEAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_io_read
	movq	_PIX_REPEAT_MASK_UP_SEL@GOTPCREL(%rip), %rcx
	movq	_PIX_REPEAT_MASK_REP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_io_write
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tda1997x_reset_n1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:
	xorl	%eax, %eax
	testl	%r13d, %ebx
	sete	%al
	movq	16(%rcx), %rcx
	movl	$0, (%rcx,%rax,4)
	movq	_tda1997x_ev_fmt@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_subdev_notify_event
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
	movl	%r12d, (%rax)
LBB0_11:
	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_RATE,4,2       ## @REG_INT_FLG_CLR_RATE
	.comm	_MASK_RATE_A_ST,4,2             ## @MASK_RATE_A_ST
	.comm	_MASK_RATE_B_ST,4,2             ## @MASK_RATE_B_ST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI-%c: Digital Activity Lost\n"

	.comm	_REG_PIX_REPEAT,4,2             ## @REG_PIX_REPEAT
	.comm	_PIX_REPEAT_MASK_UP_SEL,4,2     ## @PIX_REPEAT_MASK_UP_SEL
	.comm	_PIX_REPEAT_MASK_REP,4,2        ## @PIX_REPEAT_MASK_REP
	.comm	_tda1997x_ev_fmt,4,2            ## @tda1997x_ev_fmt
L_.str.1:                               ## @.str.1
	.asciz	"HDMI-%c: Digital Activity Detected\n"

	.no_dead_strip	_tda1997x_irq_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_irq_rate
_tda1997x_irq_rate:                     ; @tda1997x_irq_rate
	.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, x0
	add	x20, x0, #28
Lloh0:
	adrp	x24, _REG_INT_FLG_CLR_RATE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _REG_INT_FLG_CLR_RATE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_io_read
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_io_write
	mov	x0, x20
	bl	_tda1997x_read_activity_status_regs
	cbz	w21, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_tda1997x_read_activity_status_regs
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_io_read
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x23
	bl	_io_write
	orr	w21, w23, w21
	cbnz	w23, LBB0_1
	b	LBB0_3
LBB0_2:
	mov	x22, x0
LBB0_3:
Lloh2:
	adrp	x8, _MASK_RATE_A_ST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASK_RATE_A_ST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MASK_RATE_B_ST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MASK_RATE_B_ST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	tst	w9, w21
	b.eq	LBB0_11
; %bb.4:
	ands	w23, w8, w21
	cset	w8, eq
	mov	w9, #1
	lsl	w8, w9, w8
	and	w21, w8, w22
	ldr	w9, [x19]
	and	w8, w9, w8
	cmp	w21, w8
	b.eq	LBB0_11
; %bb.5:
	ldr	w0, [x19, #24]
	cmp	w23, #0
	mov	w8, #65
	cinc	w2, w8, eq
	cbz	w21, LBB0_7
; %bb.6:
	cmp	w23, #0
	cset	w20, eq
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_v4l_info
	ldr	x8, [x19, #16]
	mov	w9, #1
	str	w9, [x8, w20, uxtw #2]
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l_info
Lloh12:
	adrp	x22, _REG_PIX_REPEAT@GOTPAGE
Lloh13:
	ldr	x22, [x22, _REG_PIX_REPEAT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_io_read
Lloh14:
	adrp	x8, _PIX_REPEAT_MASK_UP_SEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PIX_REPEAT_MASK_UP_SEL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _PIX_REPEAT_MASK_REP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PIX_REPEAT_MASK_REP@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_io_write
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_tda1997x_reset_n1
LBB0_9:
	cmp	w23, #0
	cset	w8, eq
	ldr	x9, [x19, #16]
	str	wzr, [x9, w8, uxtw #2]
Lloh20:
	adrp	x1, _tda1997x_ev_fmt@GOTPAGE
Lloh21:
	ldr	x1, [x1, _tda1997x_ev_fmt@GOTPAGEOFF]
	mov	x0, x20
	bl	_v4l2_subdev_notify_event
LBB0_10:
	str	w21, [x19]
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_FLG_CLR_RATE,4,2       ; @REG_INT_FLG_CLR_RATE
	.comm	_MASK_RATE_A_ST,4,2             ; @MASK_RATE_A_ST
	.comm	_MASK_RATE_B_ST,4,2             ; @MASK_RATE_B_ST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI-%c: Digital Activity Lost\n"

	.comm	_REG_PIX_REPEAT,4,2             ; @REG_PIX_REPEAT
	.comm	_PIX_REPEAT_MASK_UP_SEL,4,2     ; @PIX_REPEAT_MASK_UP_SEL
	.comm	_PIX_REPEAT_MASK_REP,4,2        ; @PIX_REPEAT_MASK_REP
	.comm	_tda1997x_ev_fmt,4,2            ; @tda1997x_ev_fmt
l_.str.1:                               ; @.str.1
	.asciz	"HDMI-%c: Digital Activity Detected\n"

	.no_dead_strip	_tda1997x_irq_rate
.subsections_via_symbols
