	.file	"extr_ioprio.c_ioprio_check_cap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ioprio_check_cap
	.type	ioprio_check_cap, @function
ioprio_check_cap:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	IOPRIO_PRIO_CLASS@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	IOPRIO_PRIO_DATA@PLT
	cmp	ebx, 130
	je	.L10
	mov	ebp, eax
	jg	.L3
	cmp	ebx, 128
	je	.L4
	cmp	ebx, 129
	jne	.L6
	test	eax, eax
	jne	.L6
.L10:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	ebx, 131
	jne	.L6
.L7:
	cmp	DWORD PTR IOPRIO_BE_NR[rip], ebp
	jle	.L6
	test	ebp, ebp
	jns	.L10
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR CAP_SYS_ADMIN[rip]
	call	capable@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR EPERM[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ioprio_check_cap, .-ioprio_check_cap
	.comm	IOPRIO_BE_NR,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_SYS_ADMIN,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_ioprio.c_ioprio_check_cap.c"
	.text
	.align	2
	.global	ioprio_check_cap
	.syntax unified
	.arm
	.fpu softvfp
	.type	ioprio_check_cap, %function
ioprio_check_cap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	IOPRIO_PRIO_CLASS
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	IOPRIO_PRIO_DATA
	sub	r3, r4, #128
	mov	r4, r0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L10
	.word	.L3
.L6:
	cmp	r0, #0
	bne	.L2
.L10:
	mov	r0, #0
	pop	{r4, pc}
.L3:
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, r4
	movgt	r3, #0
	movle	r3, #1
	orrs	r3, r3, r4, lsr #31
	beq	.L10
.L2:
	ldr	r3, .L16+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L7:
	ldr	r3, .L16+8
	ldr	r0, [r3]
	bl	capable
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L16+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L17:
	.align	2
.L16:
	.word	IOPRIO_BE_NR
	.word	EINVAL
	.word	CAP_SYS_ADMIN
	.word	EPERM
	.size	ioprio_check_cap, .-ioprio_check_cap
	.comm	IOPRIO_BE_NR,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
