	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_veriexec_check_fd_mode         ## -- Begin function veriexec_check_fd_mode
	.p2align	4, 0x90
_veriexec_check_fd_mode:                ## @veriexec_check_fd_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edi, %edi
	js	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_MAC_VERIEXEC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAC_VERIEXEC_CHECK_FD_SYSCALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_mac_syscall
	movl	%eax, %ecx
	movl	%eax, %edx
	notl	%edx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$128, %esi
	xorl	(%rax), %esi
	xorl	%eax, %eax
	orl	%edx, %esi
	cmovnel	%ecx, %eax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movl	%ebx, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_check_fd_mode                  ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_MAC_VERIEXEC_NAME,4,2          ## @MAC_VERIEXEC_NAME
	.comm	_MAC_VERIEXEC_CHECK_FD_SYSCALL,4,2 ## @MAC_VERIEXEC_CHECK_FD_SYSCALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_veriexec_check_fd_mode         ; -- Begin function veriexec_check_fd_mode
	.p2align	2
_veriexec_check_fd_mode:                ; @veriexec_check_fd_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MAC_VERIEXEC_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_VERIEXEC_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MAC_VERIEXEC_CHECK_FD_SYSCALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_VERIEXEC_CHECK_FD_SYSCALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, w20
	bl	_mac_syscall
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #128
	mov	w8, #-1
	ccmp	w0, w8, #0, eq
	csel	w0, wzr, w0, eq
	cbz	w19, LBB0_5
; %bb.2:
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_check_fd_mode
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_MAC_VERIEXEC_NAME,4,2          ; @MAC_VERIEXEC_NAME
	.comm	_MAC_VERIEXEC_CHECK_FD_SYSCALL,4,2 ; @MAC_VERIEXEC_CHECK_FD_SYSCALL
.subsections_via_symbols
