	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arc_insert_operand
_arc_insert_operand:                    ## @arc_insert_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r8
	movq	%rsi, %rbx
	movslq	(%rsi), %rax
	cmpq	$32, %rax
	je	LBB0_7
## %bb.1:
	movl	4(%rbx), %r10d
	movq	_ARC_OPERAND_SIGNED@GOTPCREL(%rip), %rcx
	testl	%r10d, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	_ARC_OPERAND_SIGNOPT@GOTPCREL(%rip), %rsi
	movq	%rax, %rcx
	decq	%rcx
	testl	%r10d, (%rsi)
	cmovel	%ecx, %eax
	movq	$-1, %r12
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r12
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	movl	$-1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	notl	%esi
	movq	_ARC_OPERAND_NEGATIVE@GOTPCREL(%rip), %rax
	movq	%r13, %r15
	negq	%r15
	testl	%r10d, (%rax)
	movslq	%esi, %r14
	cmoveq	%r13, %r15
	cmpq	%r12, %r15
	jl	LBB0_6
## %bb.5:
	cmpq	%r14, %r15
	jle	LBB0_7
LBB0_6:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	16(%rbp), %r9d
	callq	_as_warn_value_out_of_range
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %r9
	movq	%rbx, %rsi
	movq	%r8, %rcx
	movq	%r13, %r8
	callq	*%rax
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	callq	_as_warn
	jmp	LBB0_11
LBB0_10:
	movb	(%rbx), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	movb	16(%rbx), %cl
	notl	%eax
	movslq	%eax, %rbx
	andq	%r13, %rbx
	shlq	%cl, %rbx
	orq	%rdi, %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARC_OPERAND_SIGNED,4,2         ## @ARC_OPERAND_SIGNED
	.comm	_ARC_OPERAND_SIGNOPT,4,2        ## @ARC_OPERAND_SIGNOPT
	.comm	_ARC_OPERAND_NEGATIVE,4,2       ## @ARC_OPERAND_NEGATIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"operand"

	.no_dead_strip	_arc_insert_operand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arc_insert_operand
_arc_insert_operand:                    ; @arc_insert_operand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w9, [x1]
	cmp	w9, #32
	b.eq	LBB0_6
; %bb.1:
	mov	x24, x6
	mov	x25, x5
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x10, _ARC_OPERAND_SIGNED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ARC_OPERAND_SIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_3
; %bb.2:
	sxtw	x10, w9
Lloh3:
	adrp	x11, _ARC_OPERAND_SIGNOPT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ARC_OPERAND_SIGNOPT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	sub	x10, x10, #1
	tst	w11, w8
	csel	w9, w10, w9, eq
	mov	x11, #-1
	lsl	x26, x11, x10
	b	LBB0_4
LBB0_3:
	mov	x26, #0
LBB0_4:
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
Lloh6:
	adrp	x10, _ARC_OPERAND_NEGATIVE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ARC_OPERAND_NEGATIVE@GOTPAGEOFF]
	sxtw	x27, w9
Lloh8:
	ldr	w9, [x10]
	tst	w9, w8
	cneg	x28, x19, ne
	cmp	x28, x26
	ccmp	x28, x27, #0, ge
	b.le	LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x28
	mov	x2, x26
	mov	x3, x27
	mov	x4, x25
	mov	x5, x24
	bl	_as_warn_value_out_of_range
LBB0_6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.7:
	str	xzr, [sp, #8]
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x19
	blr	x8
	mov	x19, x0
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.8:
	bl	_as_warn
	b	LBB0_10
LBB0_9:
	ldr	w8, [x21]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	sxtw	x8, w8
	and	x8, x8, x19
	ldr	x9, [x21, #16]
	lsl	x8, x8, x9
	orr	x19, x8, x20
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARC_OPERAND_SIGNED,4,2         ; @ARC_OPERAND_SIGNED
	.comm	_ARC_OPERAND_SIGNOPT,4,2        ; @ARC_OPERAND_SIGNOPT
	.comm	_ARC_OPERAND_NEGATIVE,4,2       ; @ARC_OPERAND_NEGATIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"operand"

	.no_dead_strip	_arc_insert_operand
.subsections_via_symbols
