	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dib8000_reset_pll
LCPI0_0:
	.long	256                             ## 0x100
	.long	32                              ## 0x20
	.long	16                              ## 0x10
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dib8000_reset_pll:                     ## @dib8000_reset_pll
	.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	%rdi, %r15
	movq	16(%rdi), %r14
	cmpl	$32912, (%rdi)                  ## imm = 0x8090
	jne	LBB0_1
## %bb.6:
	xorl	%eax, %eax
	cmpl	$0, 24(%r14)
	sete	%al
	shll	$13, %eax
	movl	4(%r14), %edx
	movl	20(%r14), %ecx
	shll	$12, %ecx
	shll	$6, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	orl	(%r14), %edx
	movq	%r15, %rdi
	movl	$1856, %esi                     ## imm = 0x740
	callq	_dib8000_write_word
	movq	%r15, %rdi
	movl	$1857, %esi                     ## imm = 0x741
	callq	_dib8000_read_word
	xorl	%edx, %edx
	cmpl	$0, 28(%r14)
	sete	%dl
	shll	$15, %edx
	orl	%eax, %edx
	movq	%r15, %rdi
	movl	$1857, %esi                     ## imm = 0x741
	callq	_dib8000_write_word
	movq	%r15, %rdi
	movl	$1858, %esi                     ## imm = 0x742
	callq	_dib8000_read_word
	orl	$1, %eax
	movq	%r15, %rdi
	movl	$1858, %esi                     ## imm = 0x742
	movl	%eax, %edx
	callq	_dib8000_write_word
	movl	40(%r14), %edx
	shll	$8, %edx
	jmp	LBB0_7
LBB0_1:
	movl	(%r14), %edx
	shll	$8, %edx
	orl	4(%r14), %edx
	movq	%r15, %rdi
	movl	$901, %esi                      ## imm = 0x385
	callq	_dib8000_write_word
	movdqu	8(%r14), %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ebx
	orl	24(%r14), %ebx
	orl	$1032, %ebx                     ## imm = 0x408
	movq	%r15, %rdi
	movl	$902, %esi                      ## imm = 0x386
	movl	%ebx, %edx
	callq	_dib8000_write_word
	andl	$65527, %ebx                    ## imm = 0xFFF7
	movl	28(%r14), %r12d
	shll	$3, %r12d
	orl	%ebx, %r12d
	movq	%r15, %rdi
	movl	$902, %esi                      ## imm = 0x386
	movl	%r12d, %edx
	callq	_dib8000_write_word
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_dprintk
	movq	16(%r15), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_2
## %bb.3:
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	andl	$3, %eax
	shll	$10, %eax
	movl	32(%r14), %edx
	movl	40(%r14), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	shll	$7, %edx
	orl	%ecx, %edx
	orl	$4096, %edx                     ## imm = 0x1000
	jmp	LBB0_7
LBB0_2:
	movl	32(%r14), %edx
	movl	40(%r14), %eax
	shll	$8, %eax
	shll	$7, %edx
	orl	%eax, %edx
	jmp	LBB0_7
LBB0_5:
	movl	32(%r14), %edx
	movl	40(%r14), %eax
	shll	$8, %eax
	shll	$7, %edx
	orl	%eax, %edx
	orl	$7168, %edx                     ## imm = 0x1C00
LBB0_7:
	movq	%r15, %rdi
	movl	$904, %esi                      ## imm = 0x388
	callq	_dib8000_write_word
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib8000_reset_pll_common       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clk_cfg1: 0x%04x\n"

	.no_dead_strip	_dib8000_reset_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function dib8000_reset_pll
lCPI0_0:
	.long	8                               ; 0x8
	.long	5                               ; 0x5
	.long	4                               ; 0x4
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dib8000_reset_pll:                     ; @dib8000_reset_pll
	.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, x0
	ldr	x19, [x0, #16]
	ldr	w8, [x0]
	mov	w9, #32912
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldp	w9, w8, [x19, #20]
	cmp	w8, #0
	cset	w8, eq
	lsl	w8, w8, #13
	orr	w8, w8, w9, lsl #12
	ldp	w10, w9, [x19]
	orr	w8, w8, w9, lsl #6
	orr	w2, w8, w10
	mov	x0, x20
	mov	w1, #1856
	bl	_dib8000_write_word
	mov	x0, x20
	mov	w1, #1857
	bl	_dib8000_read_word
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cset	w8, eq
	orr	w2, w0, w8, lsl #15
	mov	x0, x20
	mov	w1, #1857
	bl	_dib8000_write_word
	mov	x0, x20
	mov	w1, #1858
	bl	_dib8000_read_word
	orr	w2, w0, #0x1
	mov	x0, x20
	mov	w1, #1858
	bl	_dib8000_write_word
	ldr	w8, [x19, #40]
	lsl	w2, w8, #8
	b	LBB0_7
LBB0_2:
	ldp	w8, w9, [x19]
	orr	w2, w9, w8, lsl #8
	mov	x0, x20
	mov	w1, #901
	bl	_dib8000_write_word
	ldur	q0, [x19, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w8, v0[1]
	ldr	w9, [x19, #24]
	fmov	w10, s0
	orr	w8, w10, w8
	orr	w8, w8, w9
	mov	w9, #1032
	orr	w21, w8, w9
	mov	x0, x20
	mov	w1, #902
	mov	x2, x21
	bl	_dib8000_write_word
	mov	w8, #65527
	and	w8, w21, w8
	ldr	w9, [x19, #28]
	orr	w21, w8, w9, lsl #3
	mov	x0, x20
	mov	w1, #902
	mov	x2, x21
	bl	_dib8000_write_word
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dprintk
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_6
; %bb.4:
	ubfiz	w8, w8, #10, #2
	ldr	w9, [x19, #40]
	ldr	w10, [x19, #32]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10, lsl #7
	orr	w2, w8, #0x1000
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #40]
	ldr	w9, [x19, #32]
	lsl	w9, w9, #7
	orr	w2, w9, w8, lsl #8
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #40]
	lsl	w8, w8, #8
	ldr	w9, [x19, #32]
	orr	w8, w8, w9, lsl #7
	orr	w2, w8, #0x1c00
LBB0_7:
	mov	x0, x20
	mov	w1, #904
	bl	_dib8000_write_word
	mov	x0, x20
	mov	x1, x19
	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	_dib8000_reset_pll_common
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clk_cfg1: 0x%04x\n"

	.no_dead_strip	_dib8000_reset_pll
.subsections_via_symbols
