	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_hdmi_info_reset
_tda1997x_hdmi_info_reset:              ## @tda1997x_hdmi_info_reset
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_REG_HDMI_INFO_RST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_io_read
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_io_write
	movq	_RESET_IF@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_REG_INT_FLG_CLR_MODE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_io_read
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_io_write
LBB0_2:
	movq	_REG_RATE_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_io_read
	movq	_RATE_REFTIM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	testl	%r14d, %r14d
	cmovnel	%ecx, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_io_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HDMI_INFO_RST,4,2          ## @REG_HDMI_INFO_RST
	.comm	_RESET_IF,4,2                   ## @RESET_IF
	.comm	_REG_INT_FLG_CLR_MODE,4,2       ## @REG_INT_FLG_CLR_MODE
	.comm	_REG_RATE_CTRL,4,2              ## @REG_RATE_CTRL
	.comm	_RATE_REFTIM_ENABLE,4,2         ## @RATE_REFTIM_ENABLE
	.no_dead_strip	_tda1997x_hdmi_info_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_hdmi_info_reset
_tda1997x_hdmi_info_reset:              ; @tda1997x_hdmi_info_reset
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _REG_HDMI_INFO_RST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_HDMI_INFO_RST@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_io_read
	mov	x22, x0
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_io_write
Lloh2:
	adrp	x8, _RESET_IF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESET_IF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x21, _REG_INT_FLG_CLR_MODE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_INT_FLG_CLR_MODE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_io_read
	mov	x2, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_io_write
LBB0_2:
Lloh7:
	adrp	x21, _REG_RATE_CTRL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _REG_RATE_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_io_read
Lloh9:
	adrp	x8, _RATE_REFTIM_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RATE_REFTIM_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w20, #0
	csel	w2, w8, w9, eq
	ldr	w1, [x21]
	mov	x0, x19
	bl	_io_write
	mov	w0, #0
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HDMI_INFO_RST,4,2          ; @REG_HDMI_INFO_RST
	.comm	_RESET_IF,4,2                   ; @RESET_IF
	.comm	_REG_INT_FLG_CLR_MODE,4,2       ; @REG_INT_FLG_CLR_MODE
	.comm	_REG_RATE_CTRL,4,2              ; @REG_RATE_CTRL
	.comm	_RATE_REFTIM_ENABLE,4,2         ; @RATE_REFTIM_ENABLE
	.no_dead_strip	_tda1997x_hdmi_info_reset
.subsections_via_symbols
