	.file	"extr_veriexec_check.c_veriexec_check_fd_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	veriexec_check_fd_mode
	.type	veriexec_check_fd_mode, @function
veriexec_check_fd_mode:
.LFB0:
	.cfi_startproc
	endbr64
	test	edi, edi
	js	.L16
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	rdx, edi
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR MAC_VERIEXEC_CHECK_FD_SYSCALL[rip]
	mov	edi, DWORD PTR MAC_VERIEXEC_NAME[rip]
	call	mac_syscall@PLT
	cmp	eax, -1
	je	.L4
	test	eax, eax
	sete	dl
.L5:
	test	r12d, r12d
	je	.L1
	test	dl, dl
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	mov	edi, ebp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	check_fd_mode@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	DWORD PTR errno[rip], 128
	je	.L17
.L1:
	add	rsp, 8
	.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
.L17:
	.cfi_restore_state
	mov	edx, 1
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	veriexec_check_fd_mode, .-veriexec_check_fd_mode
	.comm	errno,4,4
	.comm	MAC_VERIEXEC_NAME,4,4
	.comm	MAC_VERIEXEC_CHECK_FD_SYSCALL,4,4
	.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_veriexec_check.c_veriexec_check_fd_mode.c"
	.text
	.align	2
	.global	veriexec_check_fd_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	veriexec_check_fd_mode, %function
veriexec_check_fd_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	blt	.L11
	ldr	r2, .L12
	ldr	r3, .L12+4
	mov	r4, r1
	ldr	r0, [r3]
	ldr	r1, [r2]
	mov	r2, r5
	bl	mac_syscall
	cmn	r0, #1
	beq	.L4
	clz	r3, r0
	lsr	r3, r3, #5
.L5:
	cmp	r4, #0
	moveq	r3, #0
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	check_fd_mode
.L4:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, #128
	popne	{r4, r5, r6, pc}
	mov	r3, #1
	mov	r0, #0
	b	.L5
.L11:
	ldr	r2, .L12+12
	ldr	r3, .L12+8
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	MAC_VERIEXEC_CHECK_FD_SYSCALL
	.word	MAC_VERIEXEC_NAME
	.word	errno
	.word	EINVAL
	.size	veriexec_check_fd_mode, .-veriexec_check_fd_mode
	.comm	errno,4,4
	.comm	MAC_VERIEXEC_NAME,4,4
	.comm	MAC_VERIEXEC_CHECK_FD_SYSCALL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
