	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_get_adc_power
_dib7000p_get_adc_power:                ## @dib7000p_get_adc_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$388, %esi                      ## imm = 0x184
	callq	_dib7000p_read_word
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$389, %esi                      ## imm = 0x185
	callq	_dib7000p_read_word
	shll	$16, %r14d
	orl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$2, %r14d
	jb	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movl	%r14d, %eax
	movl	%r14d, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%ecx
	incl	%ebx
	cmpl	$3, %eax
	movl	%ecx, %eax
	ja	LBB0_2
LBB0_3:
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	imull	$1000, %r14d, %eax              ## imm = 0x3E8
	cltd
	idivl	%esi
	movslq	%eax, %r14
	imulq	$274877907, %r14, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	addl	$-1000, %r14d                   ## imm = 0xFC18
	movslq	%r14d, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movslq	%eax, %r14
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_lut_1000ln_mant@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	$693, %ebx, %ecx                ## imm = 0x2B5
	addl	(%rax,%r14,4), %ecx
	shll	$8, %ecx
	addl	$-5316608, %ecx                 ## imm = 0xFFAEE000
	movslq	%ecx, %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"raw pow_i = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	" mant = %d exp = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	" ix = %d\n"

	.comm	_lut_1000ln_mant,8,3            ## @lut_1000ln_mant
L_.str.3:                               ## @.str.3
	.asciz	" pow_i = %d\n"

	.no_dead_strip	_dib7000p_get_adc_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_get_adc_power
_dib7000p_get_adc_power:                ; @dib7000p_get_adc_power
	.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
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #388
	bl	_dib7000p_read_word
	mov	x20, x0
	mov	x0, x19
	mov	w1, #389
	bl	_dib7000p_read_word
	orr	w19, w0, w20, lsl #16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dprintk
	cmp	w19, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_4
LBB0_2:
	mov	w20, #0
	mov	x8, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w9, w8, #1
	add	w20, w20, #1
	cmp	w8, #3
	mov	x8, x9
	b.hi	LBB0_3
LBB0_4:
	mov	w8, #1000
	mul	w8, w19, w8
	mov	w9, #1
	lsl	w9, w9, w20
	sdiv	w19, w8, w9
	mov	w21, #19923
	movk	w21, #4194, lsl #16
	smull	x8, w19, w21
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	sub	w8, w19, #1000
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w19, w8, w9
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_dprintk
Lloh6:
	adrp	x8, _lut_1000ln_mant@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lut_1000ln_mant@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, w19, sxtw #2]
	mov	w9, #693
	madd	w8, w20, w9, w8
	lsl	w8, w8, #8
	sub	w8, w8, #1298, lsl #12          ; =5316608
	smull	x8, w8, w21
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w19, w8, w9
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_dprintk
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"raw pow_i = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	" mant = %d exp = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	" ix = %d\n"

	.comm	_lut_1000ln_mant,8,3            ; @lut_1000ln_mant
l_.str.3:                               ; @.str.3
	.asciz	" pow_i = %d\n"

	.no_dead_strip	_dib7000p_get_adc_power
.subsections_via_symbols
