	.file	"extr_devlink.c_devlink_resource_validate_size.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Size larger than maximum"
.LC1:
	.string	"Size smaller than minimum"
.LC2:
	.string	"Wrong granularity"
	.text
	.p2align 4
	.type	devlink_resource_validate_size, @function
devlink_resource_validate_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdi], rsi
	jl	.L10
	cmp	QWORD PTR 8[rbx], rbp
	jg	.L11
.L3:
	mov	esi, DWORD PTR 16[rbx]
	mov	rdx, rsp
	mov	rdi, rbp
	call	div64_u64_rem@PLT
	cmp	QWORD PTR [rsp], 0
	jne	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rdx
	call	NL_SET_ERR_MSG_MOD@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	QWORD PTR 8[rbx], rbp
	jle	.L3
.L11:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	NL_SET_ERR_MSG_MOD@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	NL_SET_ERR_MSG_MOD@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	devlink_resource_validate_size, .-devlink_resource_validate_size
	.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_devlink.c_devlink_resource_validate_size.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Size larger than maximum\000"
	.align	2
.LC1:
	.ascii	"Size smaller than minimum\000"
	.align	2
.LC2:
	.ascii	"Wrong granularity\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	devlink_resource_validate_size, %function
devlink_resource_validate_size:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	sub	sp, sp, #12
	cmp	r3, r1
	ldr	r3, .L16
	mov	r5, r0
	mov	r4, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	movge	r6, #0
	blt	.L12
	ldr	r3, [r5, #4]
	cmp	r3, r4
	bgt	.L13
.L3:
	mov	r0, r4
	mov	r2, sp
	ldr	r1, [r5, #8]
	bl	div64_u64_rem
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L14
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r0, r2
	ldr	r1, .L16+4
	bl	NL_SET_ERR_MSG_MOD
	ldr	r3, .L16+8
	ldr	r6, [r3]
	ldr	r3, [r5, #4]
	rsb	r6, r6, #0
	cmp	r3, r4
	ble	.L3
.L13:
	mov	r0, r7
	ldr	r1, .L16+12
	bl	NL_SET_ERR_MSG_MOD
	ldr	r3, .L16+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L3
.L14:
	mov	r0, r7
	ldr	r1, .L16+16
	bl	NL_SET_ERR_MSG_MOD
	ldr	r3, .L16+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.word	.LC2
	.size	devlink_resource_validate_size, .-devlink_resource_validate_size
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
