	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_init_cec_regmap
_adv7511_init_cec_regmap:               ## @adv7511_init_cec_regmap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	movq	_ADV7511_CEC_I2C_ADDR_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_i2c_new_ancillary_device
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	8(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movl	8(%rbx), %edi
	movq	_adv7511_cec_regmap_config@GOTPCREL(%rip), %rsi
	callq	_devm_regmap_init_i2c
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_5:
	movl	8(%rbx), %edi
	callq	_i2c_unregister_device
	movl	%r15d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movq	_ADV7533@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_adv7533_patch_cec_registers
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cec"

	.comm	_ADV7511_CEC_I2C_ADDR_DEFAULT,4,2 ## @ADV7511_CEC_I2C_ADDR_DEFAULT
	.comm	_adv7511_cec_regmap_config,4,2  ## @adv7511_cec_regmap_config
	.comm	_ADV7533,8,3                    ## @ADV7533
	.no_dead_strip	_adv7511_init_cec_regmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_init_cec_regmap
_adv7511_init_cec_regmap:               ; @adv7511_init_cec_regmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _ADV7511_CEC_I2C_ADDR_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV7511_CEC_I2C_ADDR_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_i2c_new_ancillary_device
	str	w0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	mov	x1, x19
	bl	_i2c_set_clientdata
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x1, _adv7511_cec_regmap_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _adv7511_cec_regmap_config@GOTPAGEOFF]
	bl	_devm_regmap_init_i2c
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	mov	x20, x0
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_i2c_unregister_device
	b	LBB0_8
LBB0_5:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _ADV7533@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ADV7533@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_adv7533_patch_cec_registers
	mov	x20, x0
	cbnz	w0, LBB0_4
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cec"

	.comm	_ADV7511_CEC_I2C_ADDR_DEFAULT,4,2 ; @ADV7511_CEC_I2C_ADDR_DEFAULT
	.comm	_adv7511_cec_regmap_config,4,2  ; @adv7511_cec_regmap_config
	.comm	_ADV7533,8,3                    ; @ADV7533
	.no_dead_strip	_adv7511_init_cec_regmap
.subsections_via_symbols
