	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_clk_nstate
_nvkm_clk_nstate:                       ## @nvkm_clk_nstate
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_strncasecmpz
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_strncasecmpz
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movslq	%ebx, %rbx
	movb	(%r15,%rbx), %r12b
	movb	$0, (%r15,%rbx)
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_kstrtol
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.6:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nvkm_clk_ustate_update
	movl	%eax, %ecx
	testl	%eax, %eax
	movl	$1, %eax
	cmovnsl	%ecx, %eax
LBB0_7:
	movb	%r12b, (%r15,%rbx)
	jmp	LBB0_8
LBB0_4:
	movl	$1, %eax
LBB0_8:
	addl	$-2, %eax
	jmp	LBB0_9
LBB0_2:
	movl	$-2, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auto"

L_.str.1:                               ## @.str.1
	.asciz	"disabled"

	.no_dead_strip	_nvkm_clk_nstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_clk_nstate
_nvkm_clk_nstate:                       ; @nvkm_clk_nstate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_strncasecmpz
	cbz	x0, LBB0_6
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_strncasecmpz
	cbz	x0, LBB0_5
; %bb.3:
	sxtw	x21, w21
	ldrb	w22, [x19, x21]
	strb	wzr, [x19, x21]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_kstrtol
	cbz	w0, LBB0_7
; %bb.4:
	mov	w8, #1
	b	LBB0_8
LBB0_5:
	mov	w8, #1
	b	LBB0_9
LBB0_6:
	mov	w0, #-2
	b	LBB0_10
LBB0_7:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_nvkm_clk_ustate_update
	cmp	w0, #0
	csinc	w8, w0, wzr, ge
LBB0_8:
	strb	w22, [x19, x21]
LBB0_9:
	sub	w0, w8, #2
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto"

l_.str.1:                               ; @.str.1
	.asciz	"disabled"

	.no_dead_strip	_nvkm_clk_nstate
.subsections_via_symbols
