	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_nouveau_bios
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	movl	$1, %r15d
	movl	%ebx, %ecx
	shll	%cl, %r15d
	movq	%r14, %rdi
	movl	$6685056, %esi                  ## imm = 0x660180
	callq	_nv_rd32
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	btl	%ebx, %eax
	jae	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_2:
	movq	%r14, %rdi
	movl	$6685088, %esi                  ## imm = 0x6601A0
	callq	_nv_rd32
	movl	%eax, %r13d
	testl	%r15d, %eax
	jne	LBB0_15
## %bb.3:
	movq	%r14, %rdi
	movl	$6685120, %esi                  ## imm = 0x6601C0
	callq	_nv_rd32
	testl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	movl	$2, %r12d
	jmp	LBB0_15
LBB0_5:
	movq	%r14, %rdi
	movl	$6685152, %esi                  ## imm = 0x6601E0
	callq	_nv_rd32
	testl	%r15d, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	movl	$3, %r12d
	jmp	LBB0_15
LBB0_7:
	movq	%r14, %rdi
	movl	$6685184, %esi                  ## imm = 0x660200
	callq	_nv_rd32
	testl	%r15d, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movl	$4, %r12d
	jmp	LBB0_15
LBB0_9:
	movq	%r14, %rdi
	movl	$6685216, %esi                  ## imm = 0x660220
	callq	_nv_rd32
	testl	%r15d, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r13d
	movl	$5, %r12d
	jmp	LBB0_15
LBB0_11:
	movq	%r14, %rdi
	movl	$6685248, %esi                  ## imm = 0x660240
	callq	_nv_rd32
	testl	%r15d, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	movl	$6, %r12d
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	movl	$6685280, %esi                  ## imm = 0x660260
	callq	_nv_rd32
	testl	%r15d, %eax
	je	LBB0_28
## %bb.14:
	movl	%eax, %r13d
	movl	$7, %r12d
LBB0_15:
	leaq	-104(%rbp), %rax
	leaq	-56(%rbp), %r15
	leaq	-60(%rbp), %r11
	leaq	-64(%rbp), %r10
	leaq	-68(%rbp), %r9
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %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_16
## %bb.17:
	movl	(%rbx), %ecx
	cmpl	$130, %ecx
	je	LBB0_22
## %bb.18:
	cmpl	$129, %ecx
	je	LBB0_21
## %bb.19:
	movl	$255, %r12d
	cmpl	$128, %ecx
	jne	LBB0_23
## %bb.20:
	shrl	$8, %r13d
	andl	$15, %r13d
	leal	256(%r13), %r12d
	cmpl	$165000, -44(%rbp)              ## 4-byte Folded Reload
                                        ## imm = 0x28488
	cmovll	%r13d, %r12d
	jmp	LBB0_23
LBB0_16:
	movl	$-1, %r12d
	jmp	LBB0_27
LBB0_22:
	shrl	$8, %r13d
	andl	$15, %r13d
	movl	%r13d, %r12d
	jmp	LBB0_23
LBB0_21:
	movl	(%r14), %r12d
LBB0_23:
	leaq	-96(%rbp), %r10
	leaq	-68(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	pushq	%r10
	leaq	-56(%rbp), %rax
	pushq	%rax
	callq	_nvbios_ocfg_match
	addq	$16, %rsp
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$254, %ecx
	jg	LBB0_27
## %bb.24:
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movq	-96(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_nvbios_oclk_match
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, -144(%rbp)
	movl	-48(%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	%rbx, -120(%rbp)
	movq	%r14, %rdi
	callq	_nv_subdev
	movl	%eax, -112(%rbp)
	leaq	-144(%rbp), %rdi
	callq	_nvbios_exec
LBB0_27:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	xorl	%r12d, %r12d
	jmp	LBB0_27
	.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	w26, #384
	movk	w26, #102, lsl #16
	bl	_nouveau_bios
	mov	x22, x0
	mov	w8, #1
	lsl	w27, w8, w21
	mov	x0, x20
	mov	w1, #384
	movk	w1, #102, lsl #16
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_2
; %bb.1:
	mov	x25, x0
	mov	w2, #0
	b	LBB0_16
LBB0_2:
	add	w1, w26, #32
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_4
; %bb.3:
	mov	x25, x0
	mov	w2, #1
	b	LBB0_16
LBB0_4:
	add	w1, w26, #64
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_6
; %bb.5:
	mov	x25, x0
	mov	w2, #2
	b	LBB0_16
LBB0_6:
	add	w1, w26, #96
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_8
; %bb.7:
	mov	x25, x0
	mov	w2, #3
	b	LBB0_16
LBB0_8:
	add	w1, w26, #128
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_10
; %bb.9:
	mov	x25, x0
	mov	w2, #4
	b	LBB0_16
LBB0_10:
	add	w1, w26, #160
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_12
; %bb.11:
	mov	x25, x0
	mov	w2, #5
	b	LBB0_16
LBB0_12:
	add	w1, w26, #192
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_14
; %bb.13:
	mov	x25, x0
	mov	w2, #6
	b	LBB0_16
LBB0_14:
	add	w1, w26, #224
	mov	x0, x20
	bl	_nv_rd32
	tst	w0, w27
	b.eq	LBB0_28
; %bb.15:
	mov	x25, x0
	mov	w2, #7
LBB0_16:
	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_20
; %bb.17:
	mov	x1, x0
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_21
; %bb.18:
	cmp	w8, #129
	b.eq	LBB0_22
; %bb.19:
	mov	w9, #255
	ubfx	w10, w25, #8, #4
	mov	w11, #256
	bfxil	w11, w25, #8, #4
	mov	w12, #33927
	movk	w12, #2, lsl #16
	cmp	w23, w12
	csel	w10, w11, w10, gt
	cmp	w8, #128
	csel	w25, w9, w10, ne
	b	LBB0_23
LBB0_20:
	mov	w25, #-1
	b	LBB0_27
LBB0_21:
	ubfx	w25, w25, #8, #4
	b	LBB0_23
LBB0_22:
	ldr	w25, [x20]
LBB0_23:
	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_27
; %bb.24:
	cbz	w0, LBB0_27
; %bb.25:
	ldr	x8, [sp, #80]
	ldr	w1, [x8, w24, sxtw #2]
	mov	x0, x22
	mov	x2, x23
	bl	_nvbios_oclk_match
	cbz	w0, LBB0_27
; %bb.26:
	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
LBB0_27:
	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_28:
	mov	w25, #0
	b	LBB0_27
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exec_clkcmp
.subsections_via_symbols
