	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rain_setup
_rain_setup:                            ## @rain_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_rain_send_and_wait
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	movq	(%rbx), %rdx
	addq	$4, %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	callq	_rain_send_and_wait
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	callq	_rain_send_and_wait
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rain_send_and_wait             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R"

L_.str.1:                               ## @.str.1
	.asciz	"REV"

L_.str.2:                               ## @.str.2
	.asciz	"Firmware version %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Q 1"

L_.str.4:                               ## @.str.4
	.asciz	"QTY"

L_.str.5:                               ## @.str.5
	.asciz	"c0000"

L_.str.6:                               ## @.str.6
	.asciz	"CFG"

L_.str.7:                               ## @.str.7
	.asciz	"A F 0000"

L_.str.8:                               ## @.str.8
	.asciz	"ADR"

	.no_dead_strip	_rain_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rain_setup
_rain_setup:                            ; @rain_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_rain_send_and_wait
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	add	x2, x8, #4
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_rain_send_and_wait
	cbnz	w0, LBB0_3
; %bb.2:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh12:
	adrp	x2, l_.str.6@PAGE
Lloh13:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_rain_send_and_wait
	cbz	w0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh16:
	adrp	x2, l_.str.8@PAGE
Lloh17:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rain_send_and_wait
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R"

l_.str.1:                               ; @.str.1
	.asciz	"REV"

l_.str.2:                               ; @.str.2
	.asciz	"Firmware version %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Q 1"

l_.str.4:                               ; @.str.4
	.asciz	"QTY"

l_.str.5:                               ; @.str.5
	.asciz	"c0000"

l_.str.6:                               ; @.str.6
	.asciz	"CFG"

l_.str.7:                               ; @.str.7
	.asciz	"A F 0000"

l_.str.8:                               ; @.str.8
	.asciz	"ADR"

	.no_dead_strip	_rain_setup
.subsections_via_symbols
