	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_mem_exec               ## -- Begin function nouveau_mem_exec
	.p2align	4, 0x90
_nouveau_mem_exec:                      ## @nouveau_mem_exec
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	72(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, %r15
	movl	72(%rbx), %edi
	callq	_nouveau_dev
	movq	%rax, %rdi
	callq	_nouveau_fb
	movl	(%rax), %ecx
	cmpl	$130, %ecx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_2
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.4:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$64, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$40000, -48(%rbp)               ## 4-byte Folded Spill
                                        ## imm = 0x9C40
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_7:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	8(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$2000, -48(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x7D0
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_2:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$12000, -48(%rbp)               ## 4-byte Folded Spill
                                        ## imm = 0x2EE0
	movl	$1000, %r13d                    ## imm = 0x3E8
	movl	$2000, %r15d                    ## imm = 0x7D0
LBB0_5:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	*(%rbx)
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_8:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rbx)
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rbx)
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	andl	%ecx, %r14d
	jne	LBB0_11
## %bb.9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testl	%ecx, 4(%rax)
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%r12d, %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	*64(%rbx)
	movq	%rbx, %rdi
	callq	*64(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*40(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*48(%rbx)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	callq	*56(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*48(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*40(%rbx)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rbx)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movl	8(%rax), %edx
	cmpl	%edx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
	movq	(%r13), %rax
LBB0_13:
	movl	4(%rax), %edx
	cmpl	%edx, %r12d
	je	LBB0_15
## %bb.14:
	orl	%r14d, %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
	movq	(%r13), %rax
LBB0_15:
	movl	(%rax), %edx
	cmpl	%edx, -76(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
LBB0_17:
	movq	%rbx, %rdi
	callq	*32(%rbx)
	movq	(%r13), %rax
	movl	4(%rax), %edx
	xorl	%r15d, %r15d
	testl	%edx, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.18:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
	movq	(%r13), %rax
LBB0_20:
	movl	$256, %edx                      ## imm = 0x100
	orl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
	movq	(%r13), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	*16(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$128, (%rax)
	jne	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	jmp	LBB0_22
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_NV_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot reclock unsupported memtype\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_mem_exec               ; -- Begin function nouveau_mem_exec
	.p2align	2
_nouveau_mem_exec:                      ; @nouveau_mem_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #72]
	bl	_nouveau_drm
	mov	x22, x0
	ldr	w0, [x19, #72]
	bl	_nouveau_dev
	bl	_nouveau_fb
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_22
; %bb.3:
	mov	w27, #0
	mov	w23, #0
	mov	w28, #64
	mov	w8, #40000
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_6
LBB0_4:
	mov	w23, #0
	mov	w27, #0
	ldr	x8, [x21]
	ldr	w25, [x8, #8]
	mov	w8, #2000
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w28, #1
	b	LBB0_7
LBB0_5:
	mov	w28, #1
	mov	w8, #12000
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w23, #1000
	mov	w27, #2000
LBB0_6:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #2
	blr	x8
	mov	x25, x0
LBB0_7:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	mov	x26, x0
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x24, x0
	ands	w22, w26, w28
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	tst	w8, w28
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #24]
	orr	w2, w26, w28
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
LBB0_10:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #64]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #64]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #48]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x27
	blr	x8
	ldr	x8, [x19, #56]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #48]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	ldr	x8, [x21]
	ldr	w2, [x8, #8]
	cmp	w25, w2
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #2
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
	ldr	x8, [x21]
LBB0_12:
	ldr	w9, [x8, #4]
	cmp	w26, w9
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19, #24]
	orr	w2, w9, w22
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
	ldr	x8, [x21]
LBB0_14:
	ldr	w2, [x8]
	cmp	w24, w2
	b.eq	LBB0_16
; %bb.15:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
LBB0_16:
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	ldr	x8, [x21]
	ldr	w2, [x8, #4]
	tst	w2, w28
	b.ne	LBB0_21
; %bb.17:
	cbz	w22, LBB0_19
; %bb.18:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
	ldr	x8, [x21]
LBB0_19:
	ldr	x9, [x19, #24]
	ldr	w8, [x8]
	orr	w2, w8, #0x100
	mov	x0, x19
	mov	w1, #0
	blr	x9
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	ldr	w2, [x9]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1000
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	blr	x8
	mov	w0, #0
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_23
; %bb.20:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
LBB0_21:
	mov	w0, #0
	b	LBB0_23
LBB0_22:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_NV_ERROR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot reclock unsupported memtype\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
