	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thumb_getshift
_thumb_getshift:                        ## @thumb_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	L_.str(%rip), %r13
	movq	%r13, -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), %r14
	movq	%r14, -56(%rbp)
	callq	_strdup
	movq	%rax, %r15
	movq	_err@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_r_str_case
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movb	$0, (%rax)
	incq	%rax
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, %r12
	leaq	-88(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %r13
	addl	$4096, %ebx                     ## imm = 0x1000
	addq	$8, %r14
	testq	%r13, %r13
	jne	LBB0_3
	jmp	LBB0_10
LBB0_5:
	movq	%r15, %rdi
	callq	_free
	movl	$12288, %ebx                    ## imm = 0x3000
	jmp	LBB0_12
LBB0_6:
	movq	%r15, %rdi
	callq	_free
	movl	$1, (%rbx)
	jmp	LBB0_11
LBB0_7:
	movq	%r12, %rdi
	callq	_getnum
                                        ## kill: def $eax killed $eax def $rax
	movq	_err@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_10
## %bb.8:
	cmpl	$33, %eax
	jge	LBB0_10
## %bb.9:
	leal	(,%rax,4), %ecx
	andl	$112, %ecx
	orl	%ebx, %ecx
	shll	$14, %eax
	movzwl	%ax, %ebx
	orl	%ecx, %ebx
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_12
LBB0_10:
	movq	_err@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	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"

	.comm	_err,4,2                        ## @err
	.no_dead_strip	_thumb_getshift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thumb_getshift
_thumb_getshift:                        ; @thumb_getshift
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
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	x20, l_.str.4@PAGE
Lloh12:
	add	x20, x20, l_.str.4@PAGEOFF
	stp	xzr, x20, [sp, #40]
	bl	_strdup
	mov	x19, x0
Lloh13:
	adrp	x22, _err@GOTPAGE
Lloh14:
	ldr	x22, [x22, _err@GOTPAGEOFF]
	str	wzr, [x22]
	mov	w1, #1
	bl	_r_str_case
	mov	x0, x19
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.2:
	strb	wzr, [x0], #1
	bl	_strdup
	mov	x20, x0
	mov	w21, #0
	add	x8, sp, #8
	add	x23, x8, #8
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23], #8
	add	w21, w21, #1, lsl #12           ; =4096
	cbnz	x1, LBB0_3
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_free
	mov	w21, #12288
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	w21, #0
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_11
LBB0_7:
	mov	x0, x20
	bl	_getnum
	ldr	w8, [x22]
	cbnz	w8, LBB0_10
; %bb.8:
	cmp	w0, #33
	b.ge	LBB0_10
; %bb.9:
	lsl	w8, w0, #2
	and	w8, w8, #0x70
	orr	w8, w8, w21
	ubfiz	w9, w0, #14, #2
	orr	w21, w8, w9
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
	b	LBB0_11
LBB0_10:
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
	mov	w21, #0
LBB0_11:
	ldr	x8, [sp, #56]
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.12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	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	"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"

	.comm	_err,4,2                        ; @err
	.no_dead_strip	_thumb_getshift
.subsections_via_symbols
