	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0070_wbd_offset_calibration
_dib0070_wbd_offset_calibration:        ## @dib0070_wbd_offset_calibration
	.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
	movl	$6, %esi
	callq	_dib0070_read_wbd_offset
                                        ## kill: def $eax killed $eax def $rax
	shll	$4, %eax
	leal	(%rax,%rax,8), %eax
	cltq
	imulq	$1041204193, %rax, %rax         ## imm = 0x3E0F83E1
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	incl	%eax
	shrl	$31, %eax
	addl	%eax, %edx
	incl	%edx
	sarl	%edx
	movq	(%rbx), %rax
	movl	%edx, (%rax)
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_dib0070_read_wbd_offset
                                        ## kill: def $eax killed $eax def $rax
	shll	$4, %eax
	leal	(%rax,%rax,8), %eax
	cltq
	imulq	$1041204193, %rax, %rax         ## imm = 0x3E0F83E1
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	leal	(%rax,%rcx), %edx
	addl	%ecx, %eax
	incl	%eax
	shrl	$31, %eax
	addl	%eax, %edx
	incl	%edx
	sarl	%edx
	movq	(%rbx), %rax
	movl	%edx, 4(%rax)
	movq	%r14, %rdi
	movl	$7, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Gain: %d, WBDOffset (3.3V) = %hd\n"

	.no_dead_strip	_dib0070_wbd_offset_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0070_wbd_offset_calibration
_dib0070_wbd_offset_calibration:        ; @dib0070_wbd_offset_calibration
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	mov	w1, #6
	bl	_dib0070_read_wbd_offset
	add	w8, w0, w0, lsl #3
	lsl	w8, w8, #4
	mov	w21, #33761
	movk	w21, #15887, lsl #16
	smull	x8, w8, w21
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w2, w8, #1
	ldr	x8, [x19]
	str	w2, [x8]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #6
	bl	_dprintk
	mov	x0, x19
	mov	w1, #7
	bl	_dib0070_read_wbd_offset
	add	w8, w0, w0, lsl #3
	lsl	w8, w8, #4
	smull	x8, w8, w21
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w2, w8, #1
	ldr	x8, [x19]
	str	w2, [x8, #4]
	mov	x0, x20
	mov	w1, #7
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dprintk
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Gain: %d, WBDOffset (3.3V) = %hd\n"

	.no_dead_strip	_dib0070_wbd_offset_calibration
.subsections_via_symbols
