	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_g12a_set_log_addr
_meson_ao_cec_g12a_set_log_addr:        ## @meson_ao_cec_g12a_set_log_addr
	.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), %r13
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	movq	_CECB_LADD_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%r13), %edi
	movq	_CECB_LADD_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %ebx
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CECB_LADD_HIGH@GOTPCREL(%rip), %r14
	cmpl	$8, %esi
	jge	LBB0_3
## %bb.4:
	movq	_CECB_LADD_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	addl	$-8, %ebx
	movq	%r14, %rax
LBB0_5:
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_BIT
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %r12d
	movl	(%r14), %r15d
	movq	_CEC_LOG_ADDR_UNREGISTERED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	addl	$-8, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	(%r13), %edi
	addl	$-8, %edi
	callq	_BIT
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmovel	%ecx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ## @CEC_LOG_ADDR_INVALID
	.comm	_CECB_LADD_LOW,4,2              ## @CECB_LADD_LOW
	.comm	_CECB_LADD_HIGH,4,2             ## @CECB_LADD_HIGH
	.comm	_CEC_LOG_ADDR_UNREGISTERED,4,2  ## @CEC_LOG_ADDR_UNREGISTERED
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_meson_ao_cec_g12a_set_log_addr
.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_set_log_addr
_meson_ao_cec_g12a_set_log_addr:        ; @meson_ao_cec_g12a_set_log_addr
	.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
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh3:
	adrp	x8, _CECB_LADD_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CECB_LADD_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x23]
Lloh6:
	adrp	x8, _CECB_LADD_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CECB_LADD_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w19, [x23]
Lloh9:
	adrp	x8, _CECB_LADD_LOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CECB_LADD_LOW@GOTPAGEOFF]
Lloh11:
	adrp	x24, _CECB_LADD_HIGH@GOTPAGE
Lloh12:
	ldr	x24, [x24, _CECB_LADD_HIGH@GOTPAGEOFF]
	subs	w9, w1, #8
	csel	w20, w1, w9, lt
	csel	x8, x8, x24, lt
	ldr	w21, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x22, x0
	mov	x0, x20
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	mov	x19, x0
	ldr	w20, [x23]
	ldr	w21, [x24]
Lloh13:
	adrp	x23, _CEC_LOG_ADDR_UNREGISTERED@GOTPAGE
Lloh14:
	ldr	x23, [x23, _CEC_LOG_ADDR_UNREGISTERED@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w0, w8, #8
	bl	_BIT
	mov	x22, x0
	ldr	w8, [x23]
	sub	w0, w8, #8
	bl	_BIT
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	orr	w8, w0, w19
Lloh15:
	adrp	x9, _EIO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w0, wzr, w9, eq
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ; @CEC_LOG_ADDR_INVALID
	.comm	_CECB_LADD_LOW,4,2              ; @CECB_LADD_LOW
	.comm	_CECB_LADD_HIGH,4,2             ; @CECB_LADD_HIGH
	.comm	_CEC_LOG_ADDR_UNREGISTERED,4,2  ; @CEC_LOG_ADDR_UNREGISTERED
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_meson_ao_cec_g12a_set_log_addr
.subsections_via_symbols
