	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_volt_set
_nvkm_volt_set:                         ## @nvkm_volt_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	16(%rdi), %r8
	movq	(%r8), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%r15, %rdi
	movl	%r13d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	leaq	24(%r15), %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	4(%r15), %r10d
	testl	%r10d, %r10d
	jle	LBB0_11
## %bb.2:
	movl	(%r15), %esi
	movq	8(%r15), %r11
	movl	$-1, %r9d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %r10
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rax,8), %ecx
	movl	%ecx, %edi
	subl	%r13d, %edi
	sets	%dl
	cmpl	%esi, %edi
	setg	%bl
	orb	%dl, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r9d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$1, %bl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r13d, %ecx
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	%bl, %bl
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edi, %esi
	jmp	LBB0_9
LBB0_10:
	cmpl	$-1, %r9d
	je	LBB0_11
## %bb.12:
	movq	8(%r15), %rax
	movslq	%r9d, %rbx
	movl	4(%rax,%rbx,8), %esi
	movq	%r15, %rdi
	callq	*8(%r8)
	movl	%eax, %r14d
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%r14d, %r8d
	callq	_nvkm_debug
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_nvkm_error
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't set %iuv\n"

L_.str.1:                               ## @.str.1
	.asciz	"set req %duv to %duv: %d\n"

	.no_dead_strip	_nvkm_volt_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_volt_set
_nvkm_volt_set:                         ; @nvkm_volt_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, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	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
	br	x2
LBB0_2:
	add	x20, x21, #24
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x21, #4]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x12, #0
	ldr	w13, [x21]
	ldr	x14, [x21, #8]
	mov	w11, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w17, [x14]
	sub	w15, w17, w19
	cmp	w15, #0
	ccmp	w15, w13, #0, ge
	cset	w16, gt
	cmp	w16, #0
	csel	w11, w11, w12, ne
	cmp	w16, #1
	ccmp	w17, w19, #0, ne
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #0
	csel	w13, w13, w15, ne
	add	x12, x12, #1
	add	x14, x14, #8
	cmp	x10, x12
	b.ne	LBB0_4
LBB0_6:
	cmn	w11, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #8]
	sbfiz	x23, x11, #3, #32
	add	x9, x9, x23
	ldr	w1, [x9, #4]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	ldr	x8, [x21, #8]
	ldr	w3, [x8, x23]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x22
	bl	_nvkm_debug
	b	LBB0_9
LBB0_8:
	neg	w22, w9
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_nvkm_error
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't set %iuv\n"

l_.str.1:                               ; @.str.1
	.asciz	"set req %duv to %duv: %d\n"

	.no_dead_strip	_nvkm_volt_set
.subsections_via_symbols
