	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_volt_set_id               ## -- Begin function nvkm_volt_set_id
	.p2align	4, 0x90
_nvkm_volt_set_id:                      ## @nvkm_volt_set_id
	.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	%r8d, %r13d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	%rbx, %rdi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_nvkm_volt_map
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_nvkm_volt_get
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.5:
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	testl	%r13d, %r13d
	jns	LBB0_8
## %bb.7:
	cmpl	%eax, %r14d
	jb	LBB0_10
LBB0_8:
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	jle	LBB0_3
## %bb.9:
	cmpl	%eax, %r14d
	jbe	LBB0_3
LBB0_10:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_nvkm_volt_map
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_max
	movl	%eax, %r14d
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_volt_set                  ## TAILCALL
LBB0_2:
	movl	%r14d, %ecx
LBB0_3:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_volt_set_id               ; -- Begin function nvkm_volt_set_id
	.p2align	2
_nvkm_volt_set_id:                      ; @nvkm_volt_set_id
	.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	x23, x4
	mov	x21, x3
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x3, [x8]
	cbz	x3, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x2, x23
	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	x3
LBB0_2:
	mov	x22, x2
	mov	x0, x19
	mov	x2, x21
	bl	_nvkm_volt_map
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.3:
	mov	x0, x19
	bl	_nvkm_volt_get
	cbz	w23, LBB0_9
; %bb.4:
	tbnz	w0, #31, LBB0_9
; %bb.5:
	tbz	w23, #31, LBB0_7
; %bb.6:
	cmp	w20, w0
	b.lo	LBB0_9
LBB0_7:
	mov	w1, #0
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.8:
	cmp	w20, w0
	b.ls	LBB0_13
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_nvkm_volt_map
	tbnz	w0, #31, LBB0_11
; %bb.10:
	mov	x1, x20
	bl	_max
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	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
	b	_nvkm_volt_set
LBB0_12:
	mov	x1, x20
LBB0_13:
	mov	x0, x1
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
