	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getshift
_getshift:                              ## @getshift
	.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	$320, %rsp                      ## imm = 0x140
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -320(%rbp)
	leaq	L_.str(%rip), %r14
	movq	%r14, -352(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -344(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -336(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -328(%rbp)
	leaq	L_.str.4(%rip), %r15
	movq	%r15, -312(%rbp)
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$127, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_r_str_casecmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leaq	-176(%rbp), %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movb	$0, (%rax)
	incq	%rax
	leaq	-304(%rbp), %rdi
	movq	%rax, %rsi
	movl	$127, %edx
	callq	_strncpy
	leaq	-176(%rbp), %r15
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_r_str_casecmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-344(%rbp,%rbx,8), %r14
	incq	%rbx
	addq	$32, %r12
	testq	%r14, %r14
	jne	LBB0_3
LBB0_6:
	xorl	%r12d, %r12d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r12, %rax
	addq	$320, %rsp                      ## imm = 0x140
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-304(%rbp), %rdi
	callq	_getreg
	cmpq	$-1, %rax
	je	LBB0_10
## %bb.9:
	shlq	$8, %rax
	movabsq	$9223372036854775807, %rcx      ## imm = 0x7FFFFFFFFFFFFFFF
	andq	%rcx, %rbx
	xorl	%ecx, %ecx
	cmpq	$3, %rbx
	sete	%cl
	shlq	$20, %rcx
	orq	%r12, %rcx
	orq	%rax, %rcx
	orq	$16, %rcx
	movq	%rcx, %r12
	jmp	LBB0_13
LBB0_10:
	leaq	-304(%rbp), %rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movb	$0, (%rax)
LBB0_12:
	orq	$3968, %r12                     ## imm = 0xF80
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LSL"

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

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

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

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

	.no_dead_strip	_getshift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getshift
_getshift:                              ; @getshift
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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	x1, x0
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, #8]
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, #24]
Lloh11:
	adrp	x19, l_.str.4@PAGE
Lloh12:
	add	x19, x19, l_.str.4@PAGEOFF
	stp	xzr, x19, [sp, #40]
	sub	x0, x29, #168
	mov	w2, #127
	bl	_strncpy
	sub	x0, x29, #168
	mov	x1, x19
	bl	_r_str_casecmp
	cbz	w0, LBB0_5
; %bb.1:
	sub	x0, x29, #168
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	strb	wzr, [x1], #1
	add	x0, sp, #56
	mov	w2, #127
	bl	_strncpy
	mov	x19, #0
	mov	x20, #0
	add	x8, sp, #8
	add	x21, x8, #8
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #168
	bl	_r_str_casecmp
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21, x20, lsl #3]
	add	x20, x20, #1
	add	x19, x19, #32
	cbnz	x1, LBB0_3
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.7:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_8:
	add	x0, sp, #56
	bl	_getreg
	cmn	x0, #1
	b.eq	LBB0_10
; %bb.9:
	and	x8, x20, #0x7fffffffffffffff
	mov	w9, #16
	mov	w10, #1048592
	cmp	x8, #3
	csel	x8, x10, x9, eq
	orr	x8, x8, x19
	orr	x0, x8, x0, lsl #8
	b	LBB0_6
LBB0_10:
	add	x0, sp, #56
	mov	w1, #93
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:
	strb	wzr, [x0]
LBB0_12:
	orr	x0, x19, #0xf80
	b	LBB0_6
LBB0_13:
	bl	___stack_chk_fail
	.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	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LSL"

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

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

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

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

	.no_dead_strip	_getshift
.subsections_via_symbols
