	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stih_cec_adap_transmit
_stih_cec_adap_transmit:                ## @stih_cec_adap_transmit
	.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	%rcx, %r15
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movl	(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_CEC_TX_DATA_BASE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_writeb
	incq	%rbx
	movslq	(%r15), %rdi
	cmpq	%rdi, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_CEC_TX_AUTO_SOM_EN@GOTPCREL(%rip), %rax
	movq	_CEC_TX_AUTO_EOM_EN@GOTPCREL(%rip), %rcx
	movq	_CEC_TX_START@GOTPCREL(%rip), %rdx
	orl	(%rax), %edi
	orl	(%rcx), %edi
	orl	(%rdx), %edi
	movq	_CEC_TX_ARRAY_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_TX_DATA_BASE,8,3           ## @CEC_TX_DATA_BASE
	.comm	_CEC_TX_AUTO_SOM_EN,4,2         ## @CEC_TX_AUTO_SOM_EN
	.comm	_CEC_TX_AUTO_EOM_EN,4,2         ## @CEC_TX_AUTO_EOM_EN
	.comm	_CEC_TX_START,4,2               ## @CEC_TX_START
	.comm	_CEC_TX_ARRAY_CTRL,8,3          ## @CEC_TX_ARRAY_CTRL
	.no_dead_strip	_stih_cec_adap_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stih_cec_adap_transmit
_stih_cec_adap_transmit:                ; @stih_cec_adap_transmit
	.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, x3
	bl	_cec_get_drvdata
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _CEC_TX_DATA_BASE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CEC_TX_DATA_BASE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x1, x21, x8
	bl	_writeb
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x9, _CEC_TX_AUTO_SOM_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CEC_TX_AUTO_SOM_EN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _CEC_TX_AUTO_EOM_EN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CEC_TX_AUTO_EOM_EN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _CEC_TX_START@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CEC_TX_START@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w0, w8, w11
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _CEC_TX_ARRAY_CTRL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CEC_TX_ARRAY_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_TX_DATA_BASE,8,3           ; @CEC_TX_DATA_BASE
	.comm	_CEC_TX_AUTO_SOM_EN,4,2         ; @CEC_TX_AUTO_SOM_EN
	.comm	_CEC_TX_AUTO_EOM_EN,4,2         ; @CEC_TX_AUTO_EOM_EN
	.comm	_CEC_TX_START,4,2               ; @CEC_TX_START
	.comm	_CEC_TX_ARRAY_CTRL,8,3          ; @CEC_TX_ARRAY_CTRL
	.no_dead_strip	_stih_cec_adap_transmit
.subsections_via_symbols
