	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_clkcmp
_exec_clkcmp:                           ## @exec_clkcmp
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_nouveau_bios
	movl	$1, %r13d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	shll	%cl, %r13d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$6359896, %ebx                  ## imm = 0x610B58
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movl	%eax, %r12d
	leal	1(%r15), %edx
	testl	%r13d, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$8, %ebx
	cmpl	$2, %r15d
	movl	%edx, %r15d
	jb	LBB0_1
LBB0_3:
	testl	%r13d, %r12d
	jne	LBB0_10
## %bb.4:
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$144, (%rax)
	jl	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$146, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_nv_device
	cmpl	$160, (%rax)
	jne	LBB0_30
LBB0_7:
	movq	%r14, %rdi
	movl	$6359920, %esi                  ## imm = 0x610B70
	callq	_nv_rd32
	testl	%r13d, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	movl	$5, %edx
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movl	$6359928, %esi                  ## imm = 0x610B78
	callq	_nv_rd32
	movl	%eax, %r12d
	movl	$6, %edx
LBB0_10:
	testl	%r13d, %r12d
	jne	LBB0_15
## %bb.11:
	movl	$8, %ebx
	movl	$6359936, %r15d                 ## imm = 0x610B80
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nv_rd32
	movl	%eax, %r12d
	leal	1(%rbx), %edx
	testl	%r13d, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addl	$-8, %ebx
	addl	$8, %r15d
	cmpl	$2, %ebx
	movl	%edx, %ebx
	jb	LBB0_12
LBB0_14:
	testl	%r13d, %r12d
	je	LBB0_28
LBB0_15:
	decl	%edx
	leaq	-96(%rbp), %rax
	leaq	-100(%rbp), %r15
	leaq	-64(%rbp), %r11
	leaq	-68(%rbp), %r10
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %ecx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	pushq	%rax
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_exec_lookup
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_28
## %bb.16:
	cmpq	$0, (%rbx)
	je	LBB0_24
## %bb.17:
	shrl	$8, %r12d
	andl	$15, %r12d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_18:
	movl	%r12d, %r13d
