	.file	"extr_methods.c_array_setscalar.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"itemset must have at least one argument"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"assignment destination"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"can only convert an array of size 1 to a Python scalar"
	.align 8
.LC3:
	.string	"incorrect number of indices for array"
	.text
	.p2align 4
	.type	array_setscalar, @function
array_setscalar:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR NPY_MAXDIMS[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L46:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L46
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L47
.L4:
	mov	rdi, r12
	mov	r14, rsp
	call	PyTuple_GET_SIZE@PLT
	mov	rdi, r13
	lea	ebx, -1[rax]
	call	PyArray_NDIM@PLT
	mov	r15d, eax
	test	ebx, ebx
	js	.L48
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	PyArray_FailUnlessWriteable@PLT
	test	rax, rax
	js	.L6
	mov	esi, ebx
	mov	rdi, r12
	call	PyTuple_GET_ITEM@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	ebx, 1
	je	.L49
	test	ebx, ebx
	je	.L10
.L15:
	cmp	r15d, ebx
	jne	.L20
	test	r15d, r15d
	jle	.L14
	lea	eax, -1[r15]
	xor	ebx, ebx
	mov	QWORD PTR -72[rbp], rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L50:
	mov	DWORD PTR [r14+rbx*4], r15d
	lea	rax, 1[rbx]
	cmp	rbx, QWORD PTR -72[rbp]
	je	.L14
	mov	rbx, rax
.L21:
	mov	esi, ebx
	mov	rdi, r12
	call	PyTuple_GET_ITEM@PLT
	mov	rdi, rax
	call	PyArray_PyIntAsIntp@PLT
	mov	edi, eax
	mov	r15d, eax
	call	error_converting@PLT
	test	rax, rax
	je	.L50
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L51
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L48:
	.cfi_restore_state
	mov	edi, DWORD PTR PyExc_ValueError[rip]
	lea	rsi, .LC0[rip]
	call	PyErr_SetString@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L47:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	PyArray_SIZE@PLT
	cmp	eax, 1
	jne	.L11
	test	r15d, r15d
	jle	.L14
	lea	edx, -1[r15]
	mov	rax, r14
	lea	rdx, 4[r14+rdx*4]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	rdx, rax
	jne	.L13
.L14:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, r14
	mov	rdi, r13
	call	PyArray_MultiIndexSetItem@PLT
	test	rax, rax
	jns	.L1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L49:
	xor	esi, esi
	mov	rdi, r12
	call	PyTuple_GET_ITEM@PLT
	mov	rdi, rax
	call	PyTuple_Check@PLT
	mov	r8, rax
	mov	eax, 1
	test	r8, r8
	jne	.L52
.L9:
	cmp	r15d, 1
	je	.L15
	test	al, al
	je	.L15
	mov	rdi, r13
	call	PyArray_SHAPE@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	PyArray_SIZE@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	DWORD PTR -72[rbp], eax
	call	PyTuple_GET_ITEM@PLT
	mov	rdi, rax
	call	PyArray_PyIntAsIntp@PLT
	mov	edi, eax
	mov	DWORD PTR -60[rbp], eax
	call	error_converting@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR -72[rbp]
	xor	ecx, ecx
	lea	rdi, -60[rbp]
	mov	edx, -1
	call	check_and_adjust_index@PLT
	test	rax, rax
	js	.L6
	sub	r15d, 1
	mov	esi, DWORD PTR -60[rbp]
	movsx	rcx, r15d
	js	.L14
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, esi
	cdq
	idiv	DWORD PTR [rbx+rcx*4]
	mov	eax, esi
	mov	DWORD PTR [r14+rcx*4], edx
	cdq
	idiv	DWORD PTR [rbx+rcx*4]
	sub	rcx, 1
	mov	DWORD PTR -60[rbp], eax
	mov	esi, eax
	test	ecx, ecx
	jns	.L18
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR PyExc_ValueError[rip]
	lea	rsi, .LC2[rip]
	call	PyErr_SetString@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR PyExc_ValueError[rip]
	lea	rsi, .LC3[rip]
	call	PyErr_SetString@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L52:
	mov	rdi, r12
	xor	esi, esi
	call	PyTuple_GET_ITEM@PLT
	mov	rdi, rax
	mov	r12, rax
	call	PyTuple_GET_SIZE@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L10
	cmp	eax, 1
	sete	al
	jmp	.L9
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	array_setscalar, .-array_setscalar
	.comm	Py_RETURN_NONE,4,4
	.comm	PyExc_ValueError,4,4
	.comm	NPY_MAXDIMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_methods.c_array_setscalar.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"itemset must have at least one argument\000"
	.align	2
.LC1:
	.ascii	"assignment destination\000"
	.align	2
.LC2:
	.ascii	"can only convert an array of size 1 to a Python sca"
	.ascii	"lar\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
.LC3:
	.ascii	"incorrect number of indices for array\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	array_setscalar, %function
array_setscalar:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L40
	mov	r6, r0
	ldr	r3, [r3]
	mov	r0, r1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L40+4
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	PyTuple_GET_SIZE
	mov	r4, r0
	mov	r0, r6
	sub	r4, r4, #1
	bl	PyArray_NDIM
	cmp	r4, #0
	blt	.L35
	mov	r7, r0
	ldr	r1, .L40+8
	mov	r0, r6
	bl	PyArray_FailUnlessWriteable
	cmp	r0, #0
	blt	.L3
	mov	r1, r4
	mov	r0, r5
	bl	PyTuple_GET_ITEM
	cmp	r4, #1
	mov	r9, sp
	str	r0, [fp, #-48]
	beq	.L36
	cmp	r4, #0
	beq	.L7
.L12:
	cmp	r7, r4
	bne	.L17
	cmp	r4, #0
	ble	.L11
	mov	r8, #0
	sub	r10, r9, #4
	b	.L18
.L37:
	add	r8, r8, #1
	cmp	r8, r4
	str	r7, [r10, #4]!
	beq	.L11
.L18:
	mov	r1, r8
	mov	r0, r5
	bl	PyTuple_GET_ITEM
	bl	PyArray_PyIntAsIntp
	mov	r7, r0
	bl	error_converting
	cmp	r0, #0
	beq	.L37
.L3:
	mov	r0, #0
.L1:
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r3, .L40+12
	ldr	r1, .L40+16
	ldr	r0, [r3]
	bl	PyErr_SetString
	b	.L3
.L7:
	mov	r0, r6
	bl	PyArray_SIZE
	cmp	r0, #1
	bne	.L8
	cmp	r7, #0
	ble	.L11
	mov	r3, #0
	mov	r1, r3
	sub	r2, r9, #4
.L10:
	add	r3, r3, #1
	cmp	r7, r3
	str	r1, [r2, #4]!
	bne	.L10
.L11:
	mov	r1, r9
	mov	r0, r6
	ldr	r2, [fp, #-48]
	bl	PyArray_MultiIndexSetItem
	cmp	r0, #0
	bge	.L1
	b	.L3
.L36:
	mov	r1, #0
	mov	r0, r5
	bl	PyTuple_GET_ITEM
	bl	PyTuple_Check
	cmp	r0, #0
	moveq	r3, r4
	bne	.L39
.L6:
	cmp	r7, #1
	moveq	r3, #0
	andne	r3, r3, #1
	cmp	r3, #0
	beq	.L12
	mov	r0, r6
	bl	PyArray_SHAPE
	mov	r10, r0
	mov	r0, r6
	bl	PyArray_SIZE
	mov	r1, #0
	mov	r4, r0
	mov	r0, r5
	bl	PyTuple_GET_ITEM
	bl	PyArray_PyIntAsIntp
	str	r0, [fp, #-44]
	bl	error_converting
	subs	r3, r0, #0
	bne	.L3
	mov	r1, r4
	mvn	r2, #0
	sub	r0, fp, #44
	bl	check_and_adjust_index
	cmp	r0, #0
	blt	.L3
	cmp	r7, #0
	ble	.L11
	add	r5, r9, r7, lsl #2
	ldr	r4, [fp, #-44]
	sub	r5, r5, #4
	add	r7, r10, r7, lsl #2
.L15:
	ldr	r1, [r7, #-4]!
	mov	r0, r4
	bl	__aeabi_idivmod
	str	r1, [r5], #-4
	mov	r0, r4
	ldr	r1, [r7]
	bl	__aeabi_idiv
	cmp	r7, r10
	mov	r4, r0
	str	r0, [fp, #-44]
	bne	.L15
	b	.L11
.L8:
	ldr	r3, .L40+12
	ldr	r1, .L40+20
	ldr	r0, [r3]
	bl	PyErr_SetString
	b	.L11
.L17:
	ldr	r3, .L40+12
	ldr	r1, .L40+24
	ldr	r0, [r3]
	bl	PyErr_SetString
	b	.L3
.L39:
	mov	r0, r5
	mov	r1, #0
	bl	PyTuple_GET_ITEM
	mov	r5, r0
	bl	PyTuple_GET_SIZE
	subs	r4, r0, #0
	beq	.L7
	sub	r3, r4, #1
	clz	r3, r3
	lsr	r3, r3, #5
	b	.L6
.L38:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	NPY_MAXDIMS
	.word	.LC4
	.word	.LC1
	.word	PyExc_ValueError
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	array_setscalar, .-array_setscalar
	.comm	Py_RETURN_NONE,4,4
	.comm	PyExc_ValueError,4,4
	.comm	NPY_MAXDIMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
