	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fd_setflags                    ## -- Begin function fd_setflags
	.p2align	4, 0x90
_fd_setflags:                           ## @fd_setflags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	(%rdi), %eax
	movq	_FD_ALLOWED_FLAGS@GOTPCREL(%rip), %rcx
	xorl	%eax, %esi
	andl	(%rcx), %esi
	xorl	%eax, %esi
	movl	%esi, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_ALLOWED_FLAGS,4,2           ## @FD_ALLOWED_FLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fd_setflags                    ; -- Begin function fd_setflags
	.p2align	2
_fd_setflags:                           ; @fd_setflags
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x2, [x8]
	cbz	x2, LBB0_2
; %bb.1:
	br	x2
LBB0_2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FD_ALLOWED_FLAGS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FD_ALLOWED_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bic	w8, w8, w9
	and	w9, w9, w1
	orr	w8, w8, w9
	str	w8, [x0]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_ALLOWED_FLAGS,4,2           ; @FD_ALLOWED_FLAGS
.subsections_via_symbols
