	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_thumb32_shifted_operand
_encode_thumb32_shifted_operand:        ## @encode_thumb32_shifted_operand
	.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
	movq	_inst@GOTPCREL(%rip), %r14
	movl	8(%r14), %r12d
	movq	24(%r14), %rax
	movslq	%edi, %rcx
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movl	(%rax,%rbx), %r15d
	movl	4(%rax,%rbx), %r13d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_constraint
	movq	24(%r14), %rax
	movl	(%r14), %ecx
	orl	8(%rax,%rbx), %ecx
	movl	%ecx, (%r14)
	movq	_SHIFT_RRX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_2
## %bb.1:
	movq	_SHIFT_ROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	orl	%ecx, %eax
	jmp	LBB0_8
LBB0_2:
	movq	16(%r14), %rax
	movq	_O_constant@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setne	%bl
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_constraint
	movl	$1, %ebx
	cmpl	$32, %r12d
	ja	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$32, %r12d
	jne	LBB0_5
## %bb.4:
	movq	_SHIFT_LSL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	sete	%al
	movq	_SHIFT_ROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %ebx
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_constraint
	movl	%r12d, %eax
	andl	$-33, %eax
	cmovnel	%r12d, %eax
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.6:
	movq	_SHIFT_LSL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_7:
	shll	$4, %r15d
	movl	%eax, %ecx
	andl	$28, %ecx
	shll	$10, %ecx
	shll	$6, %eax
	movzbl	%al, %eax
	orl	%ecx, %eax
	orl	(%r14), %eax
	orl	%r15d, %eax
LBB0_8:
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inst,32,3                      ## @inst
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shift by register not allowed in thumb mode"

	.comm	_SHIFT_RRX,4,2                  ## @SHIFT_RRX
	.comm	_SHIFT_ROR,4,2                  ## @SHIFT_ROR
	.comm	_O_constant,8,3                 ## @O_constant
L_.str.1:                               ## @.str.1
	.asciz	"expression too complex"

	.comm	_SHIFT_LSL,4,2                  ## @SHIFT_LSL
L_.str.2:                               ## @.str.2
	.asciz	"shift expression is too large"

	.no_dead_strip	_encode_thumb32_shifted_operand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_thumb32_shifted_operand
_encode_thumb32_shifted_operand:        ; @encode_thumb32_shifted_operand
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _inst@GOTPAGE
Lloh1:
	ldr	x21, [x21, _inst@GOTPAGEOFF]
	ldr	w22, [x21, #8]
	ldr	x8, [x21, #24]
	mov	w24, #12
	smaddl	x8, w0, w24, x8
	ldp	w23, w20, [x8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_constraint
	ldr	x8, [x21, #24]
	smaddl	x8, w19, w24, x8
	ldr	w8, [x8, #8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh4:
	adrp	x9, _SHIFT_RRX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SHIFT_RRX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w23, w9
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x9, _SHIFT_ROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SHIFT_ROR@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #4
	b	LBB0_8
LBB0_2:
	ldr	x8, [x21, #16]
Lloh10:
	adrp	x9, _O_constant@GOTPAGE
Lloh11:
	ldr	x9, [x9, _O_constant@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w19, ne
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_constraint
Lloh15:
	adrp	x20, _SHIFT_LSL@GOTPAGE
Lloh16:
	ldr	x20, [x20, _SHIFT_LSL@GOTPAGEOFF]
	cmp	w22, #32
	b.ls	LBB0_4
; %bb.3:
	mov	w19, #1
	b	LBB0_7
LBB0_4:
	cmp	w22, #32
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x20]
	cmp	w23, w8
Lloh17:
	adrp	x8, _SHIFT_ROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SHIFT_ROR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ccmp	w23, w8, #4, ne
	cset	w19, eq
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_constraint
	ldr	w8, [x20]
	tst	w22, #0xffffffdf
	csel	w9, wzr, w22, eq
	cmp	w22, #0
	csel	w8, w8, w23, eq
	ldr	w10, [x21]
	lsl	w11, w9, #10
	and	w11, w11, #0x7000
	bfi	w11, w9, #6, #2
	orr	w9, w11, w10
	orr	w8, w9, w8, lsl #4
LBB0_8:
	str	w8, [x21]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_inst,32,3                      ; @inst
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shift by register not allowed in thumb mode"

	.comm	_SHIFT_RRX,4,2                  ; @SHIFT_RRX
	.comm	_SHIFT_ROR,4,2                  ; @SHIFT_ROR
	.comm	_O_constant,8,3                 ; @O_constant
l_.str.1:                               ; @.str.1
	.asciz	"expression too complex"

	.comm	_SHIFT_LSL,4,2                  ; @SHIFT_LSL
l_.str.2:                               ; @.str.2
	.asciz	"shift expression is too large"

	.no_dead_strip	_encode_thumb32_shifted_operand
.subsections_via_symbols
