	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deactivate_fd                  ## -- Begin function deactivate_fd
	.p2align	4, 0x90
_deactivate_fd:                         ## @deactivate_fd
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_irq_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	leaq	-20(%rbp), %rdx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_find_irq_by_fd
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	-20(%rbp), %edi
	movl	$-1, %esi
	callq	_os_set_pollfd
	movq	_irq_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %edi
	callq	_ignore_sigio_fd
	jmp	LBB0_3
LBB0_1:
	movq	_irq_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_irq_lock,4,2                   ## @irq_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_deactivate_fd                  ; -- Begin function deactivate_fd
	.p2align	2
_deactivate_fd:                         ; @deactivate_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _irq_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _irq_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_find_irq_by_fd
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	mov	w1, #-1
	bl	_os_set_pollfd
Lloh2:
	adrp	x0, _irq_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _irq_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_ignore_sigio_fd
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, _irq_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _irq_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_irq_lock,4,2                   ; @irq_lock
.subsections_via_symbols
