	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cec_adap_enable
_stm32_cec_adap_enable:                 ## @stm32_cec_adap_enable
	.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
	movl	8(%rbx), %edi
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	callq	_clk_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movl	4(%rbx), %edi
	callq	_clk_enable
	movl	(%rbx), %edi
	movq	_CEC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CECEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	jmp	LBB0_5
LBB0_4:
	callq	_clk_disable
	movl	4(%rbx), %edi
	callq	_clk_disable
	movl	(%rbx), %edi
	movq	_CEC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CECEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
LBB0_5:
	callq	_regmap_update_bits
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail to enable cec clock\n"

	.comm	_CEC_CR,4,2                     ## @CEC_CR
	.comm	_CECEN,4,2                      ## @CECEN
	.no_dead_strip	_stm32_cec_adap_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cec_adap_enable
_stm32_cec_adap_enable:                 ; @stm32_cec_adap_enable
	.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
	ldr	x20, [x0]
	ldr	w0, [x20, #8]
	cbz	w1, LBB0_4
; %bb.1:
	bl	_clk_enable
	mov	x19, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	w0, [x20, #4]
	bl	_clk_enable
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _CEC_CR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_CR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _CECEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CECEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	b	LBB0_5
LBB0_4:
	bl	_clk_disable
	ldr	w0, [x20, #4]
	bl	_clk_disable
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _CEC_CR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CEC_CR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _CECEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CECEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail to enable cec clock\n"

	.comm	_CEC_CR,4,2                     ; @CEC_CR
	.comm	_CECEN,4,2                      ; @CECEN
	.no_dead_strip	_stm32_cec_adap_enable
.subsections_via_symbols
