	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9950_cec_adap_log_addr
_tda9950_cec_adap_log_addr:             ## @tda9950_cec_adap_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	(%rdi), %rbx
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %rdi
	callq	_BIT
                                        ## kill: def $eax killed $eax def $rax
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	andl	$32767, %eax                    ## imm = 0x7FFF
LBB0_3:
	movl	%eax, %ecx
	shrl	$8, %eax
	movq	%rax, -32(%rbp)
	movq	%rcx, -24(%rbp)
	movl	4(%rbx), %edi
	movq	_REG_ACKH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$2, %ecx
	callq	_tda9950_write_range
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_LOG_ADDR_INVALID,8,3       ## @CEC_LOG_ADDR_INVALID
	.comm	_REG_ACKH,4,2                   ## @REG_ACKH
	.no_dead_strip	_tda9950_cec_adap_log_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9950_cec_adap_log_addr
_tda9950_cec_adap_log_addr:             ; @tda9950_cec_adap_log_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	str	wzr, [x19]
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	and	w8, w8, #0x7fff
LBB0_3:
	lsr	w9, w8, #8
	mov	w8, w8
	stp	x9, x8, [sp, #8]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _REG_ACKH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_ACKH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #2
	bl	_tda9950_write_range
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_LOG_ADDR_INVALID,8,3       ; @CEC_LOG_ADDR_INVALID
	.comm	_REG_ACKH,4,2                   ; @REG_ACKH
	.no_dead_strip	_tda9950_cec_adap_log_addr
.subsections_via_symbols
