	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rain_cec_adap_transmit
_rain_cec_adap_transmit:                ## @rain_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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_cec_get_drvdata
	movq	%rax, %r14
	movq	_CEC_MAX_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %r12d
	addl	$16, %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpl	$1, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_cec_msg_destination
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_6
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_cec_msg_destination
	movq	8(%rbx), %rcx
	movl	4(%rcx), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	$3, (%rbx)
	jb	LBB0_5
## %bb.3:
	movl	$2, %r13d
	leaq	-51(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r13,4), %ecx
	movq	%r14, %rdi
	movl	$3, %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_strlcat
	incq	%r13
	movl	(%rbx), %eax
	cmpq	%rax, %r13
	jb	LBB0_4
LBB0_5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rain_send
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_MAX_MSG_SIZE,4,2           ## @CEC_MAX_MSG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x%x"

L_.str.1:                               ## @.str.1
	.asciz	"x%x %02x "

L_.str.2:                               ## @.str.2
	.asciz	"%02x"

	.no_dead_strip	_rain_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 rain_cec_adap_transmit
_rain_cec_adap_transmit:                ; @rain_cec_adap_transmit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x3
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_cec_get_drvdata
	mov	x19, x0
Lloh3:
	adrp	x8, _CEC_MAX_MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CEC_MAX_MSG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w22, w8, #16
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_cec_msg_destination
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_cec_msg_destination
	mov	x3, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	str	x8, [sp, #-16]!
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	add	sp, sp, #16
	ldr	w8, [x20]
	cmp	w8, #3
	b.lo	LBB0_5
; %bb.3:
	mov	w24, #2
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w3, [x8, x24, lsl #2]
	sub	x0, x29, #59
	mov	w1, #3
	mov	x2, x23
	bl	_snprintf
	sub	x1, x29, #59
	mov	x0, x21
	mov	x2, x22
	bl	_strlcat
	add	x24, x24, #1
	ldr	w8, [x20]
	cmp	x24, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x21
	bl	_rain_send
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_MAX_MSG_SIZE,4,2           ; @CEC_MAX_MSG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x%x"

l_.str.1:                               ; @.str.1
	.asciz	"x%x %02x "

l_.str.2:                               ; @.str.2
	.asciz	"%02x"

	.no_dead_strip	_rain_cec_adap_transmit
.subsections_via_symbols
