	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_stropt                    ## -- Begin function nvkm_stropt
	.p2align	4, 0x90
_nvkm_stropt:                           ## @nvkm_stropt
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	cmpb	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	%rsi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, (%rbx,%r14)
	leaq	(%rbx,%r14), %rbx
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_strcspn
	movslq	%eax, %r14
	movsbl	(%rbx,%r14), %ecx
	cmpl	$44, %ecx
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$61, %ecx
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_strncasecmpz
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	addq	%r14, %rbx
	incq	%rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcspn
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	cmovneq	%rbx, %r15
	jmp	LBB0_11
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	",="

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_stropt                    ; -- Begin function nvkm_stropt
	.p2align	2
_nvkm_stropt:                           ; @nvkm_stropt
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x19, x2
	mov	x21, x1
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, x23
	ldrb	w8, [x20]
	cbz	w8, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_strcspn
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldrsb	w8, [x20, x23]
	cmp	w8, #44
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #61
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_strncasecmpz
	cbnz	w0, LBB0_3
; %bb.8:
	add	w8, w23, #1
	add	x20, x20, w8, sxtw
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcspn
	str	w0, [x19]
	cmp	w0, #0
	csel	x0, xzr, x20, eq
	b	LBB0_10
LBB0_9:
	mov	x0, #0
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	",="

.subsections_via_symbols
