	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclk_mrs
_mclk_mrs:                              ## @mclk_mrs
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nouveau_fb
	cmpl	$1, %ebx
	jg	LBB0_4
## %bb.1:
	shll	$2, %ebx
	cmpl	$2, (%rax)
	jl	LBB0_3
## %bb.2:
	leal	1049288(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nv_wr32
LBB0_3:
	addl	$1049280, %ebx                  ## imm = 0x1002C0
	jmp	LBB0_8
LBB0_4:
	cmpl	$3, %ebx
	ja	LBB0_9
## %bb.5:
	shll	$2, %ebx
	cmpl	$2, (%rax)
	jl	LBB0_7
## %bb.6:
	leal	1049312(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nv_wr32
LBB0_7:
	addl	$1049304, %ebx                  ## imm = 0x1002D8
LBB0_8:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mclk_mrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclk_mrs
_mclk_mrs:                              ; @mclk_mrs
	.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	x19, x2
	mov	x21, x1
	ldr	w0, [x0]
	bl	_nouveau_dev
	mov	x20, x0
	bl	_nouveau_fb
	cmp	w21, #1
	b.gt	LBB0_4
; %bb.1:
	mov	w22, #704
	movk	w22, #16, lsl #16
	ldr	w8, [x0]
	lsl	w21, w21, #2
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
	add	w8, w22, w21
	add	w1, w8, #8
	mov	x0, x20
	mov	x2, x19
	bl	_nv_wr32
LBB0_3:
	add	w1, w21, w22
	b	LBB0_8
LBB0_4:
	cmp	w21, #3
	b.hi	LBB0_9
; %bb.5:
	mov	w22, #704
	movk	w22, #16, lsl #16
	ldr	w8, [x0]
	lsl	w21, w21, #2
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:
	add	w8, w22, w21
	add	w1, w8, #32
	mov	x0, x20
	mov	x2, x19
	bl	_nv_wr32
LBB0_7:
	add	w8, w22, w21
	add	w1, w8, #24
LBB0_8:
	mov	x0, x20
	mov	x2, 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	_nv_wr32
LBB0_9:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclk_mrs
.subsections_via_symbols
