	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_read_status_t2        ## -- Begin function cxd2820r_read_status_t2
	.p2align	4, 0x90
_cxd2820r_read_status_t2:               ## @cxd2820r_read_status_t2
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rdi), %r13
	movq	16(%r13), %rax
	movq	(%rax), %r14
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movl	$8208, %esi                     ## imm = 0x2010
	movl	$1, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_25:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-64(%rbp), %eax
	movl	%eax, %r9d
	andl	$7, %r9d
	shrl	$5, %eax
	andl	$1, %eax
	cmpl	$6, %r9d
	jne	LBB0_4
## %bb.2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	cmpl	$6, %r9d
	je	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %edx
LBB0_8:
	movl	%edx, (%r15)
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	movl	$1, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.9:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movl	$8230, %esi                     ## imm = 0x2026
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.10:
	movl	-64(%rbp), %eax
	shll	$8, %eax
	orl	-60(%rbp), %eax
	notl	%eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%eax, %ecx
	shll	$4, %ecx
	shrl	$8, %eax
	orl	%ecx, %eax
	movl	$1, 32(%r12)
	movq	_FE_SCALE_RELATIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	40(%r12), %rdx
	movq	%rcx, 8(%rdx)
	movl	%eax, (%rdx)
	jmp	LBB0_12
LBB0_11:
	movl	$1, 32(%r12)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	40(%r12), %rcx
	movq	%rax, 8(%rcx)
LBB0_12:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_18
## %bb.13:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movl	$8232, %esi                     ## imm = 0x2028
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.14:
	movl	-64(%rbp), %edi
	shll	$8, %edi
	orl	-60(%rbp), %edi
	andl	$4095, %edi                     ## imm = 0xFFF
	je	LBB0_15
## %bb.16:
	callq	_intlog10
	imull	$10000, %eax, %edi              ## imm = 0x2710
	addl	$-1189504640, %edi              ## imm = 0xB9199980
	movl	$16777216, %esi                 ## imm = 0x1000000
	callq	_div_u64
	jmp	LBB0_17
LBB0_18:
	movl	$1, 16(%r12)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_19
LBB0_15:
	xorl	%eax, %eax
LBB0_17:
	movl	$1, 16(%r12)
	movq	_FE_SCALE_DECIBEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	24(%r12), %rdx
	movq	%rcx, 8(%rdx)
	movl	%eax, (%rdx)
LBB0_19:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_24
## %bb.20:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movl	$8249, %esi                     ## imm = 0x2039
	movl	$4, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:
	movl	-64(%rbp), %ecx
	xorl	%ebx, %ebx
	movl	$0, %eax
	testb	$16, %cl
	je	LBB0_23
## %bb.22:
	shll	$24, %ecx
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %eax
	shll	$16, %edx
	orl	%ecx, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	-52(%rbp), %eax
	andl	$268435455, %eax                ## imm = 0xFFFFFFF
LBB0_23:
	addl	(%r13), %eax
	movl	%eax, (%r13)
	movl	$1, (%r12)
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r12), %rdx
	movq	%rcx, 8(%rdx)
	movl	%eax, (%rdx)
	jmp	LBB0_26
LBB0_24:
	movl	$1, (%r12)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status=%02x raw=%*ph sync=%u ts=%u\n"

	.comm	_FE_SCALE_RELATIVE,8,3          ## @FE_SCALE_RELATIVE
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_DECIBEL,8,3           ## @FE_SCALE_DECIBEL
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.comm	_CXD2820R_LOG10_8_24,8,3        ## @CXD2820R_LOG10_8_24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_read_status_t2        ; -- Begin function cxd2820r_read_status_t2
	.p2align	2
