	.file	"extr_nx-842-pseries.c_check_constraints.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"input"
.LC1:
	.string	"output"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%s buffer 0x%lx not aligned to 0x%x\n"
	.align 8
.LC3:
	.string	"%s buffer len 0x%x under minimum 0x%x\n"
	.align 8
.LC4:
	.string	"%s buffer len 0x%x over maximum 0x%x\n"
	.align 8
.LC5:
	.string	"%s buffer len 0x%x not multiple of 0x%x\n"
	.text
	.p2align 4
	.type	check_constraints, @function
check_constraints:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	mov	esi, DWORD PTR nx842_pseries_constraints[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	IS_ALIGNED@PLT
	test	eax, eax
	je	.L20
	mov	r8d, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR nx842_pseries_constraints[rip+4]
	xor	edx, edx
	mov	eax, r8d
	div	ecx
	test	edx, edx
	jne	.L21
	mov	ecx, DWORD PTR nx842_pseries_constraints[rip+8]
	cmp	r8d, ecx
	jb	.L22
	mov	ecx, DWORD PTR nx842_pseries_constraints[rip+12]
	cmp	r8d, ecx
	jbe	.L18
	test	r12d, r12d
	je	.L12
	mov	edx, r8d
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	pr_debug@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	test	r12d, r12d
	jne	.L6
	mov	edx, r8d
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	pr_debug@PLT
	mov	esi, DWORD PTR nx842_pseries_constraints[rip+4]
	mov	edi, DWORD PTR 0[rbp]
	call	round_down@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	ecx, DWORD PTR nx842_pseries_constraints[rip+8]
	mov	r8d, eax
	cmp	eax, ecx
	jb	.L15
	mov	ecx, DWORD PTR nx842_pseries_constraints[rip+12]
	cmp	eax, ecx
	jbe	.L18
.L12:
	mov	edx, r8d
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	pr_debug@PLT
	mov	eax, DWORD PTR nx842_pseries_constraints[rip+12]
	mov	DWORD PTR 0[rbp], eax
.L18:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	test	r12d, r12d
	lea	rax, .LC1[rip]
	mov	ecx, DWORD PTR nx842_pseries_constraints[rip]
	mov	edx, ebx
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	cmove	rsi, rax
	call	pr_debug@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, r8d
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	pr_debug@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	test	r12d, r12d
	lea	rsi, .LC0[rip]
	lea	rax, .LC1[rip]
	cmove	rsi, rax
.L9:
	mov	edx, r8d
	lea	rdi, .LC3[rip]
	call	pr_debug@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	check_constraints, .-check_constraints
	.comm	nx842_pseries_constraints,16,16
	.comm	EINVAL,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_nx-842-pseries.c_check_constraints.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"input\000"
	.align	2
.LC1:
	.ascii	"output\000"
	.align	2
.LC2:
	.ascii	"%s buffer 0x%lx not aligned to 0x%x\012\000"
	.global	__aeabi_uidivmod
	.align	2
.LC3:
	.ascii	"%s buffer len 0x%x under minimum 0x%x\012\000"
	.align	2
.LC4:
	.ascii	"%s buffer len 0x%x over maximum 0x%x\012\000"
	.align	2
.LC5:
	.ascii	"%s buffer len 0x%x not multiple of 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_constraints, %function
check_constraints:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L22
	mov	r4, r1
	ldr	r1, [r5]
	mov	r7, r2
	mov	r6, r0
	bl	IS_ALIGNED
	cmp	r0, #0
	beq	.L19
	ldr	r6, [r4]
	ldr	r8, [r5, #4]
	mov	r0, r6
	mov	r1, r8
	bl	__aeabi_uidivmod
	cmp	r1, #0
	bne	.L20
	ldr	r3, [r5, #8]
	cmp	r6, r3
	bcc	.L21
	ldr	r3, [r5, #12]
	cmp	r6, r3
	bls	.L10
	cmp	r7, #0
	beq	.L12
	mov	r2, r6
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	pr_debug
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	cmp	r7, #0
	bne	.L6
	mov	r3, r8
	mov	r2, r6
	ldr	r1, .L22+16
	ldr	r0, .L22+20
	bl	pr_debug
	ldr	r1, [r5, #4]
	ldr	r0, [r4]
	bl	round_down
	str	r0, [r4]
	ldr	r3, [r5, #8]
	mov	r6, r0
	cmp	r0, r3
	bcc	.L15
	ldr	r3, [r5, #12]
	cmp	r0, r3
	bls	.L10
.L12:
	mov	r2, r6
	ldr	r1, .L22+16
	ldr	r0, .L22+8
	bl	pr_debug
	ldr	r3, [r5, #12]
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r0, .L22+4
	cmp	r7, #0
	ldr	r1, .L22+16
	ldr	r3, [r5]
	movne	r1, r0
	mov	r2, r6
	ldr	r0, .L22+24
	bl	pr_debug
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r3, r8
	mov	r2, r6
	ldr	r1, .L22+4
	ldr	r0, .L22+20
	bl	pr_debug
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r2, .L22+16
	cmp	r7, #0
	ldr	r1, .L22+4
	moveq	r1, r2
.L9:
	mov	r2, r6
	ldr	r0, .L22+28
	bl	pr_debug
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r1, .L22+16
	b	.L9
.L23:
	.align	2
.L22:
	.word	nx842_pseries_constraints
	.word	.LC0
	.word	.LC4
	.word	EINVAL
	.word	.LC1
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.size	check_constraints, .-check_constraints
	.comm	nx842_pseries_constraints,16,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
