	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si476x_core_parse_and_nag_about_error
_si476x_core_parse_and_nag_about_error: ## @si476x_core_parse_and_nag_about_error
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movq	_SI476X_REVISION_A10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	%rdi, %r14
	movq	_SI476X_I2C_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	$8, %ecx
	callq	_si476x_core_i2c_xfer
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.2:
	movl	-36(%rbp), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_3
## %bb.4:
	movslq	%eax, %rcx
	leaq	l_switch.table.si476x_core_parse_and_nag_about_error(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	l_reltable.si476x_core_parse_and_nag_about_error(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rdx
	addq	%rsi, %rdx
	jmp	LBB0_5
LBB0_6:
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	leaq	L_.str.12(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r15d, %r15d
	cmovsl	%r15d, %ebx
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.10(%rip), %rdx
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SI476X_REVISION_A10,8,3        ## @SI476X_REVISION_A10
	.comm	_SI476X_I2C_RECV,4,2            ## @SI476X_I2C_RECV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad command"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Bad argument #1"

L_.str.2:                               ## @.str.2
	.asciz	"Bad argument #2"

L_.str.3:                               ## @.str.3
	.asciz	"Bad argument #3"

L_.str.4:                               ## @.str.4
	.asciz	"Bad argument #4"

L_.str.5:                               ## @.str.5
	.asciz	"Chip is busy"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.6:                               ## @.str.6
	.asciz	"Bad internal memory"

	.comm	_EIO,4,2                        ## @EIO
L_.str.7:                               ## @.str.7
	.asciz	"Bad patch"

L_.str.8:                               ## @.str.8
	.asciz	"Bad boot mode"

L_.str.9:                               ## @.str.9
	.asciz	"Bad property"

L_.str.10:                              ## @.str.10
	.asciz	"Unknown"

L_.str.11:                              ## @.str.11
	.asciz	"[Chip error status]: %s\n"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to fetch error code\n"

	.no_dead_strip	_si476x_core_parse_and_nag_about_error
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.si476x_core_parse_and_nag_about_error
l_switch.table.si476x_core_parse_and_nag_about_error:
	.quad	_EBUSY
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EIO
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.si476x_core_parse_and_nag_about_error
l_reltable.si476x_core_parse_and_nag_about_error:
	.long	L_.str.5-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.9-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.7-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.6-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.8-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.4-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.3-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.2-l_reltable.si476x_core_parse_and_nag_about_error
	.long	L_.str.1-l_reltable.si476x_core_parse_and_nag_about_error

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si476x_core_parse_and_nag_about_error
_si476x_core_parse_and_nag_about_error: ; @si476x_core_parse_and_nag_about_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _SI476X_REVISION_A10@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SI476X_REVISION_A10@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
Lloh9:
	adrp	x8, _SI476X_I2C_RECV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SI476X_I2C_RECV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	w3, #8
	bl	_si476x_core_i2c_xfer
	cmp	w0, #8
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [sp, #20]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_6
; %bb.4:
	sbfiz	x8, x8, #3, #32
Lloh12:
	adrp	x9, l_switch.table.si476x_core_parse_and_nag_about_error@PAGE
Lloh13:
	add	x9, x9, l_switch.table.si476x_core_parse_and_nag_about_error@PAGEOFF
	ldr	x9, [x9, x8]
Lloh14:
	adrp	x10, l_switch.table.si476x_core_parse_and_nag_about_error.13@PAGE
Lloh15:
	add	x10, x10, l_switch.table.si476x_core_parse_and_nag_about_error.13@PAGEOFF
	ldr	x8, [x10, x8]
	b	LBB0_7
LBB0_5:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.12@PAGE
Lloh17:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w20, w20, w8, lt
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x8, l_.str.10@PAGE
Lloh22:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh23:
	adrp	x9, _EIO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	neg	w20, w9
	ldr	x0, [x19, #8]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_err
LBB0_8:
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SI476X_REVISION_A10,8,3        ; @SI476X_REVISION_A10
	.comm	_SI476X_I2C_RECV,4,2            ; @SI476X_I2C_RECV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad command"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Bad argument #1"

l_.str.2:                               ; @.str.2
	.asciz	"Bad argument #2"

l_.str.3:                               ; @.str.3
	.asciz	"Bad argument #3"

l_.str.4:                               ; @.str.4
	.asciz	"Bad argument #4"

l_.str.5:                               ; @.str.5
	.asciz	"Chip is busy"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.6:                               ; @.str.6
	.asciz	"Bad internal memory"

	.comm	_EIO,4,2                        ; @EIO
l_.str.7:                               ; @.str.7
	.asciz	"Bad patch"

l_.str.8:                               ; @.str.8
	.asciz	"Bad boot mode"

l_.str.9:                               ; @.str.9
	.asciz	"Bad property"

l_.str.10:                              ; @.str.10
	.asciz	"Unknown"

l_.str.11:                              ; @.str.11
	.asciz	"[Chip error status]: %s\n"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to fetch error code\n"

	.no_dead_strip	_si476x_core_parse_and_nag_about_error
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.si476x_core_parse_and_nag_about_error
l_switch.table.si476x_core_parse_and_nag_about_error:
	.quad	_EBUSY
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EIO
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL
	.quad	_EINVAL

	.p2align	3                               ; @switch.table.si476x_core_parse_and_nag_about_error.13
l_switch.table.si476x_core_parse_and_nag_about_error.13:
	.quad	l_.str.5
	.quad	l_.str.9
	.quad	l_.str.7
	.quad	l_.str.6
	.quad	l_.str
	.quad	l_.str.8
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1

.subsections_via_symbols
