	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi4_cec_init                 ## -- Begin function hdmi4_cec_init
	.p2align	4, 0x90
_hdmi4_cec_init:                        ## @hdmi4_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_CEC_CAP_TRANSMIT@GOTPCREL(%rip), %rax
	movq	_CEC_CAP_LOG_ADDRS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CEC_CAP_PASSTHROUGH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CEC_CAP_RC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CEC_MAX_LOG_ADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_hdmi_cec_adap_ops@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	callq	_cec_allocate_adapter
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_PTR_ERR_OR_ZERO
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, 8(%r12)
	movl	(%r15), %edi
	movq	_HDMI_WP_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movl	$5, %ecx
	xorl	%r8d, %r8d
	callq	_REG_FLD_MOD
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_cec_register_adapter
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_cec_delete_adapter
	movl	%r14d, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_CAP_TRANSMIT,4,2           ## @CEC_CAP_TRANSMIT
	.comm	_CEC_CAP_LOG_ADDRS,4,2          ## @CEC_CAP_LOG_ADDRS
	.comm	_CEC_CAP_PASSTHROUGH,4,2        ## @CEC_CAP_PASSTHROUGH
	.comm	_CEC_CAP_RC,4,2                 ## @CEC_CAP_RC
	.comm	_hdmi_cec_adap_ops,4,2          ## @hdmi_cec_adap_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"omap4"

	.comm	_CEC_MAX_LOG_ADDRS,4,2          ## @CEC_MAX_LOG_ADDRS
	.comm	_HDMI_WP_CLK,4,2                ## @HDMI_WP_CLK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hdmi4_cec_init                 ; -- Begin function hdmi4_cec_init
	.p2align	2
_hdmi4_cec_init:                        ; @hdmi4_cec_init
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CEC_CAP_TRANSMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_CAP_TRANSMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CEC_CAP_LOG_ADDRS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CEC_CAP_LOG_ADDRS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _CEC_CAP_PASSTHROUGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CEC_CAP_PASSTHROUGH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CEC_CAP_RC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CEC_CAP_RC@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh12:
	adrp	x8, _CEC_MAX_LOG_ADDRS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEC_MAX_LOG_ADDRS@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
Lloh15:
	adrp	x0, _hdmi_cec_adap_ops@GOTPAGE
Lloh16:
	ldr	x0, [x0, _hdmi_cec_adap_ops@GOTPAGEOFF]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	bl	_cec_allocate_adapter
	str	w0, [x19]
	bl	_PTR_ERR_OR_ZERO
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	x21, [x19, #8]
	ldr	w0, [x21]
Lloh19:
	adrp	x8, _HDMI_WP_CLK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDMI_WP_CLK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #5
	mov	w4, #0
	bl	_REG_FLD_MOD
	ldr	w0, [x19]
	mov	x1, x20
	bl	_cec_register_adapter
	mov	x20, x0
	mov	w0, #0
	tbz	w20, #31, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_cec_delete_adapter
	mov	x0, x20
LBB0_3:
	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 AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_CAP_TRANSMIT,4,2           ; @CEC_CAP_TRANSMIT
	.comm	_CEC_CAP_LOG_ADDRS,4,2          ; @CEC_CAP_LOG_ADDRS
	.comm	_CEC_CAP_PASSTHROUGH,4,2        ; @CEC_CAP_PASSTHROUGH
	.comm	_CEC_CAP_RC,4,2                 ; @CEC_CAP_RC
	.comm	_hdmi_cec_adap_ops,4,2          ; @hdmi_cec_adap_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"omap4"

	.comm	_CEC_MAX_LOG_ADDRS,4,2          ; @CEC_MAX_LOG_ADDRS
	.comm	_HDMI_WP_CLK,4,2                ; @HDMI_WP_CLK
.subsections_via_symbols
