	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_get_adc_power
_dib8000_get_adc_power:                 ## @dib8000_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	(%rdi), %rdi
	movl	$384, %esi                      ## imm = 0x180
	callq	_dib8000_read32
                                        ## kill: def $eax killed $eax def $rax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	movl	%eax, %esi
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%edx
	incl	%ecx
	cmpl	$3, %esi
	movl	%edx, %esi
	ja	LBB0_3
LBB0_4:
	movl	$1, %esi
	shll	%cl, %esi
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cltd
	idivl	%esi
	addl	$-1000, %eax                    ## imm = 0xFC18
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movq	_lut_1000ln_mant@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cltq
	imull	$693, %ecx, %ecx                ## imm = 0x2B5
	addl	(%rdx,%rax,4), %ecx
	shll	$8, %ecx
	addl	$-5316608, %ecx                 ## imm = 0xFFAEE000
	movslq	%ecx, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lut_1000ln_mant,8,3            ## @lut_1000ln_mant
	.no_dead_strip	_dib8000_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 dib8000_get_adc_power
_dib8000_get_adc_power:                 ; @dib8000_get_adc_power
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x0, [x0]
	mov	w1, #384
	bl	_dib8000_read32
	cbz	w19, LBB0_6
; %bb.1:
	cmp	w0, #2
	b.hs	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
	mov	w8, #0
	mov	x9, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	asr	w10, w9, #1
	add	w8, w8, #1
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_4
LBB0_5:
	mov	w9, #1000
	mul	w9, w0, w9
	mov	w10, #1
	lsl	w10, w10, w8
	sdiv	w9, w9, w10
	sub	w9, w9, #1000
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
Lloh0:
	adrp	x10, _lut_1000ln_mant@GOTPAGE
Lloh1:
	ldr	x10, [x10, _lut_1000ln_mant@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w9, [x10, w9, sxtw #2]
	mov	w10, #693
	madd	w8, w8, w10, w9
	lsl	w8, w8, #8
	sub	w8, w8, #1298, lsl #12          ; =5316608
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_lut_1000ln_mant,8,3            ; @lut_1000ln_mant
	.no_dead_strip	_dib8000_get_adc_power
.subsections_via_symbols
