	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparc_regname_to_dw2regnum     ## -- Begin function sparc_regname_to_dw2regnum
	.p2align	4, 0x90
_sparc_regname_to_dw2regnum:            ## @sparc_regname_to_dw2regnum
	.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
	movb	(%rdi), %bl
	movl	$-1, %r14d
	testb	%bl, %bl
	je	LBB0_23
## %bb.1:
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%rdi, -40(%rbp)
	movsbl	%bl, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movzbl	1(%r12), %ecx
	leal	-57(%rcx), %edx
	cmpb	$-9, %dl
	jb	LBB0_23
## %bb.3:
	cmpb	$0, 2(%r12)
	jne	LBB0_23
## %bb.4:
	leaq	L_.str(%rip), %rdx
	subl	%edx, %eax
	leal	(%rcx,%rax,8), %r14d
	addl	$-48, %r14d
	jmp	LBB0_23
LBB0_5:
	cmpb	$102, %bl
	je	LBB0_11
## %bb.6:
	cmpb	$114, %bl
	je	LBB0_14
## %bb.7:
	cmpb	$115, %bl
	jne	LBB0_23
## %bb.8:
	cmpb	$112, 1(%r12)
	jne	LBB0_23
## %bb.9:
	cmpb	$0, 2(%r12)
	jne	LBB0_23
## %bb.10:
	movl	$14, %r14d
	jmp	LBB0_23
LBB0_11:
	cmpb	$112, 1(%r12)
	jne	LBB0_14
## %bb.12:
	cmpb	$0, 2(%r12)
	je	LBB0_13
LBB0_14:
	leaq	1(%r12), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, %r15d
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:
	cmpb	$0, (%rax)
	jne	LBB0_23
## %bb.16:
	movl	$32, %ecx
	cmpb	$102, (%r12)
	jne	LBB0_18
## %bb.17:
	movq	_max_architecture@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SPARC_OPCODE_ARCH_V9_P
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$5, %ecx
	addl	$32, %ecx
LBB0_18:
	cmpl	%ecx, %r15d
	jae	LBB0_23
## %bb.19:
	cmpb	$102, (%r12)
	movl	%r15d, %eax
	jne	LBB0_22
## %bb.20:
	leal	32(%r15), %eax
	cmpl	$64, %eax
	jb	LBB0_22
## %bb.21:
	andl	$1, %r15d
	jne	LBB0_23
LBB0_22:
	movl	%eax, %r14d
	jmp	LBB0_23
LBB0_13:
	movl	$30, %r14d
LBB0_23:
	movl	%r14d, %eax
	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	"goli"

	.comm	_max_architecture,4,2           ## @max_architecture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparc_regname_to_dw2regnum     ; -- Begin function sparc_regname_to_dw2regnum
	.p2align	2
_sparc_regname_to_dw2regnum:            ; @sparc_regname_to_dw2regnum
	.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
	ldrb	w20, [x0]
	cbz	w20, LBB0_21
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	str	x0, [sp, #8]
	sxtb	w1, w20
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.2:
	ldrb	w8, [x19, #1]
	sub	w9, w8, #57
	cmn	w9, #9
	b.lo	LBB0_21
; %bb.3:
	ldrb	w9, [x19, #2]
	cbnz	w9, LBB0_21
; %bb.4:
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
	sub	w9, w0, w9
	add	w8, w8, w9, lsl #3
	sub	w0, w8, #48
	b	LBB0_22
LBB0_5:
	cmp	w20, #102
	b.eq	LBB0_11
; %bb.6:
	cmp	w20, #114
	b.eq	LBB0_13
; %bb.7:
	cmp	w20, #115
	b.ne	LBB0_21
; %bb.8:
	ldrb	w8, [x19, #1]
	cmp	w8, #112
	b.ne	LBB0_21
; %bb.9:
	ldrb	w8, [x19, #2]
	cbnz	w8, LBB0_21
; %bb.10:
	mov	w0, #14
	b	LBB0_22
LBB0_11:
	ldrb	w8, [x19, #1]
	cmp	w8, #112
	b.ne	LBB0_13
; %bb.12:
	ldrb	w8, [x19, #2]
	cbz	w8, LBB0_23
LBB0_13:
	add	x0, x19, #1
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_21
; %bb.14:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_21
; %bb.15:
	mov	x20, x0
	ldrb	w8, [x19]
	mov	w21, #32
	cmp	w8, #102
	b.ne	LBB0_17
; %bb.16:
Lloh4:
	adrp	x8, _max_architecture@GOTPAGE
Lloh5:
	ldr	x8, [x8, _max_architecture@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_SPARC_OPCODE_ARCH_V9_P
	cmp	x0, #0
	mov	w8, #64
	csel	w21, w21, w8, eq
LBB0_17:
	cmp	w20, w21
	b.hs	LBB0_21
; %bb.18:
	ldrb	w8, [x19]
	mov	x0, x20
	cmp	w8, #102
	b.ne	LBB0_22
; %bb.19:
	add	w0, w20, #32
	cmp	w0, #64
	b.lo	LBB0_22
; %bb.20:
	tbz	w20, #0, LBB0_22
LBB0_21:
	mov	w0, #-1
LBB0_22:
	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
LBB0_23:
	mov	w0, #30
	b	LBB0_22
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"goli"

	.comm	_max_architecture,4,2           ; @max_architecture
.subsections_via_symbols
