	.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
	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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ENTIRE_REPORT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_ENTIRE_REPORT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_si470x_get_report
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_RADIO_REGISTER_NUM@GOTPCREL(%rip), %r12
	cmpb	$0, (%r12)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_RADIO_REGISTER_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %eax
	imulq	%rbx, %rax
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	callq	_get_unaligned_be16
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movzbl	(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	sarl	$31, %eax
	andl	%edx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTIRE_REPORT_SIZE,4,2         ## @ENTIRE_REPORT_SIZE
	.comm	_ENTIRE_REPORT,1,0              ## @ENTIRE_REPORT
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _ENTIRE_REPORT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENTIRE_REPORT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _ENTIRE_REPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENTIRE_REPORT@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x20]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_si470x_get_report
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh10:
	adrp	x22, _RADIO_REGISTER_NUM@GOTPAGE
Lloh11:
	ldr	x22, [x22, _RADIO_REGISTER_NUM@GOTPAGEOFF]
	ldrb	w8, [x22]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x23, #0
Lloh12:
	adrp	x24, _RADIO_REGISTER_SIZE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _RADIO_REGISTER_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x24]
	madd	x8, x23, x8, x20
	add	x0, x8, #1
	bl	_get_unaligned_be16
	ldr	x8, [x19]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldrb	w8, [x22]
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldur	x9, [x29, #-56]
Lloh17:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_6
; %bb.5:
	neg	w8, w8
	and	w0, w8, w21, asr #31
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTIRE_REPORT_SIZE,4,2         ; @ENTIRE_REPORT_SIZE
	.comm	_ENTIRE_REPORT,1,0              ; @ENTIRE_REPORT
	.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