_cxd2820r_read_status_t2:               ; @cxd2820r_read_status_t2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x23, [x0, #48]
	ldp	x9, x8, [x23, #8]
	ldr	x20, [x8]
	ldr	w0, [x9]
	add	x2, sp, #40
	mov	w1, #8208
	mov	w3, #1
	bl	_regmap_bulk_read
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
LBB0_2:
	ldr	x8, [sp, #56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.3:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	ldr	w9, [sp, #40]
	and	w8, w9, #0x7
	ubfx	w9, w9, #5, #1
	cmp	w8, #6
	ccmp	w9, #0, #4, eq
Lloh8:
	adrp	x22, _FE_HAS_SIGNAL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh10:
	adrp	x24, _FE_HAS_VITERBI@GOTPAGE
Lloh11:
	ldr	x24, [x24, _FE_HAS_VITERBI@GOTPAGEOFF]
	b.ne	LBB0_7
; %bb.5:
	cmp	w8, #6
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_9
; %bb.6:
	ldr	w10, [x22]
Lloh12:
	adrp	x11, _FE_HAS_CARRIER@GOTPAGE
Lloh13:
	ldr	x11, [x11, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x24]
	orr	w10, w10, w11
Lloh15:
	adrp	x11, _FE_HAS_SYNC@GOTPAGE
Lloh16:
	ldr	x11, [x11, _FE_HAS_SYNC@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w10, [x22]
Lloh17:
	adrp	x11, _FE_HAS_CARRIER@GOTPAGE
Lloh18:
	ldr	x11, [x11, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x24]
	orr	w10, w10, w11
Lloh20:
	adrp	x11, _FE_HAS_SYNC@GOTPAGE
Lloh21:
	ldr	x11, [x11, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh23:
	adrp	x11, _FE_HAS_LOCK@GOTPAGE
Lloh24:
	ldr	x11, [x11, _FE_HAS_LOCK@GOTPAGEOFF]
LBB0_8:
	ldr	w11, [x11]
	orr	w2, w10, w11
	b	LBB0_10
LBB0_9:
	mov	w2, #0
LBB0_10:
	str	w2, [x21]
	stp	x8, x9, [sp, #16]
	add	x8, sp, #40
	mov	w25, #1
	stp	x25, x8, [sp]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
	add	x2, sp, #40
	mov	w1, #8230
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.12:
	ldp	w8, w9, [sp, #40]
	orr	w8, w9, w8, lsl #8
	mvn	w8, w8
	and	w9, w8, #0xfff
	ubfx	w8, w8, #8, #4
	bfi	w8, w9, #4, #12
	mov	w9, #1
	str	w9, [x19, #32]
Lloh27:
	adrp	x9, _FE_SCALE_RELATIVE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FE_SCALE_RELATIVE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	ldr	x10, [x19, #40]
	str	x9, [x10, #8]
	str	w8, [x10]
	b	LBB0_14
LBB0_13:
	str	w25, [x19, #32]
Lloh30:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x19, #40]
	str	x8, [x9, #8]
LBB0_14:
	ldr	w8, [x21]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.15:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
	add	x2, sp, #40
	mov	w1, #8232
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.16:
	ldp	w8, w9, [sp, #40]
	orr	w8, w9, w8, lsl #8
	ands	w0, w8, #0xfff
	b.eq	LBB0_18
; %bb.17:
	bl	_intlog10
	mov	w8, #10000
	mov	w9, #39296
	movk	w9, #47385, lsl #16
	madd	w0, w0, w8, w9
	mov	w1, #16777216
	bl	_div_u64
LBB0_18:
	mov	w8, #1
	str	w8, [x19, #16]
Lloh33:
	adrp	x8, _FE_SCALE_DECIBEL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FE_SCALE_DECIBEL@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	str	x8, [x9, #8]
	str	w0, [x9]
	b	LBB0_20
LBB0_19:
	mov	w8, #1
	str	w8, [x19, #16]
Lloh36:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	str	x8, [x9, #8]
LBB0_20:
	ldr	w8, [x21]
Lloh39:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
	add	x2, sp, #40
	mov	w1, #8249
	mov	w3, #4
	bl	_regmap_bulk_read
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.22:
	ldr	w8, [sp, #40]
	tbnz	w8, #4, LBB0_25
; %bb.23:
	mov	w8, #0
	b	LBB0_26
LBB0_24:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x19]
Lloh42:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
	b	LBB0_2
LBB0_25:
	ldp	w9, w10, [sp, #44]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	orr	w8, w8, w10, lsl #8
	ldr	w9, [sp, #52]
	orr	w8, w8, w9
	and	w8, w8, #0xfffffff
LBB0_26:
	mov	w22, #0
	ldr	w9, [x23]
	add	w8, w9, w8
	str	w8, [x23]
	mov	w9, #1
	str	w9, [x19]
Lloh45:
	adrp	x9, _FE_SCALE_COUNTER@GOTPAGE
Lloh46:
	ldr	x9, [x9, _FE_SCALE_COUNTER@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	str	x9, [x10, #8]
	str	w8, [x10]
	b	LBB0_2
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status=%02x raw=%*ph sync=%u ts=%u\n"

	.comm	_FE_SCALE_RELATIVE,8,3          ; @FE_SCALE_RELATIVE
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_SCALE_DECIBEL,8,3           ; @FE_SCALE_DECIBEL
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.comm	_CXD2820R_LOG10_8_24,8,3        ; @CXD2820R_LOG10_8_24
.subsections_via_symbols