LBB0_19:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	leaq	-88(%rbp), %r10
	leaq	-72(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	pushq	%r10
	pushq	%r15
	callq	_nvbios_ocfg_match
	addq	$16, %rsp
	cmpl	$254, %ebx
	jg	LBB0_29
## %bb.20:
	testl	%eax, %eax
	je	LBB0_29
## %bb.21:
	movq	-88(%rbp), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_nvbios_oclk_match
	testl	%eax, %eax
	je	LBB0_29
## %bb.22:
	movl	%eax, -144(%rbp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -140(%rbp)
	movl	$1, -136(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -128(%rbp)
	movq	%r12, -120(%rbp)
	movq	%r14, %rdi
	callq	_nv_subdev
	movl	%eax, -112(%rbp)
	leaq	-144(%rbp), %rdi
	callq	_nvbios_exec
	jmp	LBB0_29
LBB0_28:
	movl	$-1, %r13d
LBB0_29:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	8(%rbx), %ecx
	cmpl	$130, %ecx
	je	LBB0_33
## %bb.25:
	cmpl	$129, %ecx
	je	LBB0_34
## %bb.26:
	movl	$255, %r13d
	cmpl	$128, %ecx
	jne	LBB0_19
## %bb.27:
	shrl	$8, %r12d
	andl	$15, %r12d
	leal	256(%r12), %r13d
	cmpl	$165000, -48(%rbp)              ## 4-byte Folded Reload
                                        ## imm = 0x28488
	cmovll	%r12d, %r13d
	jmp	LBB0_19
LBB0_30:
	movl	$4, %r15d
	movl	$6358932, %ebx                  ## imm = 0x610794
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movl	%eax, %r12d
	leal	1(%r15), %edx
	testl	%r13d, %eax
	jne	LBB0_10
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	addl	$-4, %r15d
	addl	$8, %ebx
	cmpl	$3, %r15d
	movl	%edx, %r15d
	jb	LBB0_31
	jmp	LBB0_10
LBB0_33:
	shrl	$8, %r12d
	andl	$15, %r12d
	jmp	LBB0_18
LBB0_34:
	movl	(%r14), %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exec_clkcmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_clkcmp
_exec_clkcmp:                           ; @exec_clkcmp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	mov	w27, #1940
	movk	w27, #97, lsl #16
	bl	_nouveau_bios
	mov	x22, x0
	mov	w28, #1
	lsl	w26, w28, w21
	add	w1, w27, #964
	mov	x0, x20
	bl	_nv_rd32
	ands	w9, w0, w26
	cset	w8, eq
	cbz	w9, LBB0_2
; %bb.1:
	mov	x25, x0
	cbnz	w8, LBB0_5
	b	LBB0_12
LBB0_2:
	add	w1, w27, #972
	mov	x0, x20
	bl	_nv_rd32
	ands	w9, w0, w26
	cset	w8, eq
	cbz	w9, LBB0_4
; %bb.3:
	mov	x25, x0
	mov	w28, #2
	cbnz	w8, LBB0_5
	b	LBB0_12
LBB0_4:
	add	w1, w27, #980
	mov	x0, x20
	bl	_nv_rd32
	mov	x25, x0
	tst	w0, w26
	cset	w8, eq
	mov	w28, #3
	cbz	w8, LBB0_12
LBB0_5:
	mov	x0, x20
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #144
	b.lt	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #146
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #160
	b.ne	LBB0_28
LBB0_8:
	add	w1, w27, #988
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w26
	b.eq	LBB0_10
LBB0_9:
	mov	x25, x0
	mov	w28, #5
	b	LBB0_12
LBB0_10:
	add	w1, w27, #996
	mov	w28, #6
LBB0_11:
	mov	x0, x20
	bl	_nv_rd32
	mov	x25, x0
LBB0_12:
	tst	w25, w26
	b.eq	LBB0_20
LBB0_13:
	sub	w2, w28, #1
	add	x8, sp, #88
	add	x9, sp, #64
	stp	x9, x8, [sp]
	add	x5, sp, #76
	add	x6, sp, #72
	add	x7, sp, #68
	mov	x0, x20
	mov	x1, x21
	mov	x3, x25
	mov	x4, x19
	bl	_exec_lookup
	cbz	w0, LBB0_32
; %bb.14:
	mov	x1, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_22
; %bb.15:
	ubfx	w25, w25, #8, #4
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w23, w8, #1
LBB0_16:
	add	x3, sp, #76
	add	x4, sp, #72
	add	x5, sp, #68
	add	x6, sp, #64
	add	x7, sp, #80
	mov	x0, x22
	mov	x2, x25
	bl	_nvbios_ocfg_match
	cmp	w24, #254
	b.gt	LBB0_33
; %bb.17:
	cbz	w0, LBB0_33
; %bb.18:
	ldr	x8, [sp, #80]
	ldr	w1, [x8, w24, sxtw #2]
	mov	x0, x22
	mov	x2, x23
	bl	_nvbios_oclk_match
	cbz	w0, LBB0_33
; %bb.19:
	stp	w0, w21, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #32]
	stp	x19, x22, [sp, #40]
	mov	x0, x20
	bl	_nv_subdev
	str	w0, [sp, #56]
	add	x0, sp, #24
	bl	_nvbios_exec
	b	LBB0_33
LBB0_20:
	add	w1, w27, #1004
	mov	x0, x20
	bl	_nv_rd32
	ands	w9, w0, w26
	cset	w8, eq
	cbz	w9, LBB0_26
; %bb.21:
	mov	x25, x0
	mov	w28, #9
	tbz	w8, #0, LBB0_13
	b	LBB0_32
LBB0_22:
	ldr	w8, [x19, #8]
	cmp	w8, #130
	b.eq	LBB0_34
; %bb.23:
	cmp	w8, #129
	b.eq	LBB0_35
; %bb.24:
	cmp	w8, #128
	b.ne	LBB0_36
; %bb.25:
	ubfx	w8, w25, #8, #4
	mov	w9, #256
	bfxil	w9, w25, #8, #4
	mov	w10, #33927
	movk	w10, #2, lsl #16
	cmp	w23, w10
	csel	w25, w9, w8, gt
	b	LBB0_16
LBB0_26:
	add	w1, w27, #1012
	mov	x0, x20
	bl	_nv_rd32
	ands	w9, w0, w26
	cset	w8, eq
	cbz	w9, LBB0_31
; %bb.27:
	mov	x25, x0
	mov	w28, #10
	tbnz	w8, #0, LBB0_32
	b	LBB0_13
LBB0_28:
	mov	x0, x20
	mov	w1, #1940
	movk	w1, #97, lsl #16
	bl	_nv_rd32
	tst	w0, w26
	b.ne	LBB0_9
; %bb.29:
	add	w1, w27, #8
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w26
	b.eq	LBB0_37
; %bb.30:
	mov	x25, x0
	mov	w28, #6
	b	LBB0_12
LBB0_31:
	add	w1, w27, #1020
	mov	x0, x20
	bl	_nv_rd32
	mov	x25, x0
	tst	w0, w26
	cset	w8, eq
	mov	w28, #11
	tbz	w8, #0, LBB0_13
LBB0_32:
	mov	w25, #-1
LBB0_33:
	mov	x0, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_34:
	ubfx	w25, w25, #8, #4
	b	LBB0_16
LBB0_35:
	ldr	w25, [x20]
	b	LBB0_16
LBB0_36:
	mov	w25, #255
	b	LBB0_16
LBB0_37:
	add	w1, w27, #16
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w26
	b.eq	LBB0_39
; %bb.38:
	mov	x25, x0
	mov	w28, #7
	b	LBB0_12
LBB0_39:
	add	w1, w27, #24
	mov	w28, #8
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exec_clkcmp
.subsections_via_symbols
