	.file	"extr_zcrypt_api.c_zcrypt_check_ioctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ioctl check failed: ioctlnr=0x%04x rc=%d\n"
	.text
	.p2align 4
	.type	zcrypt_check_ioctl, @function
zcrypt_check_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR _IOC_NRSHIFT[rip]
	and	esi, DWORD PTR _IOC_NRMASK[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR EPERM[rip]
	shr	r12d, cl
	mov	r13d, ebx
	neg	r13d
	test	r12d, r12d
	jle	.L5
	cmp	DWORD PTR AP_IOCTLS[rip], r12d
	jg	.L9
.L5:
	test	ebx, ebx
	jne	.L10
.L1:
	mov	eax, r13d
	pop	rbx
	.cfi_remember_state
	.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
	mov	edi, DWORD PTR DBF_WARN[rip]
	mov	ecx, r13d
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	ZCRYPT_DBF@PLT
	mov	eax, r13d
	pop	rbx
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR [rdi]
	mov	edi, r12d
	call	test_bit_inv@PLT
	test	rax, rax
	je	.L5
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	zcrypt_check_ioctl, .-zcrypt_check_ioctl
	.comm	_IOC_NRSHIFT,4,4
	.comm	_IOC_NRMASK,4,4
	.comm	EPERM,4,4
	.comm	DBF_WARN,4,4
	.comm	AP_IOCTLS,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_zcrypt_api.c_zcrypt_check_ioctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ioctl check failed: ioctlnr=0x%04x rc=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zcrypt_check_ioctl, %function
zcrypt_check_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	ldr	r4, [r3]
	ldr	r3, .L11+8
	and	r1, r1, r2
	ldr	r5, [r3]
	lsr	r4, r1, r4
	cmp	r4, #0
	rsb	r6, r5, #0
	ble	.L5
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L9
.L5:
	cmp	r5, #0
	bne	.L10
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L11+16
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L11+20
	mov	r3, r6
	bl	ZCRYPT_DBF
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r1, [r0]
	mov	r0, r4
	bl	test_bit_inv
	cmp	r0, #0
	movne	r6, #0
	bne	.L1
	b	.L5
.L12:
	.align	2
.L11:
	.word	_IOC_NRMASK
	.word	_IOC_NRSHIFT
	.word	EPERM
	.word	AP_IOCTLS
	.word	DBF_WARN
	.word	.LC0
	.size	zcrypt_check_ioctl, .-zcrypt_check_ioctl
	.comm	_IOC_NRSHIFT,4,4
	.comm	_IOC_NRMASK,4,4
	.comm	EPERM,4,4
	.comm	DBF_WARN,4,4
	.comm	AP_IOCTLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
