	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ins_imms_scaled
_ins_imms_scaled:                       ## @ins_imms_scaled
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r15d
	movq	(%rdi), %rdi
	callq	_NELEMS
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	(%rbx), %rdi
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edx
	movl	%eax, %r13d
	movl	$-1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movl	%r15d, %r12d
	notl	%ebx
	andl	%r15d, %ebx
	movzbl	-4(%rdi,%r14,8), %ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
	movl	%r13d, %ecx
	sarl	%cl, %r15d
	callq	_NELEMS
	cltq
	cmpq	%rax, %r14
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	(%rdi,%r14,8), %eax
	incq	%r14
	testl	%eax, %eax
	jne	LBB0_3
LBB0_5:
	decb	%r13b
	movzbl	%r13b, %eax
	xorl	%ecx, %ecx
	btl	%eax, %r12d
	setb	%cl
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	leaq	L_.str(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.9:
	testl	%r15d, %r15d
	jne	LBB0_13
LBB0_10:
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:
	cmpl	$-1, %r15d
	jne	LBB0_13
LBB0_12:
	orl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"integer operand out of range"

	.no_dead_strip	_ins_imms_scaled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ins_imms_scaled
_ins_imms_scaled:                       ; @ins_imms_scaled
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x0
	asr	w21, w1, w3
	ldr	x0, [x0]
	bl	_NELEMS
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	ldr	x0, [x20]
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x24, #0
	mov	w22, #0
	mov	x23, #0
	mov	w25, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x21
	mov	x27, x8
	lsl	w8, w25, w8
	bic	w8, w21, w8
	add	x9, x0, x24
	ldr	w9, [x9, #4]
	lsl	w8, w8, w9
	orr	w22, w8, w22
	asr	w21, w21, w27
	add	x23, x23, #1
	bl	_NELEMS
	cmp	x23, w0, sxtw
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	add	x8, x0, x24
	add	x24, x24, #8
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_3
LBB0_5:
	sub	w8, w27, #1
	lsr	w8, w26, w8
	and	w8, w8, #0x1
	cbz	w8, LBB0_8
	b	LBB0_9
LBB0_6:
	mov	w8, #0
LBB0_7:
	mov	w22, #0
	cbnz	w8, LBB0_9
LBB0_8:
	cbnz	w21, LBB0_11
LBB0_9:
	cbz	w8, LBB0_12
; %bb.10:
	cmn	w21, #1
	b.eq	LBB0_12
LBB0_11:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x0, #0
	ldr	w8, [x19]
	orr	w8, w8, w22
	str	w8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"integer operand out of range"

	.no_dead_strip	_ins_imms_scaled
.subsections_via_symbols
