	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_cec_set_calibration
_tda998x_cec_set_calibration:           ## @tda998x_cec_set_calibration
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$243, %esi
	movl	$192, %edx
	callq	_cec_write
	movq	%rbx, %rdi
	movl	$244, %esi
	movl	$212, %edx
	callq	_cec_write
	movq	_REG_CEC_DES_FREQ2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_cec_read
	movq	_CEC_DES_FREQ2_DIS_AUTOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_cec_write
	movq	_REG_CEC_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CEC_CLK_FRO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_cec_write
	movq	_CEC_ENAMODS_DIS_FRO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cec_enamods
	movq	_CEC_CAL_XOSC_CTRL1_ENA_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movq	_REG_CEC_CAL_XOSC_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cec_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CEC_DES_FREQ2,4,2          ## @REG_CEC_DES_FREQ2
	.comm	_CEC_DES_FREQ2_DIS_AUTOCAL,4,2  ## @CEC_DES_FREQ2_DIS_AUTOCAL
	.comm	_REG_CEC_CLK,4,2                ## @REG_CEC_CLK
	.comm	_CEC_CLK_FRO,4,2                ## @CEC_CLK_FRO
	.comm	_CEC_ENAMODS_DIS_FRO,4,2        ## @CEC_ENAMODS_DIS_FRO
	.comm	_REG_CEC_CAL_XOSC_CTRL1,4,2     ## @REG_CEC_CAL_XOSC_CTRL1
	.comm	_CEC_CAL_XOSC_CTRL1_ENA_CAL,4,2 ## @CEC_CAL_XOSC_CTRL1_ENA_CAL
	.no_dead_strip	_tda998x_cec_set_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_cec_set_calibration
_tda998x_cec_set_calibration:           ; @tda998x_cec_set_calibration
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #243
	mov	w2, #192
	bl	_cec_write
	mov	x0, x19
	mov	w1, #244
	mov	w2, #212
	bl	_cec_write
Lloh0:
	adrp	x20, _REG_CEC_DES_FREQ2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_CEC_DES_FREQ2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cec_read
Lloh2:
	adrp	x8, _CEC_DES_FREQ2_DIS_AUTOCAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_DES_FREQ2_DIS_AUTOCAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cec_write
Lloh5:
	adrp	x8, _REG_CEC_CLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_CEC_CLK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CEC_CLK_FRO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CEC_CLK_FRO@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cec_write
Lloh11:
	adrp	x8, _CEC_ENAMODS_DIS_FRO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CEC_ENAMODS_DIS_FRO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cec_enamods
Lloh14:
	adrp	x8, _CEC_CAL_XOSC_CTRL1_ENA_CAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CEC_CAL_XOSC_CTRL1_ENA_CAL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
Lloh17:
	adrp	x8, _REG_CEC_CAL_XOSC_CTRL1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_CEC_CAL_XOSC_CTRL1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cec_write
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CEC_DES_FREQ2,4,2          ; @REG_CEC_DES_FREQ2
	.comm	_CEC_DES_FREQ2_DIS_AUTOCAL,4,2  ; @CEC_DES_FREQ2_DIS_AUTOCAL
	.comm	_REG_CEC_CLK,4,2                ; @REG_CEC_CLK
	.comm	_CEC_CLK_FRO,4,2                ; @CEC_CLK_FRO
	.comm	_CEC_ENAMODS_DIS_FRO,4,2        ; @CEC_ENAMODS_DIS_FRO
	.comm	_REG_CEC_CAL_XOSC_CTRL1,4,2     ; @REG_CEC_CAL_XOSC_CTRL1
	.comm	_CEC_CAL_XOSC_CTRL1_ENA_CAL,4,2 ; @CEC_CAL_XOSC_CTRL1_ENA_CAL
	.no_dead_strip	_tda998x_cec_set_calibration
.subsections_via_symbols
