	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_cec_init
_adv7511_cec_init:                      ## @adv7511_cec_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_ADV7533@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	_ADV7533_REG_CEC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%rsi), %edi
	movq	_ADV7511_REG_CEC_CTRL@GOTPCREL(%rip), %rcx
	cmovneq	%rdx, %rax
	addq	(%rcx), %rax
	movq	_ADV7511_CEC_CTRL_POWER_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_regmap_write
	xorl	%eax, %eax
	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_REG_CEC_CTRL,8,3       ## @ADV7511_REG_CEC_CTRL
	.comm	_ADV7511_CEC_CTRL_POWER_DOWN,4,2 ## @ADV7511_CEC_CTRL_POWER_DOWN
	.no_dead_strip	_adv7511_cec_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_cec_init
_adv7511_cec_init:                      ; @adv7511_cec_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ADV7533@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7533@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ADV7533_REG_CEC_OFFSET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ADV7533_REG_CEC_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	w10, [x10]
	ldr	w0, [x1, #8]
Lloh6:
	adrp	x11, _ADV7511_REG_CEC_CTRL@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ADV7511_REG_CEC_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	csel	x8, x10, xzr, eq
	add	x1, x11, x8
Lloh9:
	adrp	x8, _ADV7511_CEC_CTRL_POWER_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV7511_CEC_CTRL_POWER_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_regmap_write
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7533,8,3                    ; @ADV7533
	.comm	_ADV7533_REG_CEC_OFFSET,4,2     ; @ADV7533_REG_CEC_OFFSET
	.comm	_ADV7511_REG_CEC_CTRL,8,3       ; @ADV7511_REG_CEC_CTRL
	.comm	_ADV7511_CEC_CTRL_POWER_DOWN,4,2 ; @ADV7511_CEC_CTRL_POWER_DOWN
	.no_dead_strip	_adv7511_cec_init
.subsections_via_symbols
