	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclk_timing_set
_mclk_timing_set:                       ## @mclk_timing_set
	.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	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	8(%r14), %rbx
	movq	%rax, %rdi
	movl	$1049120, %esi                  ## imm = 0x100220
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1049120, %esi                  ## imm = 0x100220
	callq	_hwsq_wr32
LBB0_2:
	movq	%r15, %rdi
	movl	$1049124, %esi                  ## imm = 0x100224
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	4(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1049124, %esi                  ## imm = 0x100224
	callq	_hwsq_wr32
LBB0_4:
	movq	%r15, %rdi
	movl	$1049128, %esi                  ## imm = 0x100228
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	8(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$1049128, %esi                  ## imm = 0x100228
	callq	_hwsq_wr32
LBB0_6:
	movq	%r15, %rdi
	movl	$1049132, %esi                  ## imm = 0x10022C
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	12(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$1049132, %esi                  ## imm = 0x10022C
	callq	_hwsq_wr32
LBB0_8:
	movq	%r15, %rdi
	movl	$1049136, %esi                  ## imm = 0x100230
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	16(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	$1049136, %esi                  ## imm = 0x100230
	callq	_hwsq_wr32
LBB0_10:
	movq	%r15, %rdi
	movl	$1049140, %esi                  ## imm = 0x100234
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	20(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$1049140, %esi                  ## imm = 0x100234
	callq	_hwsq_wr32
LBB0_12:
	movq	%r15, %rdi
	movl	$1049144, %esi                  ## imm = 0x100238
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	24(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	$1049144, %esi                  ## imm = 0x100238
	callq	_hwsq_wr32
LBB0_14:
	movq	%r15, %rdi
	movl	$1049148, %esi                  ## imm = 0x10023C
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	28(%rcx), %edx
	cmpl	%edx, %eax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movl	$1049148, %esi                  ## imm = 0x10023C
	callq	_hwsq_wr32
LBB0_16:
	movq	%r15, %rdi
	movl	$1049152, %esi                  ## imm = 0x100240
	callq	_nv_rd32
	movq	(%rbx), %rcx
	movl	32(%rcx), %edx
	cmpl	%edx, %eax
	jne	LBB0_18
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r14, %rdi
	movl	$1049152, %esi                  ## imm = 0x100240
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hwsq_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mclk_timing_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclk_timing_set
_mclk_timing_set:                       ; @mclk_timing_set
	.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, x0
	mov	w22, #544
	movk	w22, #16, lsl #16
	ldr	w0, [x0, #8]
	bl	_nouveau_dev
	mov	x20, x0
	ldr	x19, [x19]
	ldr	x23, [x19, #8]
	mov	w1, #544
	movk	w1, #16, lsl #16
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8]
	cmp	w0, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #544
	movk	w1, #16, lsl #16
	bl	_hwsq_wr32
LBB0_2:
	add	w21, w22, #4
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #4]
	cmp	w0, w2
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_4:
	add	w21, w22, #8
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #8]
	cmp	w0, w2
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_6:
	add	w21, w22, #12
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #12]
	cmp	w0, w2
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_8:
	add	w21, w22, #16
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #16]
	cmp	w0, w2
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_10:
	add	w21, w22, #20
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #20]
	cmp	w0, w2
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_12:
	add	w21, w22, #24
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #24]
	cmp	w0, w2
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_14:
	add	w21, w22, #28
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #28]
	cmp	w0, w2
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x21
	bl	_hwsq_wr32
LBB0_16:
	add	w21, w22, #32
	mov	x0, x20
	mov	x1, x21
	bl	_nv_rd32
	ldr	x8, [x23]
	ldr	w2, [x8, #32]
	cmp	w0, w2
	b.ne	LBB0_18
; %bb.17:
	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
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	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
	b	_hwsq_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclk_timing_set
.subsections_via_symbols
