	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rain_process_msg
_rain_process_msg:                      ## @rain_process_msg
	.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	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rbx
	movb	3(%rbx), %al
	movl	$-1, %r15d
	testb	%al, %al
	je	LBB0_11
## %bb.1:
	addq	$3, %rbx
	xorl	%r12d, %r12d
	movq	_CEC_MAX_MSG_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	1(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %r12
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hex2bin
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	incq	%r12
	movq	%r12, -64(%rbp)
	jmp	LBB0_8
LBB0_9:
	cmpb	$0, 1(%rbx)
	jne	LBB0_11
## %bb.10:
	movsbl	(%rbx), %edi
	callq	_hex_to_bin
	movl	%eax, %r15d
LBB0_11:
	movq	(%r14), %rax
	cmpb	$82, (%rax)
	jne	LBB0_15
## %bb.12:
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_14
## %bb.13:
	movl	8(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_cec_received_msg
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	cmpl	$2, %r15d
	je	LBB0_19
## %bb.16:
	cmpl	$1, %r15d
	jne	LBB0_20
## %bb.17:
	movl	8(%r14), %edi
	movq	_CEC_TX_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_19:
	movl	8(%r14), %edi
	movq	_CEC_TX_STATUS_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_20:
	movl	8(%r14), %edi
	movq	_CEC_TX_STATUS_LOW_DRIVE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cec_transmit_attempt_done      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_MAX_MSG_SIZE,8,3           ## @CEC_MAX_MSG_SIZE
	.comm	_CEC_TX_STATUS_OK,4,2           ## @CEC_TX_STATUS_OK
	.comm	_CEC_TX_STATUS_NACK,4,2         ## @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_LOW_DRIVE,4,2    ## @CEC_TX_STATUS_LOW_DRIVE
	.no_dead_strip	_rain_process_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rain_process_msg
_rain_process_msg:                      ; @rain_process_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	ldr	x20, [x0]
	ldrb	w8, [x20, #3]!
	cbz	w8, LBB0_10
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _CEC_MAX_MSG_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CEC_MAX_MSG_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x20, #1]!
	cbz	w8, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isxdigit
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w0, [x20]
	bl	_isxdigit
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x20
	ldrsb	w0, [x23, #1]!
	bl	_isxdigit
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cmp	x21, x8
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_hex2bin
	cbnz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	str	x21, [sp]
	mov	x20, x23
	b	LBB0_2
LBB0_9:
	ldrb	w8, [x20, #1]
	cbz	w8, LBB0_21
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cmp	w8, #82
	b.ne	LBB0_15
; %bb.12:
	sub	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_14
; %bb.13:
	ldr	w0, [x19, #8]
	mov	x1, sp
	bl	_cec_received_msg
LBB0_14:
	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
	add	sp, sp, #80
	ret
LBB0_15:
	cmp	w0, #2
	b.eq	LBB0_18
; %bb.16:
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.17:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _CEC_TX_STATUS_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_TX_STATUS_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x8, _CEC_TX_STATUS_NACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CEC_TX_STATUS_NACK@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _CEC_TX_STATUS_LOW_DRIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CEC_TX_STATUS_LOW_DRIVE@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	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
	add	sp, sp, #80
	b	_cec_transmit_attempt_done
LBB0_21:
	ldrsb	w0, [x20]
	bl	_hex_to_bin
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_MAX_MSG_SIZE,8,3           ; @CEC_MAX_MSG_SIZE
	.comm	_CEC_TX_STATUS_OK,4,2           ; @CEC_TX_STATUS_OK
	.comm	_CEC_TX_STATUS_NACK,4,2         ; @CEC_TX_STATUS_NACK
	.comm	_CEC_TX_STATUS_LOW_DRIVE,4,2    ; @CEC_TX_STATUS_LOW_DRIVE
	.no_dead_strip	_rain_process_msg
.subsections_via_symbols
