	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_cec_adap_log_addr
_hdmi_cec_adap_log_addr:                ## @hdmi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_HDMI_CEC_CA_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_hdmi_write_reg
	movq	_HDMI_CEC_CA_15_8@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %edi
	cmpl	$7, %ebx
	jg	LBB0_4
## %bb.3:
	movq	_HDMI_CEC_CA_7_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_hdmi_read_reg
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	_HDMI_CEC_CA_15_8@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_hdmi_read_reg
	movl	%eax, %r15d
	addb	$-8, %bl
LBB0_5:
	btsl	%ebx, %r15d
LBB0_6:
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	%r15d, %edx
	callq	_hdmi_write_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ## @CEC_LOG_ADDR_INVALID
	.comm	_HDMI_CEC_CA_7_0,4,2            ## @HDMI_CEC_CA_7_0
	.comm	_HDMI_CEC_CA_15_8,4,2           ## @HDMI_CEC_CA_15_8
	.no_dead_strip	_hdmi_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 hdmi_cec_adap_log_addr
_hdmi_cec_adap_log_addr:                ; @hdmi_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	x20, x1
	bl	_cec_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _HDMI_CEC_CA_7_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_CEC_CA_7_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_hdmi_write_reg
	mov	w2, #0
Lloh6:
	adrp	x21, _HDMI_CEC_CA_15_8@GOTPAGE
Lloh7:
	ldr	x21, [x21, _HDMI_CEC_CA_15_8@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19]
	cmp	w20, #7
	b.gt	LBB0_4
; %bb.3:
Lloh8:
	adrp	x21, _HDMI_CEC_CA_7_0@GOTPAGE
Lloh9:
	ldr	x21, [x21, _HDMI_CEC_CA_7_0@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_hdmi_read_reg
	mov	w8, #1
	lsl	w8, w8, w20
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x21, _HDMI_CEC_CA_15_8@GOTPAGE
Lloh11:
	ldr	x21, [x21, _HDMI_CEC_CA_15_8@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_hdmi_read_reg
	sub	w8, w20, #8
	mov	w9, #1
	lsl	w8, w9, w8
LBB0_5:
	orr	w2, w0, w8
LBB0_6:
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_hdmi_write_reg
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ; @CEC_LOG_ADDR_INVALID
	.comm	_HDMI_CEC_CA_7_0,4,2            ; @HDMI_CEC_CA_7_0
	.comm	_HDMI_CEC_CA_15_8,4,2           ; @HDMI_CEC_CA_15_8
	.no_dead_strip	_hdmi_cec_adap_log_addr
.subsections_via_symbols
