	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_dp_cec_adap_transmit
_drm_dp_cec_adap_transmit:              ## @drm_dp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rbx
	callq	_cec_get_drvdata
	movq	%rax, %r14
	decq	%rbx
	movl	$5, %edi
	movq	%rbx, %rsi
	callq	_min
	movl	%eax, %ebx
	movq	_DP_CEC_TX_MESSAGE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	%r14, %rdi
	callq	_drm_dp_dpcd_write
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	_DP_CEC_TX_MESSAGE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	decl	%eax
	shll	$4, %ebx
	orl	%eax, %ebx
	movq	_DP_CEC_TX_MESSAGE_SEND@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_drm_dp_dpcd_writeb
	movq	%rax, %rcx
	sarq	$63, %rax
	andq	%rcx, %rax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_CEC_TX_MESSAGE_BUFFER,4,2   ## @DP_CEC_TX_MESSAGE_BUFFER
	.comm	_DP_CEC_TX_MESSAGE_INFO,4,2     ## @DP_CEC_TX_MESSAGE_INFO
	.comm	_DP_CEC_TX_MESSAGE_SEND,4,2     ## @DP_CEC_TX_MESSAGE_SEND
	.no_dead_strip	_drm_dp_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 drm_dp_cec_adap_transmit
_drm_dp_cec_adap_transmit:              ; @drm_dp_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	x19, x3
	mov	x21, x1
	bl	_cec_get_drvdata
	mov	x20, x0
	sub	x1, x21, #1
	mov	w0, #5
	bl	_min
	mov	x21, x0
Lloh0:
	adrp	x8, _DP_CEC_TX_MESSAGE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_CEC_TX_MESSAGE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w2, [x19]
	mov	x0, x20
	bl	_drm_dp_dpcd_write
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DP_CEC_TX_MESSAGE_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DP_CEC_TX_MESSAGE_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x19]
	sub	w8, w8, #1
	orr	w8, w8, w21, lsl #4
Lloh6:
	adrp	x9, _DP_CEC_TX_MESSAGE_SEND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DP_CEC_TX_MESSAGE_SEND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_drm_dp_dpcd_writeb
	cmp	x0, #0
	csel	x0, x0, xzr, lt
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_CEC_TX_MESSAGE_BUFFER,4,2   ; @DP_CEC_TX_MESSAGE_BUFFER
	.comm	_DP_CEC_TX_MESSAGE_INFO,4,2     ; @DP_CEC_TX_MESSAGE_INFO
	.comm	_DP_CEC_TX_MESSAGE_SEND,4,2     ; @DP_CEC_TX_MESSAGE_SEND
	.no_dead_strip	_drm_dp_cec_adap_transmit
.subsections_via_symbols
