	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	8(%r14), %rsi
	callq	_dib0090_reset_digital
	movq	%rbx, %rdi
	callq	_dib0090_identify
	movl	%eax, (%r14)
	cmpl	$255, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_dib0090_defaults@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r15d, %edi
	callq	_pgm_read_word
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r12d
	addq	$4, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%r15d, %edi
	callq	_pgm_read_word
	movl	%eax, %r13d
	leal	4(%r15), %ebx
	addq	$8, %r15
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_pgm_read_word
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dib0090_write_reg
	incl	%r13d
	addq	$4, %r15
	addl	$4, %ebx
	decl	%r12d
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_pgm_read_word
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_4
LBB0_7:
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	cmpl	$24000, (%rax)                  ## imm = 0x5DC0
	setge	%cl
	movl	$2, %edx
	subl	%ecx, %edx
	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
	movl	$3, 4(%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dib0090_defaults,8,3           ## @dib0090_defaults
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pll lock : %d"

	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x1, [x19, #8]
	bl	_dib0090_reset_digital
	mov	x0, x20
	bl	_dib0090_identify
	str	w0, [x19]
	cmp	w0, #255
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _dib0090_defaults@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dib0090_defaults@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_pgm_read_word
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
	add	x21, x21, #4
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x21
	bl	_pgm_read_word
	mov	x22, x0
	add	w23, w21, #4
	add	x21, x21, #8
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_pgm_read_word
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dib0090_write_reg
	add	w22, w22, #1
	add	x21, x21, #4
	add	w23, w23, #4
	subs	w20, w20, #1
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_pgm_read_word
	mov	x20, x0
	cbnz	w0, LBB0_4
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	mov	w9, #23999
	cmp	w8, w9
	mov	w8, #1
	cinc	w2, w8, le
	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
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w0, #0
	mov	w8, #3
	str	w8, [x19, #4]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dib0090_defaults,8,3           ; @dib0090_defaults
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pll lock : %d"

	.no_dead_strip	_dib0090_reset
.subsections_via_symbols
