	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_cec_adap_transmit
_adv7511_cec_adap_transmit:             ## @adv7511_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%esi, %r15d
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_ADV7533@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	movq	_ADV7533_REG_CEC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	movl	8(%r14), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmoveq	%rax, %r13
	movq	_ADV7511_REG_CEC_TX_RETRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	%r13, %rbx
	decl	%r15d
	movl	$1, %edi
	movl	%r15d, %esi
	callq	_max
	shll	$4, %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	$112, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	12(%r14), %ebx
	movl	$1, %edi
	callq	_ADV7511_REG_INT
	movl	%ebx, %edi
	movq	%rax, %rsi
	movl	$56, %edx
	movl	$56, %ecx
	callq	_regmap_update_bits
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ADV7511_REG_CEC_TX_FRAME_HDR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	leaq	(%rbx,%r13), %rsi
	addq	(%r15), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	callq	_regmap_write
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_2
LBB0_3:
	movl	8(%r14), %edi
	movq	_ADV7511_REG_CEC_TX_FRAME_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r12d, %edx
	callq	_regmap_write
	movl	8(%r14), %edi
	movq	_ADV7511_REG_CEC_TX_ENABLE@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_regmap_write
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_TX_RETRY,8,3   ## @ADV7511_REG_CEC_TX_RETRY
	.comm	_ADV7511_REG_CEC_TX_FRAME_HDR,8,3 ## @ADV7511_REG_CEC_TX_FRAME_HDR
	.comm	_ADV7511_REG_CEC_TX_FRAME_LEN,8,3 ## @ADV7511_REG_CEC_TX_FRAME_LEN
	.comm	_ADV7511_REG_CEC_TX_ENABLE,8,3  ## @ADV7511_REG_CEC_TX_ENABLE
	.no_dead_strip	_adv7511_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 adv7511_cec_adap_transmit
_adv7511_cec_adap_transmit:             ; @adv7511_cec_adap_transmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x1
	bl	_cec_get_drvdata
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ADV7533@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7533@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ADV7533_REG_CEC_OFFSET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ADV7533_REG_CEC_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldr	w21, [x20]
Lloh6:
	adrp	x11, _ADV7511_REG_CEC_TX_RETRY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ADV7511_REG_CEC_TX_RETRY@GOTPAGEOFF]
	ldr	w23, [x0, #8]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	csel	x25, x10, xzr, eq
	add	x24, x11, x25
	sub	w1, w22, #1
	mov	w0, #1
	bl	_max
	lsl	w3, w0, #4
	mov	x0, x23
	mov	x1, x24
	mov	w2, #112
	bl	_regmap_update_bits
	ldr	w22, [x19, #12]
	mov	w0, #1
	bl	_ADV7511_REG_INT
	mov	x1, x0
	mov	x0, x22
	mov	w2, #56
	mov	w3, #56
	bl	_regmap_update_bits
	cbz	w21, LBB0_3
; %bb.1:
	mov	x22, #0
Lloh9:
	adrp	x23, _ADV7511_REG_CEC_TX_FRAME_HDR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ADV7511_REG_CEC_TX_FRAME_HDR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x23]
	add	x9, x25, x22
	add	x1, x9, x8
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x22, lsl #2]
	bl	_regmap_write
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _ADV7511_REG_CEC_TX_FRAME_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADV7511_REG_CEC_TX_FRAME_LEN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x25
	mov	x2, x21
	bl	_regmap_write
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x8, _ADV7511_REG_CEC_TX_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADV7511_REG_CEC_TX_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, x25
	mov	w2, #1
	bl	_regmap_write
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7533,8,3                    ; @ADV7533
	.comm	_ADV7533_REG_CEC_OFFSET,4,2     ; @ADV7533_REG_CEC_OFFSET
	.comm	_ADV7511_REG_CEC_TX_RETRY,8,3   ; @ADV7511_REG_CEC_TX_RETRY
	.comm	_ADV7511_REG_CEC_TX_FRAME_HDR,8,3 ; @ADV7511_REG_CEC_TX_FRAME_HDR
	.comm	_ADV7511_REG_CEC_TX_FRAME_LEN,8,3 ; @ADV7511_REG_CEC_TX_FRAME_LEN
	.comm	_ADV7511_REG_CEC_TX_ENABLE,8,3  ; @ADV7511_REG_CEC_TX_ENABLE
	.no_dead_strip	_adv7511_cec_adap_transmit
.subsections_via_symbols
