	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0090_reset_digital
_dib0090_reset_digital:                 ## @dib0090_reset_digital
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_HARD_RESET
	movq	_EN_PLL@GOTPCREL(%rip), %rbx
	movq	_EN_CRYSTAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$36, %esi
	callq	_dib0090_write_reg
	cmpq	$0, 32(%r12)
	je	LBB0_1
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EN_DIGCLK@GOTPCREL(%rip), %rax
	movl	(%rbx), %edx
	orl	(%rax), %edx
	orl	(%r15), %edx
	movq	%r14, %rdi
	movl	$27, %esi
	callq	_dib0090_write_reg
	movl	8(%r12), %edx
	shll	$11, %edx
	addl	$-1280, %edx                    ## imm = 0xFB00
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_dib0090_write_reg
	xorl	%eax, %eax
	cmpl	$0, 40(%r12)
	sete	%al
	shll	$14, %eax
	leal	2784(%rax), %ecx
	movl	(%r12), %esi
	movl	4(%r12), %edx
	movl	%esi, %edi
	shll	$5, %edi
	orl	%eax, %edi
	orl	$2560, %edi                     ## imm = 0xA00
	testl	%esi, %esi
	cmovel	%ecx, %edi
	shll	$4, %edx
	orl	%edi, %edx
	movq	%r14, %rdi
	movl	$35, %esi
	callq	_dib0090_write_reg
	movq	%r14, %rdi
	movl	$33, %esi
	callq	_dib0090_read_reg
	movl	%eax, %r15d
	andl	$8191, %eax                     ## imm = 0x1FFF
	movl	12(%r12), %ecx
	movl	16(%r12), %edx
	shll	$12, %ecx
	shll	$6, %edx
	orl	%ecx, %edx
	orl	20(%r12), %edx
	cmpl	%edx, %eax
	je	LBB0_10
## %bb.2:
	cmpq	$0, 32(%r12)
	jne	LBB0_10
## %bb.3:
	cmpl	$0, 24(%r12)
	je	LBB0_4
LBB0_10:
	movl	24(%r12), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.12:
	shll	$15, %edx
	orl	%r15d, %edx
	movq	%r14, %rdi
	movl	$33, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib0090_write_reg              ## TAILCALL
LBB0_4:
	orl	$32768, %r15d                   ## imm = 0x8000
	movq	%r14, %rdi
	movl	$33, %esi
	movl	%r15d, %edx
	callq	_dib0090_write_reg
	andl	$-8193, %r15d                   ## imm = 0xDFFF
	movq	%r14, %rdi
	movl	$33, %esi
	movl	%r15d, %edx
	callq	_dib0090_write_reg
	movl	12(%r12), %eax
	movl	16(%r12), %r15d
	shll	$12, %eax
	shll	$6, %r15d
	orl	%eax, %r15d
	orl	20(%r12), %r15d
	movl	%r15d, %edx
	orl	$32768, %edx                    ## imm = 0x8000
	movq	%r14, %rdi
	movl	$33, %esi
	callq	_dib0090_write_reg
	orl	$40960, %r15d                   ## imm = 0xA000
	movq	%r14, %rdi
	movl	$33, %esi
	movl	%r15d, %edx
	callq	_dib0090_write_reg
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$26, %esi
	callq	_dib0090_read_reg
	testl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.9:
	andl	$-32769, %r15d                  ## imm = 0xFFFF7FFF
	movq	%r14, %rdi
	movl	$33, %esi
	movl	%r15d, %edx
	callq	_dib0090_write_reg
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EN_PLL,4,2                     ## @EN_PLL
	.comm	_EN_CRYSTAL,4,2                 ## @EN_CRYSTAL
	.comm	_EN_DIGCLK,4,2                  ## @EN_DIGCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pll: Unable to lock Pll\n"

	.no_dead_strip	_dib0090_reset_digital
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0090_reset_digital
_dib0090_reset_digital:                 ; @dib0090_reset_digital
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_HARD_RESET
Lloh0:
	adrp	x21, _EN_PLL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EN_PLL@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _EN_CRYSTAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EN_CRYSTAL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #36
	bl	_dib0090_write_reg
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
Lloh4:
	adrp	x8, _EN_DIGCLK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EN_DIGCLK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #27
	bl	_dib0090_write_reg
	ldr	w8, [x20, #8]
	lsl	w8, w8, #11
	sub	w2, w8, #1280
	mov	x0, x19
	mov	w1, #32
	bl	_dib0090_write_reg
	ldr	w8, [x20, #40]
	mov	w9, #2784
	mov	w10, #19168
	cmp	w8, #0
	csel	w8, w10, w9, eq
	mov	w9, #2560
	mov	w10, #18944
	csel	w9, w10, w9, eq
	ldp	w10, w11, [x20]
	orr	w9, w9, w10, lsl #5
	cmp	w10, #0
	csel	w8, w8, w9, eq
	orr	w2, w8, w11, lsl #4
	mov	x0, x19
	mov	w1, #35
	bl	_dib0090_write_reg
	mov	x0, x19
	mov	w1, #33
	bl	_dib0090_read_reg
	mov	x21, x0
	and	w8, w0, #0x1fff
	ldp	w9, w10, [x20, #12]
	lsl	w10, w10, #6
	orr	w9, w10, w9, lsl #12
	ldr	w10, [x20, #20]
	orr	w9, w9, w10
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_7
LBB0_5:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_1
LBB0_6:
	orr	w2, w21, w8, lsl #15
	mov	x0, x19
	mov	w1, #33
	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	_dib0090_write_reg
LBB0_7:
	orr	w21, w21, #0x8000
	mov	x0, x19
	mov	w1, #33
	mov	x2, x21
	bl	_dib0090_write_reg
	and	w2, w21, #0xffffdfff
	mov	x0, x19
	mov	w1, #33
	bl	_dib0090_write_reg
	ldp	w8, w9, [x20, #12]
	lsl	w9, w9, #6
	orr	w8, w9, w8, lsl #12
	ldr	w9, [x20, #20]
	orr	w21, w8, w9
	orr	w2, w21, #0x8000
	mov	x0, x19
	mov	w1, #33
	bl	_dib0090_write_reg
	mov	w8, #40960
	orr	w21, w21, w8
	mov	x0, x19
	mov	w1, #33
	mov	x2, x21
	bl	_dib0090_write_reg
	mov	w22, #-100
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #26
	bl	_dib0090_read_reg
	tbnz	w0, #11, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	adds	w22, w22, #1
	b.lo	LBB0_8
	b	LBB0_12
LBB0_10:
	cbz	w22, LBB0_12
; %bb.11:
	and	w21, w21, #0xffff7fff
	mov	x0, x19
	mov	w1, #33
	mov	x2, x21
	bl	_dib0090_write_reg
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_6
	b	LBB0_1
LBB0_12:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EN_PLL,4,2                     ; @EN_PLL
	.comm	_EN_CRYSTAL,4,2                 ; @EN_CRYSTAL
	.comm	_EN_DIGCLK,4,2                  ; @EN_DIGCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pll: Unable to lock Pll\n"

	.no_dead_strip	_dib0090_reset_digital
.subsections_via_symbols
