	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9033_read_snr
_af9033_read_snr:                       ## @af9033_read_snr
	.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	%rsi, %r15
	movq	(%rdi), %rbx
	movq	24(%rbx), %r13
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	_FE_SCALE_DECIBEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.1:
	cmpq	$0, 8(%rbx)
	movl	8(%rax), %edi
	je	LBB0_3
## %bb.2:
	movl	$100, %esi
	callq	_div_s64
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_10:
	movl	$0, (%r15)
	jmp	LBB0_12
LBB0_3:
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div_s64
	movl	%eax, (%r15)
	movl	(%rbx), %edi
	leaq	-44(%rbp), %rdx
	movl	$8452355, %esi                  ## imm = 0x80F903
	callq	_regmap_read
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r12d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-44(%rbp), %eax
	andl	$3, %eax
	cmpl	$2, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$1, %eax
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movl	(%r15), %eax
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$-1307163959, %rax, %rcx        ## imm = 0xB21642C9
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$4, %eax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_9:
	movl	(%r15), %eax
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	leal	31(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$5, %eax
	movl	%eax, (%r15)
	jmp	LBB0_12
LBB0_8:
	movl	(%r15), %eax
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1321528399, %rax, %rax         ## imm = 0x4EC4EC4F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_FE_SCALE_DECIBEL,8,3           ## @FE_SCALE_DECIBEL
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_af9033_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9033_read_snr
_af9033_read_snr:                       ; @af9033_read_snr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x21, [x20, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _FE_SCALE_DECIBEL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FE_SCALE_DECIBEL@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	ldr	w0, [x8, #8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	w1, #100
	bl	_div_s64
	mov	w20, #0
	str	w0, [x19]
	b	LBB0_6
LBB0_3:
	mov	w20, #0
	str	wzr, [x19]
	b	LBB0_6
LBB0_4:
	mov	w1, #1000
	bl	_div_s64
	str	w0, [x19]
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	w1, #63747
	movk	w1, #128, lsl #16
	bl	_regmap_read
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_5:
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x3
	cmp	w8, #2
	b.eq	LBB0_11
; %bb.8:
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.9:
	cbnz	w8, LBB0_5
; %bb.10:
	mov	w20, #0
	ldr	w8, [x19]
	lsl	w9, w8, #16
	mov	w10, #17097
	movk	w10, #45590, lsl #16
	sub	w8, w9, w8
	smull	x9, w8, w10
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #4
	add	w8, w9, w8, lsr #31
	str	w8, [x19]
	b	LBB0_6
LBB0_11:
	mov	w20, #0
	ldr	w8, [x19]
	lsl	w9, w8, #16
	sub	w8, w9, w8
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	str	w8, [x19]
	b	LBB0_6
LBB0_12:
	mov	w20, #0
	ldr	w8, [x19]
	lsl	w9, w8, #16
	sub	w8, w9, w8
	mov	w9, #60495
	movk	w9, #20164, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_FE_SCALE_DECIBEL,8,3           ; @FE_SCALE_DECIBEL
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_af9033_read_snr
.subsections_via_symbols
