	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse8_cec_adap_transmit
_pulse8_cec_adap_transmit:              ## @pulse8_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, %r15
	movl	%edx, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	_MSGCODE_TRANSMIT_IDLETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, -52(%rbp)
	movq	_MSGCODE_COMMAND_ACCEPTED@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	movq	_MSGCODE_TRANSMIT_ACK_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, %rdi
	callq	_cec_msg_is_broadcast
	movl	%eax, -52(%rbp)
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$1, (%r15)
	jne	LBB0_4
LBB0_2:
	movq	_MSGCODE_TRANSMIT_EOM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movl	(%r13), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	cmpl	$1, (%r15)
	je	LBB0_2
LBB0_4:
	movq	_MSGCODE_TRANSMIT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.6:
	movl	(%r13), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.7:
	cmpl	$2, (%r15)
	jl	LBB0_18
## %bb.8:
	jne	LBB0_11
## %bb.9:
	movq	_MSGCODE_TRANSMIT_EOM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_MSGCODE_TRANSMIT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	8(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%r13), %ecx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movl	$2, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rcx), %eax
	movl	%eax, -56(%rbp)
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -52(%rbp)
	movl	(%r13), %ecx
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_pulse8_send_and_wait
	movl	%eax, %ebx
	incq	%r12
	testl	%eax, %eax
	jne	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	cmpq	%rax, %r12
	jae	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	-2(%r12), %rdx
	addl	$-3, %eax
	movq	_MSGCODE_TRANSMIT@GOTPCREL(%rip), %rcx
	cmpq	%rax, %rdx
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_MSGCODE_TRANSMIT_EOM@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSGCODE_TRANSMIT_IDLETIME,4,2  ## @MSGCODE_TRANSMIT_IDLETIME
	.comm	_MSGCODE_COMMAND_ACCEPTED,4,2   ## @MSGCODE_COMMAND_ACCEPTED
	.comm	_MSGCODE_TRANSMIT_ACK_POLARITY,4,2 ## @MSGCODE_TRANSMIT_ACK_POLARITY
	.comm	_MSGCODE_TRANSMIT_EOM,4,2       ## @MSGCODE_TRANSMIT_EOM
	.comm	_MSGCODE_TRANSMIT,4,2           ## @MSGCODE_TRANSMIT
	.no_dead_strip	_pulse8_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 pulse8_cec_adap_transmit
_pulse8_cec_adap_transmit:              ; @pulse8_cec_adap_transmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x21, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_cec_get_drvdata
	mov	x20, x0
Lloh3:
	adrp	x8, _MSGCODE_TRANSMIT_IDLETIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSGCODE_TRANSMIT_IDLETIME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w21, [sp]
Lloh6:
	adrp	x22, _MSGCODE_COMMAND_ACCEPTED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MSGCODE_COMMAND_ACCEPTED@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x1, sp
	mov	w2, #2
	mov	w4, #1
	bl	_pulse8_send_and_wait
	mov	x21, x0
Lloh8:
	adrp	x8, _MSGCODE_TRANSMIT_ACK_POLARITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSGCODE_TRANSMIT_ACK_POLARITY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	bl	_cec_msg_is_broadcast
	str	w0, [sp, #4]
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	w3, [x22]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #2
	mov	w4, #1
	bl	_pulse8_send_and_wait
	mov	x21, x0
LBB0_2:
	ldr	w8, [x19]
Lloh11:
	adrp	x23, _MSGCODE_TRANSMIT_EOM@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MSGCODE_TRANSMIT_EOM@GOTPAGEOFF]
Lloh13:
	adrp	x24, _MSGCODE_TRANSMIT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _MSGCODE_TRANSMIT@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [sp, #4]
	cbnz	w21, LBB0_10
; %bb.3:
	ldr	w3, [x22]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #2
	mov	w4, #1
	bl	_pulse8_send_and_wait
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.5:
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w9, [x9, #4]
	stp	w8, w9, [sp]
	ldr	w3, [x22]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #2
	mov	w4, #1
	bl	_pulse8_send_and_wait
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.6:
	mov	w25, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	x25, x8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x9, x25, #2
	sub	w8, w8, #3
	cmp	x9, x8
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x25, lsl #2]
	str	w8, [sp, #4]
	ldr	w3, [x22]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #2
	mov	w4, #1
	bl	_pulse8_send_and_wait
	mov	x21, x0
	add	x25, x25, #1
	cbz	w0, LBB0_7
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSGCODE_TRANSMIT_IDLETIME,4,2  ; @MSGCODE_TRANSMIT_IDLETIME
	.comm	_MSGCODE_COMMAND_ACCEPTED,4,2   ; @MSGCODE_COMMAND_ACCEPTED
	.comm	_MSGCODE_TRANSMIT_ACK_POLARITY,4,2 ; @MSGCODE_TRANSMIT_ACK_POLARITY
	.comm	_MSGCODE_TRANSMIT_EOM,4,2       ; @MSGCODE_TRANSMIT_EOM
	.comm	_MSGCODE_TRANSMIT,4,2           ; @MSGCODE_TRANSMIT
	.no_dead_strip	_pulse8_cec_adap_transmit
.subsections_via_symbols
