	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_hw_decode_pll
_nouveau_hw_decode_pll:                 ## @nouveau_hw_decode_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	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movl	%r13d, %ecx
	shrl	$16, %ecx
	andl	$7, %ecx
	movl	%ecx, (%r14)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 4(%r14)
	cmpl	$16476, %r12d                   ## imm = 0x405C
	jg	LBB0_3
## %bb.1:
	movzwl	%r15w, %eax
	movl	%eax, 12(%r14)
	testl	$4352, %r13d                    ## imm = 0x1100
	jne	LBB0_10
## %bb.2:
	sarl	$16, %r15d
	movl	%r15d, 16(%r14)
	jmp	LBB0_10
LBB0_3:
	movq	%rax, %r12
	movzwl	%r13w, %eax
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	callq	_nv_two_reg_pll
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_NV31_RAMDAC_ENABLE_VCO2@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	movzwl	%r15w, %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_10
LBB0_6:
	movl	(%r12), %eax
	cmpl	$53, %eax
	je	LBB0_8
## %bb.7:
	cmpl	$48, %eax
	jne	LBB0_10
LBB0_8:
	andl	$15, 20(%r14)
	movq	_NV30_RAMDAC_ENABLE_VCO2@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
## %bb.9:
	movl	%r13d, %eax
	shrl	$4, %eax
	andl	$7, %eax
	movl	%eax, 8(%r14)
	movl	%r13d, %eax
	shrl	$21, %eax
	andl	$24, %eax
	shrl	$19, %r13d
	andl	$7, %r13d
	orl	%eax, %r13d
	movl	%r13d, 4(%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV31_RAMDAC_ENABLE_VCO2,4,2    ## @NV31_RAMDAC_ENABLE_VCO2
	.comm	_NV30_RAMDAC_ENABLE_VCO2,4,2    ## @NV30_RAMDAC_ENABLE_VCO2
	.no_dead_strip	_nouveau_hw_decode_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_hw_decode_pll
_nouveau_hw_decode_pll:                 ; @nouveau_hw_decode_pll
	.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	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	bl	_nouveau_drm
	ubfx	w8, w20, #16, #3
	str	w8, [x19]
	movi.2s	v0, #1
	stur	d0, [x19, #4]
	mov	w8, #16476
	cmp	w24, w8
	b.gt	LBB0_3
; %bb.1:
	and	w8, w21, #0xffff
	str	w8, [x19, #12]
	mov	w8, #4352
	tst	w20, w8
	b.ne	LBB0_10
; %bb.2:
	asr	w8, w21, #16
	str	w8, [x19, #16]
	b	LBB0_10
LBB0_3:
	mov	x22, x0
	and	w8, w20, #0xffff
	str	w8, [x19, #12]
	mov	x0, x23
	bl	_nv_two_reg_pll
	cbz	x0, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _NV31_RAMDAC_ENABLE_VCO2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV31_RAMDAC_ENABLE_VCO2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	and	w8, w21, #0xffff
	str	w8, [x19, #16]
	b	LBB0_10
LBB0_6:
	ldr	w8, [x22]
	cmp	w8, #53
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #48
	b.ne	LBB0_10
LBB0_8:
	ldr	w8, [x19, #20]
	and	w8, w8, #0xf
	str	w8, [x19, #20]
Lloh3:
	adrp	x8, _NV30_RAMDAC_ENABLE_VCO2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV30_RAMDAC_ENABLE_VCO2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ubfx	w8, w20, #4, #3
	lsr	w9, w20, #21
	and	w9, w9, #0x18
	bfxil	w9, w20, #19, #3
	stp	w9, w8, [x19, #4]
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_NV31_RAMDAC_ENABLE_VCO2,4,2    ; @NV31_RAMDAC_ENABLE_VCO2
	.comm	_NV30_RAMDAC_ENABLE_VCO2,4,2    ; @NV30_RAMDAC_ENABLE_VCO2
	.no_dead_strip	_nouveau_hw_decode_pll
.subsections_via_symbols
