	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_HARD_RESET
	movq	_EN_PLL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$36, %esi
	callq	_dib0090_write_reg
	movq	_EN_DIGCLK@GOTPCREL(%rip), %rax
	movl	(%r15), %edx
	orl	(%rax), %edx
	movq	_EN_CRYSTAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	$27, %esi
	callq	_dib0090_write_reg
	movl	8(%rbx), %edx
	shll	$11, %edx
	addl	$-1280, %edx                    ## imm = 0xFB00
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_dib0090_write_reg
	xorl	%eax, %eax
	cmpl	$0, 28(%rbx)
	sete	%al
	shll	$14, %eax
	leal	1760(%rax), %ecx
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movl	%esi, %edi
	shll	$5, %edi
	orl	%eax, %edi
	orl	$1536, %edi                     ## imm = 0x600
	testl	%esi, %esi
	cmovel	%ecx, %edi
	shll	$4, %edx
	orl	%edi, %edx
	movq	%r14, %rdi
	movl	$35, %esi
	callq	_dib0090_write_reg
	movl	12(%rbx), %eax
	movl	16(%rbx), %ecx
	shll	$15, %eax
	shll	$12, %ecx
	orl	%eax, %ecx
	movl	20(%rbx), %edx
	shll	$6, %edx
	orl	%ecx, %edx
	orl	24(%rbx), %edx
	orl	$8192, %edx                     ## imm = 0x2000
	movq	%r14, %rdi
	movl	$33, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib0090_write_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EN_PLL,4,2                     ## @EN_PLL
	.comm	_EN_DIGCLK,4,2                  ## @EN_DIGCLK
	.comm	_EN_CRYSTAL,4,2                 ## @EN_CRYSTAL
	.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	w2, [x21]
	mov	x0, x19
	mov	w1, #36
	bl	_dib0090_write_reg
Lloh2:
	adrp	x8, _EN_DIGCLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EN_DIGCLK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _EN_CRYSTAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EN_CRYSTAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	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, #28]
	mov	w9, #1760
	mov	w10, #18144
	cmp	w8, #0
	csel	w8, w10, w9, eq
	mov	w9, #1536
	mov	w10, #17920
	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
	ldp	w8, w9, [x20, #12]
	lsl	w8, w8, #15
	ldp	w10, w11, [x20, #20]
	orr	w8, w8, w9, lsl #12
	orr	w8, w8, w10, lsl #6
	orr	w8, w8, w11
	orr	w2, w8, #0x2000
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EN_PLL,4,2                     ; @EN_PLL
	.comm	_EN_DIGCLK,4,2                  ; @EN_DIGCLK
	.comm	_EN_CRYSTAL,4,2                 ; @EN_CRYSTAL
	.no_dead_strip	_dib0090_reset_digital
.subsections_via_symbols
