	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_ao_cec_set_log_addr
_meson_ao_cec_set_log_addr:             ## @meson_ao_cec_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	$0, -36(%rbp)
	movq	_CEC_LOGICAL_ADDR0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_LOGICAL_ADDR_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_meson_ao_cec_write
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_meson_ao_cec_clear
	movl	%eax, -36(%rbp)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%r14d, (%rcx)
	je	LBB0_5
## %bb.3:
	movl	(%r15), %esi
	movq	_LOGICAL_ADDR_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	andl	%r14d, %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_meson_ao_cec_write
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$100, %edi
	callq	_udelay
	andl	(%r12), %r14d
	movl	(%r15), %esi
	movq	_LOGICAL_ADDR_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_meson_ao_cec_write
	movl	-36(%rbp), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_LOGICAL_ADDR0,4,2          ## @CEC_LOGICAL_ADDR0
	.comm	_LOGICAL_ADDR_DISABLE,4,2       ## @LOGICAL_ADDR_DISABLE
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ## @CEC_LOG_ADDR_INVALID
	.comm	_LOGICAL_ADDR_MASK,4,2          ## @LOGICAL_ADDR_MASK
	.comm	_LOGICAL_ADDR_VALID,4,2         ## @LOGICAL_ADDR_VALID
	.no_dead_strip	_meson_ao_cec_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_set_log_addr
_meson_ao_cec_set_log_addr:             ; @meson_ao_cec_set_log_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x19, [x0]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x21, _CEC_LOGICAL_ADDR0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CEC_LOGICAL_ADDR0@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _LOGICAL_ADDR_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOGICAL_ADDR_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_meson_ao_cec_write
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_meson_ao_cec_clear
	str	w0, [sp, #12]
	cbnz	w0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	w1, [x21]
Lloh8:
	adrp	x22, _LOGICAL_ADDR_MASK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LOGICAL_ADDR_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w2, w8, w20
	add	x3, sp, #12
	mov	x0, x19
	bl	_meson_ao_cec_write
	ldr	w0, [sp, #12]
	cbnz	w0, LBB0_6
; %bb.5:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	ldr	w8, [x22]
	and	w8, w8, w20
Lloh10:
	adrp	x9, _LOGICAL_ADDR_VALID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LOGICAL_ADDR_VALID@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w8, w9
	add	x3, sp, #12
	mov	x0, x19
	bl	_meson_ao_cec_write
	ldr	w0, [sp, #12]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_LOGICAL_ADDR0,4,2          ; @CEC_LOGICAL_ADDR0
	.comm	_LOGICAL_ADDR_DISABLE,4,2       ; @LOGICAL_ADDR_DISABLE
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ; @CEC_LOG_ADDR_INVALID
	.comm	_LOGICAL_ADDR_MASK,4,2          ; @LOGICAL_ADDR_MASK
	.comm	_LOGICAL_ADDR_VALID,4,2         ; @LOGICAL_ADDR_VALID
	.no_dead_strip	_meson_ao_cec_set_log_addr
.subsections_via_symbols
