	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_cec_adap_log_addr
_adv7511_cec_adap_log_addr:             ## @adv7511_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	%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	%rsi, %r15
	callq	_cec_get_drvdata
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	_ADV7533@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ADV7533_REG_CEC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	cmpl	$0, 28(%r13)
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	je	LBB0_3
## %bb.4:
	cmpq	%r15, %rax
	jne	LBB0_5
## %bb.7:
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %esi
	addq	(%rax), %rsi
	xorl	%r12d, %r12d
	movl	$112, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	$0, 8(%r13)
	jmp	LBB0_23
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	xorl	%ecx, %ecx
	cmpq	%r15, %rax
	cmovel	%ecx, %r12d
	jmp	LBB0_23
LBB0_5:
	movq	_ADV7511_MAX_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.8:
	movl	8(%r13), %esi
	xorl	%ecx, %ecx
	movl	%edx, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	shll	%cl, %edi
	andl	%esi, %edi
	movl	%edx, %ebx
	xorl	%eax, %ebx
	orl	%edi, %ebx
	cmovel	%ecx, %eax
	testl	%edi, %edi
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r13), %rdi
	cmpq	%r15, (%rdi,%rcx,8)
	jne	LBB0_12
## %bb.11:
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_6:
	xorl	%eax, %eax
LBB0_13:
	cmpl	%edx, %eax
	jne	LBB0_15
## %bb.14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_15:
	movq	16(%r13), %rdx
	movl	%eax, %esi
	movl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	movq	%r15, (%rdx,%rsi,8)
	orl	%edi, 8(%r13)
	xorl	%r12d, %r12d
	cmpl	$2, %eax
	je	LBB0_20
## %bb.16:
	cmpl	$1, %eax
	je	LBB0_19
## %bb.17:
	testl	%eax, %eax
	jne	LBB0_23
## %bb.18:
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %esi
	addq	(%rax), %rsi
	movl	$16, %ecx
	movl	$16, %edx
	callq	_regmap_update_bits
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_0_1@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %esi
	addq	(%rax), %rsi
	movl	$64, %ecx
	movl	$64, %edx
	callq	_regmap_update_bits
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_2@GOTPCREL(%rip), %rax
LBB0_21:
	addl	(%rax), %r14d
	movq	%r14, %rsi
	movl	$15, %edx
	jmp	LBB0_22
LBB0_19:
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %esi
	addq	(%rax), %rsi
	movl	$32, %ecx
	movl	$32, %edx
	callq	_regmap_update_bits
	movl	24(%r13), %edi
	movq	_ADV7511_REG_CEC_LOG_ADDR_0_1@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	shlq	$4, %r15
	movq	%r14, %rsi
	movl	$240, %edx
LBB0_22:
	movq	%r15, %rcx
	callq	_regmap_update_bits
LBB0_23:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7533,8,3                    ## @ADV7533
	.comm	_ADV7533_REG_CEC_OFFSET,4,2     ## @ADV7533_REG_CEC_OFFSET
	.comm	_ADV7511_MAX_ADDRS,4,2          ## @ADV7511_MAX_ADDRS
	.comm	_CEC_LOG_ADDR_INVALID,8,3       ## @CEC_LOG_ADDR_INVALID
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ADV7511_REG_CEC_LOG_ADDR_MASK,8,3 ## @ADV7511_REG_CEC_LOG_ADDR_MASK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ADV7511_REG_CEC_LOG_ADDR_0_1,4,2 ## @ADV7511_REG_CEC_LOG_ADDR_0_1
	.comm	_ADV7511_REG_CEC_LOG_ADDR_2,4,2 ## @ADV7511_REG_CEC_LOG_ADDR_2
	.no_dead_strip	_adv7511_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 adv7511_cec_adap_log_addr
_adv7511_cec_adap_log_addr:             ; @adv7511_cec_adap_log_addr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	bl	_cec_get_drvdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ADV7533@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7533@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ADV7533_REG_CEC_OFFSET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ADV7533_REG_CEC_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w21, w10, wzr, eq
	ldr	w9, [x0, #28]
Lloh6:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	mov	x20, x0
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20, #24]
Lloh9:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, w21, uxtw
	mov	w2, #112
	mov	x3, #0
	bl	_regmap_update_bits
	mov	w0, #0
	str	wzr, [x20, #8]
	b	LBB0_21
LBB0_3:
Lloh12:
	adrp	x9, _EIO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x8, x19
	csneg	w0, wzr, w9, eq
	b	LBB0_21
LBB0_4:
Lloh15:
	adrp	x8, _ADV7511_MAX_ADDRS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADV7511_MAX_ADDRS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
	cbz	w9, LBB0_9
; %bb.5:
	mov	x10, #0
	ldr	w11, [x20, #8]
	mov	w12, #1
	mov	x8, x9
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w10
	ands	w13, w11, w13
	ccmp	w8, w9, #0, eq
	csel	w8, w8, w10, ne
	cbz	w13, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x20, #16]
	ldr	x13, [x13, x10, lsl #3]
	cmp	x13, x19
	b.ne	LBB0_6
	b	LBB0_20
LBB0_9:
	mov	w8, #0
LBB0_10:
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_12:
	ldr	x9, [x20, #16]
	str	x19, [x9, w8, uxtw #3]
	mov	w9, #1
	lsl	w9, w9, w8
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	str	w9, [x20, #8]
	cmp	w8, #2
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #1
	b.eq	LBB0_18
; %bb.14:
	cbnz	w8, LBB0_20
; %bb.15:
	ldr	w0, [x20, #24]
Lloh21:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	add	x1, x8, w21, uxtw
	mov	w2, #16
	mov	w3, #16
	bl	_regmap_update_bits
	ldr	w0, [x20, #24]
Lloh24:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_0_1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_0_1@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	ldr	w0, [x20, #24]
Lloh26:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, w21, uxtw
	mov	w2, #64
	mov	w3, #64
	bl	_regmap_update_bits
	ldr	w0, [x20, #24]
Lloh29:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_2@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	add	w1, w8, w21
	mov	w2, #15
	mov	x3, x19
	b	LBB0_19
LBB0_18:
	ldr	w0, [x20, #24]
Lloh31:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_MASK@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x1, x8, w21, uxtw
	mov	w2, #32
	mov	w3, #32
	bl	_regmap_update_bits
	ldr	w0, [x20, #24]
Lloh34:
	adrp	x8, _ADV7511_REG_CEC_LOG_ADDR_0_1@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ADV7511_REG_CEC_LOG_ADDR_0_1@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	add	w1, w8, w21
	lsl	x3, x19, #4
	mov	w2, #240
LBB0_19:
	bl	_regmap_update_bits
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7533,8,3                    ; @ADV7533
	.comm	_ADV7533_REG_CEC_OFFSET,4,2     ; @ADV7533_REG_CEC_OFFSET
	.comm	_ADV7511_MAX_ADDRS,4,2          ; @ADV7511_MAX_ADDRS
	.comm	_CEC_LOG_ADDR_INVALID,8,3       ; @CEC_LOG_ADDR_INVALID
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ADV7511_REG_CEC_LOG_ADDR_MASK,8,3 ; @ADV7511_REG_CEC_LOG_ADDR_MASK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ADV7511_REG_CEC_LOG_ADDR_0_1,4,2 ; @ADV7511_REG_CEC_LOG_ADDR_0_1
	.comm	_ADV7511_REG_CEC_LOG_ADDR_2,4,2 ; @ADV7511_REG_CEC_LOG_ADDR_2
	.no_dead_strip	_adv7511_cec_adap_log_addr
.subsections_via_symbols
