	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0090_reset
_dib0090_reset:                         ## @dib0090_reset
	.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	(%rdi), %r14
	movq	8(%r14), %rsi
	callq	_dib0090_reset_digital
	movq	%rbx, %rdi
	callq	_dib0090_identify
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	cmpq	$0, 24(%r14)
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	movl	$26, %esi
	callq	_dib0090_read_reg
	testb	$64, %al
	jne	LBB0_4
## %bb.5:
	movq	_EN_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EN_DIGCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_4:
	movq	_EN_IQADC@GOTPCREL(%rip), %rax
	movq	_EN_BB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_EN_BIAS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_EN_DIGCLK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_EN_PLL@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %edx
	movq	_EN_CRYSTAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	$27, %esi
	callq	_dib0090_write_reg
LBB0_7:
	movq	_dib0090_defaults@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dib0090_set_default_config
	cmpq	$0, 24(%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$10512, %edx                    ## imm = 0x2910
	callq	_dib0090_write_reg
LBB0_9:
	cmpq	$0, 32(%r14)
	je	LBB0_11
## %bb.10:
	movq	_dib0090_p1g_additionnal_defaults@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dib0090_set_default_config
LBB0_11:
	movl	16(%r14), %eax
	andl	$31, %eax
	movq	_P1D_E_F@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
## %bb.12:
	cmpq	$0, 24(%r14)
	je	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_dib0090_set_EFUSE
LBB0_14:
	movq	8(%r14), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_16
## %bb.15:
	andl	$3, %edx
	jmp	LBB0_17
LBB0_16:
	xorl	%ecx, %ecx
	cmpl	$24000, 4(%rax)                 ## imm = 0x5DC0
	setge	%cl
	movl	$2, %edx
	subl	%ecx, %edx
LBB0_17:
	movq	%r14, %rdi
	movl	$20, %esi
	callq	_dib0090_write_reg
	movq	%r14, %rdi
	movl	$26, %esi
	callq	_dib0090_read_reg
	shrl	$11, %eax
	andl	$1, %eax
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	movq	_DC_CAL@GOTPCREL(%rip), %rax
	movq	_WBD_CAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TEMP_CAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EN_IQADC,4,2                   ## @EN_IQADC
	.comm	_EN_BB,4,2                      ## @EN_BB
	.comm	_EN_BIAS,4,2                    ## @EN_BIAS
	.comm	_EN_DIGCLK,4,2                  ## @EN_DIGCLK
	.comm	_EN_PLL,4,2                     ## @EN_PLL
	.comm	_EN_CRYSTAL,4,2                 ## @EN_CRYSTAL
	.comm	_dib0090_defaults,4,2           ## @dib0090_defaults
	.comm	_dib0090_p1g_additionnal_defaults,4,2 ## @dib0090_p1g_additionnal_defaults
	.comm	_P1D_E_F,4,2                    ## @P1D_E_F
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pll lock : %d\n"

	.comm	_DC_CAL,4,2                     ## @DC_CAL
	.comm	_WBD_CAL,4,2                    ## @WBD_CAL
	.comm	_TEMP_CAL,4,2                   ## @TEMP_CAL
	.no_dead_strip	_dib0090_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0090_reset
_dib0090_reset:                         ; @dib0090_reset
	.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	x20, x0
	ldr	x19, [x0]
	ldr	x1, [x19, #8]
	bl	_dib0090_reset_digital
	mov	x0, x20
	bl	_dib0090_identify
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	w1, #26
	bl	_dib0090_read_reg
	tbnz	w0, #6, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _EN_PLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EN_PLL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EN_DIGCLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EN_DIGCLK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_5:
Lloh8:
	adrp	x8, _EN_IQADC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EN_IQADC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EN_BB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EN_BB@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _EN_BIAS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EN_BIAS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _EN_DIGCLK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EN_DIGCLK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _EN_PLL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EN_PLL@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _EN_CRYSTAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EN_CRYSTAL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #27
	bl	_dib0090_write_reg
LBB0_7:
Lloh25:
	adrp	x8, _dib0090_defaults@GOTPAGE
Lloh26:
	ldr	x8, [x8, _dib0090_defaults@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib0090_set_default_config
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #24
	mov	w2, #10512
	bl	_dib0090_write_reg
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
Lloh28:
	adrp	x8, _dib0090_p1g_additionnal_defaults@GOTPAGE
Lloh29:
	ldr	x8, [x8, _dib0090_p1g_additionnal_defaults@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib0090_set_default_config
LBB0_11:
	ldr	w8, [x19, #16]
	and	w8, w8, #0x1f
Lloh31:
	adrp	x9, _P1D_E_F@GOTPAGE
Lloh32:
	ldr	x9, [x9, _P1D_E_F@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.12:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_dib0090_set_EFUSE
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cbz	w9, LBB0_16
; %bb.15:
	and	w2, w9, #0x3
	b	LBB0_17
LBB0_16:
	ldr	w8, [x8, #4]
	mov	w9, #23999
	cmp	w8, w9
	mov	w8, #1
	cinc	w2, w8, le
LBB0_17:
	mov	x0, x19
	mov	w1, #20
	bl	_dib0090_write_reg
	mov	x0, x19
	mov	w1, #26
	bl	_dib0090_read_reg
	ubfx	w1, w0, #11, #1
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
Lloh36:
	adrp	x8, _DC_CAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DC_CAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _WBD_CAL@GOTPAGE
Lloh40:
	ldr	x9, [x9, _WBD_CAL@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x9, _TEMP_CAL@GOTPAGE
Lloh43:
	ldr	x9, [x9, _TEMP_CAL@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EN_IQADC,4,2                   ; @EN_IQADC
	.comm	_EN_BB,4,2                      ; @EN_BB
	.comm	_EN_BIAS,4,2                    ; @EN_BIAS
	.comm	_EN_DIGCLK,4,2                  ; @EN_DIGCLK
	.comm	_EN_PLL,4,2                     ; @EN_PLL
	.comm	_EN_CRYSTAL,4,2                 ; @EN_CRYSTAL
	.comm	_dib0090_defaults,4,2           ; @dib0090_defaults
	.comm	_dib0090_p1g_additionnal_defaults,4,2 ; @dib0090_p1g_additionnal_defaults
	.comm	_P1D_E_F,4,2                    ; @P1D_E_F
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pll lock : %d\n"

	.comm	_DC_CAL,4,2                     ; @DC_CAL
	.comm	_WBD_CAL,4,2                    ; @WBD_CAL
	.comm	_TEMP_CAL,4,2                   ; @TEMP_CAL
	.no_dead_strip	_dib0090_reset
.subsections_via_symbols
