	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_update_pll
_dib7000p_update_pll:                   ## @dib7000p_update_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	%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	%rsi, %r15
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movl	$1856, %esi                     ## imm = 0x740
	callq	_dib7000p_read_word
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	movl	%eax, %r12d
	andl	$63, %eax
	movl	%r12d, %r13d
	shrl	$6, %r13d
	andl	$63, %r13d
	movl	(%r15), %edx
	movl	4(%r15), %r8d
	cmpl	%eax, %edx
	jne	LBB0_3
## %bb.2:
	cmpl	%r13d, %r8d
	jne	LBB0_3
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	andl	$61440, %r12d                   ## imm = 0xF000
	movq	%r14, %rdi
	movl	$1857, %esi                     ## imm = 0x741
	callq	_dib7000p_read_word
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	andl	$-32769, %edx                   ## imm = 0xFFFF7FFF
	movq	%r14, %rdi
	movl	$1857, %esi                     ## imm = 0x741
	callq	_dib7000p_write_word
	movl	(%r15), %edx
	movl	4(%r15), %eax
	andl	$63, %eax
	shll	$6, %eax
	orl	%r12d, %eax
	andl	$63, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	movl	$1856, %esi                     ## imm = 0x740
	callq	_dib7000p_write_word
	movq	%r14, %rdi
	callq	_dib7000p_get_internal_freq
	cltd
	idivl	%r13d
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	(%r15)
	imull	4(%r15), %eax
	imull	$1000, %eax, %r15d              ## imm = 0x3E8
	movl	%r15d, %edx
	shrl	$16, %edx
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_dib7000p_write_word
	movzwl	%r15w, %edx
	movq	%r14, %rdi
	movl	$19, %esi
	callq	_dib7000p_write_word
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	orl	$32768, %edx                    ## imm = 0x8000
	movq	%r14, %rdi
	movl	$1857, %esi                     ## imm = 0x741
	callq	_dib7000p_write_word
	movq	%r14, %rdi
	movl	$1856, %esi                     ## imm = 0x740
	callq	_dib7000p_read_word
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%r14, %rdi
	movl	$1856, %esi                     ## imm = 0x740
	callq	_dib7000p_read_word
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updating pll (prediv: old =  %d new = %d ; loopdiv : old = %d new = %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Waiting for PLL to lock\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dib7000p_update_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_update_pll
_dib7000p_update_pll:                   ; @dib7000p_update_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #1856
	bl	_dib7000p_read_word
	cbz	x20, LBB0_6
; %bb.1:
	mov	x21, x0
	and	w23, w0, #0x3f
	ubfx	w24, w0, #6, #6
	ldp	w8, w9, [x20]
	cmp	w8, w23
	ccmp	w9, w24, #0, eq
	b.eq	LBB0_6
; %bb.2:
	stp	x24, x9, [sp, #16]
	stp	x23, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	and	w21, w21, #0xf000
	mov	x0, x19
	mov	w1, #1857
	bl	_dib7000p_read_word
	mov	x22, x0
	and	w2, w0, #0xffff7fff
	mov	x0, x19
	mov	w1, #1857
	bl	_dib7000p_write_word
	ldp	w9, w8, [x20]
	bfi	w21, w8, #6, #6
	bfxil	w21, w9, #0, #6
	mov	x0, x19
	mov	w1, #1856
	mov	x2, x21
	bl	_dib7000p_write_word
	mov	x0, x19
	bl	_dib7000p_get_internal_freq
	sdiv	w8, w0, w24
	mul	w8, w8, w23
	ldp	w9, w10, [x20]
	sdiv	w8, w8, w9
	mul	w8, w8, w10
	mov	w9, #1000
	mul	w20, w8, w9
	lsr	w2, w20, #16
	mov	x0, x19
	mov	w1, #18
	bl	_dib7000p_write_word
	and	w2, w20, #0xfff8
	mov	x0, x19
	mov	w1, #19
	bl	_dib7000p_write_word
	orr	w2, w22, #0x8000
	mov	x0, x19
	mov	w1, #1857
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #1856
	bl	_dib7000p_read_word
	tbnz	w0, #15, LBB0_5
; %bb.3:
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_dprintk
	mov	x0, x19
	mov	w1, #1856
	bl	_dib7000p_read_word
	tbz	w0, #15, LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updating pll (prediv: old =  %d new = %d ; loopdiv : old = %d new = %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Waiting for PLL to lock\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dib7000p_update_pll
.subsections_via_symbols
