	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0090_dc_offset_calibration
_dib0090_dc_offset_calibration:         ## @dib0090_dc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	xorl	%ebx, %ebx
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_27
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib0090_get_offset             ## TAILCALL
LBB0_26:
	movl	(%r15), %edx
	andl	$-9, %edx
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_dib0090_write_reg
	movq	%r15, %rdi
	movl	$31, %esi
	movl	$7, %edx
	callq	_dib0090_write_reg
	movl	$135, (%r14)
	movq	_DC_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%r15)
	jmp	LBB0_27
LBB0_8:
	movl	8(%r15), %edx
	movl	16(%r15), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.9:
	cmpl	$0, 16(%r15)
	movl	$0, %ecx
	jns	LBB0_11
## %bb.10:
	movl	$-1023, 12(%r15)                ## imm = 0xFC01
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	8(%r15), %ecx
LBB0_11:
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	8(%r15), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.12:
	movl	16(%r15), %esi
	jmp	LBB0_18
LBB0_6:
	movq	%r15, %rdi
	callq	_dib0090_set_trim
	movl	$132, (%r14)
	jmp	LBB0_27
LBB0_2:
	movq	24(%r15), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$0, 36(%r15)
	movl	$1037, (%r15)                   ## imm = 0x40D
	movq	%r15, %rdi
	movl	$36, %esi
	callq	_dib0090_read_reg
	andl	$4091, %eax                     ## imm = 0xFFB
	movq	%r15, %rdi
	movl	$36, %esi
	movl	%eax, %edx
	callq	_dib0090_write_reg
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_dib0090_read_reg
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%r15)
	andl	$-2044, %eax                    ## imm = 0xF804
	leal	59(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_dib0090_write_reg
	movq	%r15, %rdi
	movl	$35, %esi
	callq	_dib0090_read_reg
	andl	$-16385, %eax                   ## imm = 0xBFFF
	movq	%r15, %rdi
	movl	$35, %esi
	movl	%eax, %edx
	callq	_dib0090_write_reg
	movq	_dc_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	cmpl	$0, 32(%r15)
	je	LBB0_5
## %bb.4:
	movq	_dc_p1g_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
LBB0_5:
	cmpl	$1, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	24(%r15), %rax
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_dib0090_write_reg
	movq	24(%r15), %rax
	movl	(%rax), %edx
	shll	$7, %edx
	orl	(%r15), %edx
	movq	%r15, %rdi
	movl	$7, %esi
	callq	_dib0090_write_reg
	movabsq	$4393751543808, %rax            ## imm = 0x3FF00000000
	movq	%rax, 8(%r15)
	movl	$133, (%r14)
	movl	$50, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	24(%r15), %rax
	cmpl	$0, 12(%rax)
	movl	16(%r15), %esi
	je	LBB0_16
## %bb.14:
	xorl	%edi, %edi
	testl	%esi, %esi
	jns	LBB0_18
	jmp	LBB0_15
LBB0_16:
	testl	%esi, %esi
	jle	LBB0_17
LBB0_15:
	movl	$16, 8(%r15)
	movl	$16, %edi
	jmp	LBB0_18
LBB0_17:
	xorl	%edi, %edi
LBB0_18:
	movl	12(%r15), %edx
	movl	%edx, %eax
	xorl	%esi, %eax
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_21
## %bb.19:
	callq	_steps
	cmpl	$15, %eax
	jge	LBB0_20
## %bb.28:
	incl	8(%r15)
	movl	16(%r15), %eax
	movl	%eax, 12(%r15)
	movl	$133, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_20:
	movl	12(%r15), %edx
	movl	16(%r15), %esi
LBB0_21:
	movl	%esi, %eax
	negl	%eax
	cmovsl	%esi, %eax
	movl	%edx, %ecx
	negl	%ecx
	cmovsl	%edx, %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_23
## %bb.22:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	decl	8(%r15)
LBB0_23:
	movq	%r15, %rdi
	callq	_dib0090_set_trim
	movq	24(%r15), %rax
	movl	8(%rax), %esi
	movl	8(%r15), %ecx
	movl	16(%r15), %edx
	leaq	L_.str.8(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	24(%r15), %rax
	leaq	16(%rax), %rcx
	movq	%rcx, 24(%r15)
	cmpl	$0, 24(%rax)
	je	LBB0_24
## %bb.25:
	movl	$134, (%r14)
	jmp	LBB0_27
LBB0_24:
	movl	$128, (%r14)
	jmp	LBB0_27
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start DC offset calibration"

	.comm	_dc_table,8,3                   ## @dc_table
	.comm	_dc_p1g_table,8,3               ## @dc_p1g_table
L_.str.1:                               ## @.str.1
	.asciz	"Start/continue DC calibration for %s path\n"

L_.str.2:                               ## @.str.2
	.asciz	"I"

L_.str.3:                               ## @.str.3
	.asciz	"Q"

L_.str.4:                               ## @.str.4
	.asciz	"adc_diff = %d, current step= %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Change of sign of the minimum adc diff\n"

L_.str.6:                               ## @.str.6
	.asciz	"adc_diff = %d, min_adc_diff = %d current_step = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Since adc_diff N = %d  > adc_diff step N-1 = %d, Come back one step\n"

L_.str.8:                               ## @.str.8
	.asciz	"BB Offset Cal, BBreg=%hd,Offset=%hd,Value Set=%hd\n"

	.comm	_DC_CAL,4,2                     ## @DC_CAL
	.no_dead_strip	_dib0090_dc_offset_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dib0090_dc_offset_calibration
lCPI0_0:
	.long	0                               ; 0x0
	.long	1023                            ; 0x3ff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dib0090_dc_offset_calibration:         ; @dib0090_dc_offset_calibration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dib0090_get_offset
LBB0_3:
	mov	w0, #0
	b	LBB0_13
LBB0_4:
	ldr	w8, [x20]
	and	w2, w8, #0xfffffff7
	mov	x0, x20
	mov	w1, #7
	bl	_dib0090_write_reg
	mov	x0, x20
	mov	w1, #31
	mov	w2, #7
	bl	_dib0090_write_reg
	mov	w0, #0
	mov	w8, #135
	str	w8, [x19]
Lloh2:
	adrp	x8, _DC_CAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DC_CAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	bic	w8, w9, w8
	str	w8, [x20, #20]
	b	LBB0_13
LBB0_5:
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #8]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_15
; %bb.6:
	ldr	w8, [x20, #16]
	tbnz	w8, #31, LBB0_14
; %bb.7:
	mov	w8, #0
	b	LBB0_15
LBB0_8:
	mov	x0, x20
	bl	_dib0090_set_trim
	mov	w0, #0
	mov	w8, #132
	str	w8, [x19]
	b	LBB0_13
LBB0_9:
	ldr	x8, [x20, #24]
	b	LBB0_12
LBB0_10:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	str	wzr, [x20, #36]
	mov	w8, #1037
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #36
	bl	_dib0090_read_reg
	mov	w8, #4091
	and	w2, w0, w8
	mov	x0, x20
	mov	w1, #36
	bl	_dib0090_write_reg
	mov	x0, x20
	mov	w1, #16
	bl	_dib0090_read_reg
	str	w0, [x20, #4]
	and	w8, w0, #0xfffff83f
	mov	w9, #59
	orr	w2, w8, w9
	mov	x0, x20
	mov	w1, #16
	bl	_dib0090_write_reg
	mov	x0, x20
	mov	w1, #35
	bl	_dib0090_read_reg
	and	w2, w0, #0xffffbfff
	mov	x0, x20
	mov	w1, #35
	bl	_dib0090_write_reg
Lloh9:
	adrp	x8, _dc_table@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dc_table@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	ldr	w9, [x20, #32]
	cbz	w9, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _dc_p1g_table@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dc_p1g_table@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x20, #24]
LBB0_12:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh17:
	adrp	x10, l_.str.2@PAGE
Lloh18:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #1
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	x8, [x20, #24]
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	w1, #1
	bl	_dib0090_write_reg
	ldr	w8, [x20]
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
	orr	w2, w8, w9, lsl #7
	mov	x0, x20
	mov	w1, #7
	bl	_dib0090_write_reg
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #8]
	mov	w8, #133
	str	w8, [x19]
	mov	w0, #50
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	mov	w8, #-1023
	str	w8, [x20, #12]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintk
	ldr	w8, [x20, #8]
LBB0_15:
	ldp	w10, w9, [x20, #12]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dprintk
	ldr	w0, [x20, #8]
	cbz	w0, LBB0_17
; %bb.16:
	ldr	w8, [x20, #16]
	b	LBB0_22
LBB0_17:
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #12]
	ldr	w8, [x20, #16]
	cbz	w9, LBB0_20
; %bb.18:
	tbnz	w8, #31, LBB0_21
LBB0_19:
	mov	w0, #0
	b	LBB0_22
LBB0_20:
	cmp	w8, #1
	b.lt	LBB0_19
LBB0_21:
	mov	w0, #16
	str	w0, [x20, #8]
LBB0_22:
	ldr	w9, [x20, #12]
	eor	w10, w9, w8
	tbnz	w10, #15, LBB0_26
; %bb.23:
	bl	_steps
	cmp	w0, #15
	b.ge	LBB0_25
; %bb.24:
	mov	w0, #0
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	ldr	w9, [x20, #16]
	stp	w8, w9, [x20, #8]
	mov	w8, #133
	str	w8, [x19]
	b	LBB0_13
LBB0_25:
	ldp	w9, w8, [x20, #12]
LBB0_26:
	cmp	w8, #0
	cneg	w10, w8, mi
	cmp	w9, #0
	cneg	w11, w9, mi
	cmp	w10, w11
	b.ls	LBB0_28
; %bb.27:
	stp	x8, x9, [sp]
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_dprintk
	ldr	w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x20, #8]
LBB0_28:
	mov	x0, x20
	bl	_dib0090_set_trim
	ldr	x8, [x20, #24]
	ldr	w8, [x8, #8]
	ldr	w9, [x20, #16]
	ldr	w10, [x20, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.8@PAGE
Lloh30:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_dprintk
	ldr	x8, [x20, #24]
	add	x9, x8, #16
	str	x9, [x20, #24]
	ldr	w8, [x8, #24]
	cbz	w8, LBB0_30
; %bb.29:
	mov	w0, #0
	mov	w8, #134
	str	w8, [x19]
	b	LBB0_13
LBB0_30:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start DC offset calibration"

	.comm	_dc_table,8,3                   ; @dc_table
	.comm	_dc_p1g_table,8,3               ; @dc_p1g_table
l_.str.1:                               ; @.str.1
	.asciz	"Start/continue DC calibration for %s path\n"

l_.str.2:                               ; @.str.2
	.asciz	"I"

l_.str.3:                               ; @.str.3
	.asciz	"Q"

l_.str.4:                               ; @.str.4
	.asciz	"adc_diff = %d, current step= %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Change of sign of the minimum adc diff\n"

l_.str.6:                               ; @.str.6
	.asciz	"adc_diff = %d, min_adc_diff = %d current_step = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Since adc_diff N = %d  > adc_diff step N-1 = %d, Come back one step\n"

l_.str.8:                               ; @.str.8
	.asciz	"BB Offset Cal, BBreg=%hd,Offset=%hd,Value Set=%hd\n"

	.comm	_DC_CAL,4,2                     ; @DC_CAL
	.no_dead_strip	_dib0090_dc_offset_calibration
.subsections_via_symbols
