	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_g12a_adap_enable
_meson_ao_cec_g12a_adap_enable:         ## @meson_ao_cec_g12a_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	%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	%esi, %r14d
	movq	(%rdi), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_meson_ao_cec_g12a_irq_setup
	movl	16(%r12), %edi
	movq	_CECB_GEN_CNTL_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CECB_GEN_CNTL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	movl	16(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CECB_GEN_CNTL_FILTER_TICK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CECB_GEN_CNTL_FILTER_DEL@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	orl	%edi, %r13d
	movq	_CECB_GEN_CNTL_FILTER_TICK_1US@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	$7, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_regmap_update_bits
	movl	16(%r12), %edi
	movq	%r15, %rbx
	movl	(%r15), %esi
	movq	_CECB_GEN_CNTL_SYS_CLK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	16(%r12), %r15d
	movl	(%rbx), %r14d
	movq	%rbx, %r13
	movq	_CECB_GEN_CNTL_CLK_CTRL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CECB_GEN_CNTL_CLK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FIELD_PREP
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	16(%r12), %edi
	movl	(%r13), %esi
	movq	_CECB_GEN_CNTL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %r14d
	movq	_CECB_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CECB_CTRL2_RISE_DEL_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_FIELD_PREP
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
LBB0_3:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_meson_ao_cec_g12a_irq_setup
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CECB_GEN_CNTL_REG,4,2          ## @CECB_GEN_CNTL_REG
	.comm	_CECB_GEN_CNTL_RESET,4,2        ## @CECB_GEN_CNTL_RESET
	.comm	_CECB_GEN_CNTL_FILTER_TICK_SEL,4,2 ## @CECB_GEN_CNTL_FILTER_TICK_SEL
	.comm	_CECB_GEN_CNTL_FILTER_DEL,4,2   ## @CECB_GEN_CNTL_FILTER_DEL
	.comm	_CECB_GEN_CNTL_FILTER_TICK_1US,4,2 ## @CECB_GEN_CNTL_FILTER_TICK_1US
	.comm	_CECB_GEN_CNTL_SYS_CLK_EN,4,2   ## @CECB_GEN_CNTL_SYS_CLK_EN
	.comm	_CECB_GEN_CNTL_CLK_CTRL_MASK,4,2 ## @CECB_GEN_CNTL_CLK_CTRL_MASK
	.comm	_CECB_GEN_CNTL_CLK_ENABLE,4,2   ## @CECB_GEN_CNTL_CLK_ENABLE
	.comm	_CECB_CTRL2,4,2                 ## @CECB_CTRL2
	.comm	_CECB_CTRL2_RISE_DEL_MAX,4,2    ## @CECB_CTRL2_RISE_DEL_MAX
	.no_dead_strip	_meson_ao_cec_g12a_adap_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_ao_cec_g12a_adap_enable
_meson_ao_cec_g12a_adap_enable:         ; @meson_ao_cec_g12a_adap_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_meson_ao_cec_g12a_irq_setup
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x24, _CECB_GEN_CNTL_REG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CECB_GEN_CNTL_REG@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x25, _CECB_GEN_CNTL_RESET@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CECB_GEN_CNTL_RESET@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x3, x2
	bl	_regmap_update_bits
	cbz	w20, LBB0_4
; %bb.1:
	ldr	w20, [x19, #16]
	ldr	w21, [x24]
Lloh4:
	adrp	x8, _CECB_GEN_CNTL_FILTER_TICK_SEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CECB_GEN_CNTL_FILTER_TICK_SEL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CECB_GEN_CNTL_FILTER_DEL@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CECB_GEN_CNTL_FILTER_DEL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x26]
	orr	w22, w8, w0
Lloh9:
	adrp	x8, _CECB_GEN_CNTL_FILTER_TICK_1US@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CECB_GEN_CNTL_FILTER_TICK_1US@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_FIELD_PREP
	mov	x23, x0
	ldr	w0, [x26]
	mov	w1, #7
	bl	_FIELD_PREP
	orr	w3, w0, w23
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	ldr	w0, [x19, #16]
	ldr	w1, [x24]
Lloh12:
	adrp	x8, _CECB_GEN_CNTL_SYS_CLK_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CECB_GEN_CNTL_SYS_CLK_EN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w20, [x19, #16]
	ldr	w21, [x24]
Lloh15:
	adrp	x8, _CECB_GEN_CNTL_CLK_CTRL_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CECB_GEN_CNTL_CLK_CTRL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _CECB_GEN_CNTL_CLK_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CECB_GEN_CNTL_CLK_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	ldr	w0, [x19, #16]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_regmap_update_bits
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w20, [x19]
Lloh21:
	adrp	x8, _CECB_CTRL2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CECB_CTRL2@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
Lloh24:
	adrp	x8, _CECB_CTRL2_RISE_DEL_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CECB_CTRL2_RISE_DEL_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_FIELD_PREP
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_write
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_meson_ao_cec_g12a_irq_setup
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CECB_GEN_CNTL_REG,4,2          ; @CECB_GEN_CNTL_REG
	.comm	_CECB_GEN_CNTL_RESET,4,2        ; @CECB_GEN_CNTL_RESET
	.comm	_CECB_GEN_CNTL_FILTER_TICK_SEL,4,2 ; @CECB_GEN_CNTL_FILTER_TICK_SEL
	.comm	_CECB_GEN_CNTL_FILTER_DEL,4,2   ; @CECB_GEN_CNTL_FILTER_DEL
	.comm	_CECB_GEN_CNTL_FILTER_TICK_1US,4,2 ; @CECB_GEN_CNTL_FILTER_TICK_1US
	.comm	_CECB_GEN_CNTL_SYS_CLK_EN,4,2   ; @CECB_GEN_CNTL_SYS_CLK_EN
	.comm	_CECB_GEN_CNTL_CLK_CTRL_MASK,4,2 ; @CECB_GEN_CNTL_CLK_CTRL_MASK
	.comm	_CECB_GEN_CNTL_CLK_ENABLE,4,2   ; @CECB_GEN_CNTL_CLK_ENABLE
	.comm	_CECB_CTRL2,4,2                 ; @CECB_CTRL2
	.comm	_CECB_CTRL2_RISE_DEL_MAX,4,2    ; @CECB_CTRL2_RISE_DEL_MAX
	.no_dead_strip	_meson_ao_cec_g12a_adap_enable
.subsections_via_symbols
