	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_get_all_registers
_si470x_get_all_registers:              ## @si470x_get_all_registers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ENTIRE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rsi
	movl	%eax, (%rsi)
	movq	_ENTIRE_REPORT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_si470x_get_report
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_RADIO_REGISTER_NUM@GOTPCREL(%rip), %r15
	cmpb	$0, (%r15)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_RADIO_REGISTER_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movzbl	(%r13), %ecx
	imulq	%rbx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$4, %rdi
	callq	_get_unaligned_be16
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movzbl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	sarl	$31, %r14d
	andl	%ecx, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTIRE_REPORT,4,2              ## @ENTIRE_REPORT
	.comm	_ENTIRE_REPORT_SIZE,4,2         ## @ENTIRE_REPORT_SIZE
	.comm	_RADIO_REGISTER_NUM,1,0         ## @RADIO_REGISTER_NUM
	.comm	_RADIO_REGISTER_SIZE,1,0        ## @RADIO_REGISTER_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_si470x_get_all_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_get_all_registers
_si470x_get_all_registers:              ; @si470x_get_all_registers
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ENTIRE_REPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENTIRE_REPORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [x0]
	str	w8, [x1]
Lloh3:
	adrp	x8, _ENTIRE_REPORT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENTIRE_REPORT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_si470x_get_report
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh6:
	adrp	x21, _RADIO_REGISTER_NUM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RADIO_REGISTER_NUM@GOTPAGEOFF]
	ldrb	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x22, #0
Lloh8:
	adrp	x23, _RADIO_REGISTER_SIZE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _RADIO_REGISTER_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldrb	w9, [x23]
	mul	x9, x22, x9
	add	x8, x8, x9, lsl #2
	add	x0, x8, #4
	bl	_get_unaligned_be16
	ldr	x8, [x19, #8]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrb	w8, [x21]
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w8, w8
	and	w0, w8, w20, asr #31
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTIRE_REPORT,4,2              ; @ENTIRE_REPORT
	.comm	_ENTIRE_REPORT_SIZE,4,2         ; @ENTIRE_REPORT_SIZE
	.comm	_RADIO_REGISTER_NUM,1,0         ; @RADIO_REGISTER_NUM
	.comm	_RADIO_REGISTER_SIZE,1,0        ; @RADIO_REGISTER_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_si470x_get_all_registers
.subsections_via_symbols
