	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getreg
_getreg:                                ## @getreg
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %r15
	movq	%r15, -96(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -88(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -80(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -72(%rbp)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -64(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -56(%rbp)
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_10
## %bb.2:
	cmpb	$114, %al
	jne	LBB0_6
## %bb.3:
	leaq	1(%r14), %r12
	leaq	-104(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %ebx
	movq	-104(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_10
## %bb.4:
	cmpb	$0, (%r12)
	je	LBB0_10
## %bb.5:
	cmpl	$16, %ebx
	jb	LBB0_11
LBB0_6:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcmpnull
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp,%rbx,8), %r15
	incq	%rbx
	testq	%r15, %r15
	jne	LBB0_7
LBB0_10:
	movl	$-1, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	addl	$9, %ebx
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sl"

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

L_.str.2:                               ## @.str.2
	.asciz	"ip"

L_.str.3:                               ## @.str.3
	.asciz	"sp"

L_.str.4:                               ## @.str.4
	.asciz	"lr"

L_.str.5:                               ## @.str.5
	.asciz	"pc"

	.no_dead_strip	_getreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getreg
_getreg:                                ; @getreg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [sp, #16]
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [sp, #32]
Lloh11:
	adrp	x8, l_.str.4@PAGE
Lloh12:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh13:
	adrp	x9, l_.str.5@PAGE
Lloh14:
	add	x9, x9, l_.str.5@PAGEOFF
	str	x8, [sp, #48]
	stp	x9, xzr, [sp, #56]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_9
; %bb.2:
	cmp	w8, #114
	b.ne	LBB0_6
; %bb.3:
	add	x20, x19, #1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.4:
	ldrb	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:
	cmp	w0, #16
	b.lo	LBB0_10
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w20, #1
	add	x21, sp, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strcmpnull
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x21, x20, lsl #3]
	add	x20, x20, #1
	cbnz	x1, LBB0_7
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	add	w0, w20, #9
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sl"

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

l_.str.2:                               ; @.str.2
	.asciz	"ip"

l_.str.3:                               ; @.str.3
	.asciz	"sp"

l_.str.4:                               ; @.str.4
	.asciz	"lr"

l_.str.5:                               ; @.str.5
	.asciz	"pc"

	.no_dead_strip	_getreg
.subsections_via_symbols
